This is a bot that will like and comment 'Thank you' on all the birthday posts posted on your timeline. It uses Selenium to automate facebook login and successively locating the birthday posts using web scrapping. The project is under heavy development.
This could have required no use of Selenium, and could have been done by using Facebook's Graph API, but only till the previous version. In the current version, API doesnt give access to the bdday posts individually. Instead, it groups all the 150 posts, say, and makes it a 1 story, with one story-id. There are no indvidual post-ids to access them.
- Automate facebook login
- Locate Bdday posts from the user's wall, iterate over them, like and comment.
- Take the username and password during the process.
- Convert above into an extension or a web-app
- Launch it as an .exe file for windows
Install all the dependencies using pip install -r requirements.txt
before using the script.
- Push to master.
Never push from master. Try creating a new branch on your local and push from the said branch.
Any suggestions or contributions are welcome!
- JAVA ( Class can be found in folder bdaybot ).
- Python3 ( firefox.py is in Python 3 ).
firefox.py is the only updated file here, that can successfully do the required job.
Do
git clone cd bdaybot python3 firefox.py
You need to install selenium
package first. Download the latest geckodriver
and place it in PATH.