An Outreach Bot for Eventbrite
These instructions will get you a copy of the project up and running on both your local machine and on a server for development and testing purposes.
- sudo apt update
- sudo apt upgrade
- sudo apt install python3-pip
- sudo apt install software-properties-common
- sudo apt-get install gconf-service libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxss1 libxtst6 libappindicator1 libnss3 libasound2 libatk1.0-0 libc6 ca-certificates fonts-liberation lsb-release xdg-utils wget
- git clone https://github.com/heavenya/email_bot.git
- cd email_bot
- sudo apt install python3.10-venv
- python3 -m venv venv
- pip install -r requirements.txt
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo apt install ./google-chrome-stable_current_amd64.deb
- export ACCESS_TOKEN=xoxb--*-********
Upgrade Jellyfist package duw to this issue: unitedstates/python-us#65
- pip install -Iv jellyfish
- nohup python main.py > test2.log &
- ps -fA | grep python
- Install requirements.txt. I used
pip
to install the packages in the file.
pip install -r requirements.txt
- Selenium requires a driver to interface with the chosen browser. Make sure the driver is in your path, you will need to add your
CHROMEDRIVER_PATH
to the.env
file.
I used the Chrome driver, you can download it here. You can also download Edge, Firefox or Safari. Depends on your preferred browser.
Fork and clone/download the repository and change the configuration file with:
- Your slack api key
- Run locally, by commenting out the settings for chromedriver executable path, replace with yours.