A bot to post of facebook pages
Project description
Facebook Page Poster
Since Facebook blocked the apps to post on page, read more here. I need to use Selenium
Linux
Prerequisites
- Gecko Driver for Firefox Download the selenium Driver for firefox here.
Windows
Prerequisites
- Install Firefox
- Install Gecko Driver for Windows
- Extract geckodriver.zip and move the geckodriver.exe to
C:\Program Files (x86)\Gecko Driver
(probably you will need to create this folder)
Facebook Credentials
Set the facebook credentials:
- Write on the file credentials.txt the email and password to log in (see the example file)
<Email>
<Password>
Usage
import FacebookPagePoster
poster = FacebookPagePoster()
poster.page_url = 'https://m.facebook.com/PAGE_URL/'
poster.email = 'YOUR_EMAIL'
poster.password = 'YOUR_PASSWORD'
poster.firing_up_driver()
poster.sign_in()
poster.post("YOUR MESSAGE")
poster.delete("POST_ID")
or you can use setup
import FacebookPagePoster
poster = FacebookPagePoster()
poster.setup('PAGE_ID','YOUR_EMAIL','YOUR_PASSWORD')
poster.post("YOUR MESSAGE")
poster.delete("POST_ID")
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
- Matheus Horstmann - Initial work - horstmannmat
See also the list of contributors who participated in this project.
License
This project is licensed under the GPL v3 License - see the LICENSE.md file for details
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for FacebookPagePoster-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea7fd1f91b148c7525e7eafdf813a08982287754bf726ae3479e04496a7df426 |
|
MD5 | 0cc2a17bb081a7d3503aae8c07fb3d78 |
|
BLAKE2b-256 | 42f155f1d3a448cc2915491e6cb3b2d0b945fb11f9cfc8ee5992ceca79254f0e |