https://github.com/eracle/fbot
Facebook bot with Selenium Webdriver.
https://github.com/eracle/fbot
Last synced: 8 months ago
JSON representation
Facebook bot with Selenium Webdriver.
- Host: GitHub
- URL: https://github.com/eracle/fbot
- Owner: eracle
- License: other
- Created: 2016-09-07T15:55:10.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T01:09:02.000Z (about 8 years ago)
- Last Synced: 2025-02-01T15:11:20.042Z (over 1 year ago)
- Language: Python
- Size: 24.4 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Facebook Bot
Facebook bot with Selenium Webdriver.
### Features:
- Login
- Post messages on groups
- Delete messages on a group
- List all the posts on a group
It can be used also for crawling/scraping all the posts on a group.
## Installation
Ubuntu 14.04:
- Install Virtual Environment - Python 3.4+
- Install Requirements:
` pip install -r requirements.txt `
### Install Dependencies:
[Firefox 45](https://www.mozilla.org) English Version.
## Usage:
#### Post a msg on a group:
...
import fbot
(driver, username) = fbot.login(email, password)
fbot.post_to_group(driver=driver, post_msg=msg, group_id=group_id)
...
#### Delete the first owned post on a group:
...
import fbot
(driver, username) = fbot.login(email, password)
fbot.delete_first_post_in_group(driver=driver, group_id=group_id)
...
#### Iterate over the posts on a group:
...
import fbot
(driver, username) = fbot.login(email, password)
fbot.iterate_group_posts(driver=driver, group_id=group_id)
...
## Testing
pytest.
In order to run the tests put Facebook username and password in the tests/conf.py.
Rename and modify the tests/conf_template.py file. Then type:
pytest
# Todo:
Keep the software always up-to-date with the changes on the facebook platform.