- Python 3.6
- Scrape_tnp is the main python file.
- Before running the code put your id and password in the mentioned area in the kiit_code.py file.
- Get the geko driver on your pc and Enter your Driver location at the specified position on the kiit_code.py file.
- Now go to twilio and get an account and activate sandbox (follow this Link)
- Put the sand box phone number in the tnp_whatsapp.py file at the mentioned line.
- Download the zipped code files extract it on your local machine.
- pip install all the required modules from above.
- Follow the setup procedure and you are good to go.
- Open terminal and run
python Scrape_tnp.py
. - Leave the rest to the bot.
- In order to run the code you need to host the code on some cloud platforms like Pythonanywhere
- Create an account, upload all the files.
- Since this code runs a selenium web driver to scrape the site we need to run a virtual display while hosting the code on Pythonanywhere using the command
xvfb-run -a python3.6 /home/myusername/myfolder/myscript.py
(more on) - To run the code at intervals link
I am working on how to get the pdf file sent to ones whatsapp.