Skip to main content

Scrape Facebook public pages without an API key.

Project description

Use local

install package 
python install  


pip install scrape-facebook
pip3 install scrape-facebook


>>> from scrape_facebook import get_posts

>>> for post in get_posts('nintendo', pages=1):
...     print(post['text'][:50])
The final step on the road to the Super Smash Bros
Were headed to PAX East 3/28-3/31 with new games

Optional parameters

  • pages: how many pages of posts to request, usually the first page has 2 posts and the rest 4. Default is 10.
  • timeout: how many seconds to wait before timing out. Default is 5.
  • sleep: how many seconds to sleep between each request. Default is 0.
  • credentials: tuple of user and password to login before requesting the posts. Default is None.

Post example

{'post_id': '2257188721032235',
 'text': 'Don’t let this diminutive version of the Hero of Time fool you, '
         'Young Link is just as heroic as his fully grown version! Young Link '
         'joins the Super Smash Bros. series of amiibo figures!',
 'time': datetime.datetime(2019, 4, 29, 12, 0, 1),
 'image': ''
 'likes': 2036,
 'comments': 214,
 'shares': 0,
 'post_url': ''
 'link': ''}


  • There is no guarantee that every field will be extracted (they might be None).
  • Shares doesn't seem to work at the moment.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scrape-facebook, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size scrape-facebook-0.1.7.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page