A simple script utilising pyppeteer to scrap new events from Goout.net, compare them with database of scrapped events and send email to friend's email.
- pyppeteer
- dotenv
- BeautifulSoup
- SQLite
pip install -r requirements.txt
- Empty the venues.txt file
- Copy the
.example-env
to.env
- Fill in the details. The
.example-env
has port and SMTP server for google.- SENDER_EMAIL is your email
- PASSWORD is password to your email
- RECEIVER_EMAIL email is the email on which you send the new events
- VENUES is the location of your venues.txt file
- Go to Goout and visit venue you want to subscribe to. On it, click on Upcoming Events and copy the URL. (E.G. https://goout.net/cs/ankali/vzqivb/events/)
- Add it to venues.txt
- Repeat 3. and 4. for all venues you want.
- In main.py, change the line 62 to any text you want (E.G. "Ahoj Honzo, \n tady jsou tvé akce"). Save the changes.
- Go to the Goout venue listener folder and run
python3 main.py
.
It will go through all your venues and check all incoming events. On each run, it sends you all events that are not in the events.db. That can be quite a lot on the first run.