AutoWish is an automation script which wishes 'Happy birthday' to all your facebook friends who have their birthday today by posting on their facebook timelines.
It uses Selenium WebDriver to create a browser object and login to your facebook ID after you enter your login credentials as input when prompted for.
The script runs on python2
Selenium:
pip install selenium
Chrome WebDriver: Install
Clone the repository and run in terminal:
cd
git clone https://github.com/akshatjain02/AutoWish.git
cd AutoWish
sudo pip install -U -r requirements.txt
python2 FB_Wisher.py
You can also download the ZIP file, extract it, and run FB_Wisher.py script in a text editor like Sublime Text. For enabling console inputs in Sublime Text, see point 2 under Notes.
- When creating a browser instance for the Chrome WebDriver in the code, set the path argument as the location of the chromedriver executable file.
- If you want to test the script on Sublime Text Editor, which does not support console inputs in a build, then you can use SublimeREPL by following this link.
- Enter your FB username and password (unechoed) as console input when asked.
- Add error handling in cases of login failure, already wished all friends etc.
Feel free to contribute. Pull Requests are welcome. :)