A collection of scripts to discover and aggregate upcoming events in NYC from various sources.
- scraper.py: Scrapes events from blogs, newsletters, and websites.
- find_reddit_cultural_events.py: Searches Reddit for cultural events in NYC.
- combine_summaries.py: Combines the latest outputs from the scraper and Reddit finder into a single markdown summary.
- email_combined_summary.py: Emails the latest combined markdown summary as an attachment.
- run_full_workflow.py: Automates the entire workflow by running all scripts in sequence.
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables in a
.envfile:REDDIT_CLIENT_ID=your_reddit_client_id REDDIT_CLIENT_SECRET=your_reddit_client_secret REDDIT_USER_AGENT=your_reddit_user_agent EMAIL_ADDRESS=your_email@gmail.com EMAIL_PASSWORD=your_app_password TO_ADDRESS=recipient_email@gmail.comFor Gmail, you'll need an App Password if 2FA is enabled.
-
Run the full workflow:
python run_full_workflow.py
-
Run individual scripts:
python scraper.py python find_reddit_cultural_events.py python combine_summaries.py python email_combined_summary.py
- JSON files: Raw event data from each source.
- Markdown files: Summaries of events, combined and emailed.
- The workflow stops if any script fails.
- The latest combined markdown file is emailed as an attachment.