Automate the Facebook website with selenium in python.
Full explained Videos on that project are coming soon. Stay tune with our youtube channel Noobie Techs
Table of contents
Selenium automation creativity points
- Debugging Example
We can create breakpoints to pause execution at any time then we can try to run some python code in the console to find a way to do something. That helps to develop efficiently. - CTRL + Left mouse click Example
We can see the definitions or references or usages of any function or variable in our IDE like PyCharm. That helps to understand the existing code base efficiently. - Inspect elements and console Example
In chrome, we can inspect HTML elements and run javascript code inside console. That helps up to find better selectors and automations steps efficiently.
NOTE: By pressing UP key we can see the history about what codes we had run during Python debugging and inside Chrome's console.
NOTE: If you are running javascript code inside selenium chromedriver's console then it will NOT keep history.
Good luck :)
- ✔
generate_session(sessionfilename)
: To generate session files with extension.fb
- ✔
open_session(sessionfilename)
: To open session files with extension.fb
- ✔
open_chat_to_fb_numeric_id_or_username(numberorusername)
: To open chatroom to someone by using facebook numeric id ot username. open_chat_to_profile_url(url)
: To open chat to someone from profile urlsend_message_to_currently_opened_chat(message)
: To Send message to currently opened chatroomsend_message_to(numberorusername, message)
: To send message to someonescrape_likes_from_first_n_posts(url)
: To scrape likes of posts of someonetrack_online_status(url)
: To track online status for someone and save the data in a filecreate_3_days_online_status_wallpaper_from_url(url)
: to show an image visually showing online status for 3-dayscreate_3_days_online_status_wallpaper_from_file(url)
: to show an image visually showing online status for 3-days- ``