Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.27 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.27 KB

Goout venue listener

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.

Dependencies

  • pyppeteer
  • dotenv
  • BeautifulSoup
  • SQLite

Installation

pip install -r requirements.txt

Setup

  1. Empty the venues.txt file
  2. Copy the .example-env to .env
  3. 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
  1. 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/)
  2. Add it to venues.txt
  3. Repeat 3. and 4. for all venues you want.
  4. In main.py, change the line 62 to any text you want (E.G. "Ahoj Honzo, \n tady jsou tvé akce"). Save the changes.

Running

  • 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.