Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tam11a/facebook_autocomment
https://github.com/tam11a/facebook_autocomment
bot chrome firefox selenium webdriver
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tam11a/facebook_autocomment
- Owner: tam11a
- Created: 2020-11-23T23:15:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-24T07:00:08.000Z (about 4 years ago)
- Last Synced: 2024-12-18T06:23:27.422Z (about 2 months ago)
- Topics: bot, chrome, firefox, selenium, webdriver
- Language: Python
- Homepage:
- Size: 6.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# facebook_autocomment
The Script is Written with Python-Selenium.
Download the Source.
and Download WebDriver(Chrome/Firefox) for Your OS.
Make Sure You placed your WebDriver in "drivers" Folder.
else edit path from "root/fb/fbcomment.py" [line: 39 for Chrome WebDriver] & [line: 41: for Firefox WebDriver].
install requirements.
Edit main.py with your informations like Post URL, List of Comments, How many comments you want to make Etc.
and Run "main.py".[N.B. WebDrivers Used here is for Windows 64bit OS. Download Your version.]
Links to some of the more popular browser drivers follow.
Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads
Firefox: https://github.com/mozilla/geckodriver/releases
Edit/Write "main.py" like,
from fb.fbcomment import Client
class Bot(Client):
pass
if __name__ == "__main__":
url = "Post Link" #Post link
comments = [ #List of Comments
'comment0',
'comment1',
'comment2',
'comment3',
'comment4',
'comment5',
'comment6',
'comment7'
]
bot = Bot("Your Email", "Your Password", 'chrome') #mail, pass, 'chrome'/'firefox' the browser you use!
bot.commentInFlow(url, comments, 10)
bot.close()If You are not a Python User, Copy/Paste this Code in main.py,
import os
from fb.fbcomment import Clientclass Bot(Client):
passif __name__ == "__main__":
x = os.popen('pip install -r requirements.txt').read()
print(x)
comments = []
bot = Bot(str(input('User Email -->')), str(input('Password -->')), str(input('Your Browser Name (chrome/firefox)-->')))
url = str(input('Post Link -->'))
for i in range(int(input('How many Comment You want to add in your Comment list -->'))):
comments.append(str(input('$[Comment #'+str(i+1)+' -->')))
bot.commentInFlow(url, comments, int(input('Number of Comments -->')))