A script for Iranian university students that send the latest news of the Golestan system via email

bsimjoo 372be26add Merge branch 'master' of https://notabug.org/bsimjoo/golestan_reporter 4 роки тому
templates 350ed578c8 working on templates 4 роки тому
.gitignore 074803ddbe removed pychache 4 роки тому
config.py 3bd0c3e0cf too many changes! 4 роки тому
license.md 42d73a186e Add license file 4 роки тому
main-rev.py 3bd0c3e0cf too many changes! 4 роки тому
main.py 3bd0c3e0cf too many changes! 4 роки тому
readme.md b084df86cd Add license info 4 роки тому
requirements.txt a1fd972bc1 first commit 4 роки тому
web_tools.py 41026a4ed9 shorter (better?) code 4 роки тому

readme.md

Golestan reporter

license: GPL3.0

This project is a simple python3 script that helps Iranian university students and sends the latest news of their university Golestan system news via email

Installation

first install requirements. you can install them by:

python3 -m pip install -r requerments.txt

then creat a file named as "mailconfig.py" contains your email address and password:

sender_email = 'yourname@example.com'
password = 'yourpassword'

Notice: if you're using gmail remember that alow low secure apps from google acount manager

you can change common configuration from "config.py" file. change golestan_news_source to your university news source. keep mind that you must read source of golestan pages to find news source. try using "curl". you can ask me for help on this one.

and at end add a mail-list. create "mail_list.txt" and add mails address (one per line). like this:

blabla@example.com
foobar@sample.com

then just run main.py with python3 on your server.