• Stars
    star
    345
  • Rank 119,033 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A facebook bot to scrap, post, spam and more without the facebook API

FacebookWebBot

=======================

A simple library to automatize facebook without the official API All the functions are made scrapping and parsing mbasic.facebook.com

Available functions:

Login
Logout
Post in your timeline
Message friends
Get post in a facebook group
Post in a facebook group
Comment in a post
Get the members of a facebook group
Send friend request
Send message to any person
Get all post from a profile/fanpage
Send group request
Get number of likes and coments in a post
Post in a fanpage/friend timeline

Basic usage example:

from FacebookWebBot import *
bot=FacebookBot()
bot.set_page_load_timeout(10)
bot.login("[email protected]","yourpassword")
allpost=bot.getPostInProfile("https://mbasic.facebook.com/your-gf-profile",deep=50)
for p in allpost:
	print(p)

Installing

pip install FacebookWebBot

Know issues:

* Can't post images because PhantomJS limitations.

Dependencies:

* Python 3.4

* Selenium

* PhantomJS