https://github.com/shuhanmirza/facebook_comment_automation
🤖 A bot for commenting on Facebook posts.
https://github.com/shuhanmirza/facebook_comment_automation
facebook python selenium
Last synced: about 1 year ago
JSON representation
🤖 A bot for commenting on Facebook posts.
- Host: GitHub
- URL: https://github.com/shuhanmirza/facebook_comment_automation
- Owner: shuhanmirza
- Created: 2020-07-23T04:45:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-18T02:05:32.000Z (over 1 year ago)
- Last Synced: 2025-01-18T03:19:08.782Z (over 1 year ago)
- Topics: facebook, python, selenium
- Language: Python
- Homepage:
- Size: 4.45 MB
- Stars: 20
- Watchers: 4
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# facebook_comment_automation
Your friend just offered to do something silly for commenting in thousands in their post? look no further! You are in the right repo xD
## overview
It's a simple selenium automation implementation. It logs in your account and then goes to your friends timeline and finds the latest post and starts commenting.
## Prerequisites
- You will need have Python3
- Setup virtualenv and install selenium
```console
your_pc$ virtualenv -p /usr/bin/python3 venv
```
```console
your_pc$ source venv/bin/activate
```
```console
(venv)your_pc$ pip install -r requirements.txt
```
- Have firefox installed
- I used geckodriver for linux. If you run windows, install geckodriver for windows.
- Rename env_sample.json to env.json and configure it with your username,password and target's username
## Running
You will need to add PATH for geckodriver
```console
(venv)your_pc$ export PATH=$PATH:.
```
```console
(venv)your_pc$ python main.py
```
## Process Steps of the bot
- goes to facebook.com
- logs in to your account
- goes to targets's timeline
- selects latest post
- starts commenting random letters
## Tip
You can use a residential proxy to avoid being flagged as a bot and get your IP blocked.