Facebook Automatic Status Update

Here's how you can automatically send status updates on WhatsApp using python and selenium.
You can use this script to directly upload status from the command prompt, you can tweak this script to automatically send updates on festivals, birthday greetings,etc.


Requirements:
  1. First, install python 3
  2. We also need to install selenium
  3. Firefox browser
Use this command to install selenium
  pip install selenium 
Now you are all set to use this code


This script uses selenium that opens a browser and selects the input field where you need to enter login and password then simulates a click on login button.(id = email , id = pass)
As soon as the person is logged in then it searches for the input field which has content for uploading status.(name = xhpc_message)
When the input field is found it adds the text and simulates press of the enter key.

PS:
  • To find name and id of input field you can use developer tools of the browser 
  • You can also use other browsers but will need drivers for them. You can read selenium documentation for the same.
  • Use this script for educational purpose only, You will be responsible for any action if taken by facebook or any other individual.

Comments