Python 3 Selenium Bulk Facebook Pages API Posting Automation Bot Script Full Project For Beginners

You are currently viewing Python 3 Selenium Bulk Facebook Pages API Posting Automation Bot Script Full Project For Beginners

 

Welcome folks today in this blog post we will be making a bulk facebook page poster script in python using selenium library. All the full source code of the application will be given below.

 

 

Get Started

 

 

In order to get started you need to install the following library using the pip command as shown below

 

pip install selenium

 

After installing this library you need to download the chrome driver for your selenium library according to your chrome browser version

 

Chrome Driver Download Site

 

And now inside your python project make an app.py file and copy paste the following code

 

app.py

 

 

 

 

Now after this you need to make two additional  files which will be as follows

 

First of all you need to make crendential_load.json file inside the root directory and copy paste the following code to it

 

credentials_load.json

 

 

 

Here in this json config file you need to replace the array of facebook pages and then your facebook email address and password

 

And after this make a content.txt file inside the root directory and copy paste the code shown below

 

 

So this is simple textthat will be published to your facebook pages

 

Now you can run your facebook bulk posting bot by typing the below command

 

python app.py

 

 

 

Once it runs it will automatically login with the email address and password and then you just need to block the notification bar and then at the command line press the y button after doing that as shown above

 

And now it will pick all your facebook pages that are mentioned inside the json file and then bulk post with the text that is written as shown below

 

 

 

 

Leave a Reply