Skip to content

A Python library to easily iterate public information found by the Facebook Graph API

License

Notifications You must be signed in to change notification settings

G2064/FacebookSearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FacebookSearch

Build Downloads PyPI version

This library is in a very early stage of development and due to this there no documentation available (besides the source itself :p).

Usage

However, if you would like to have a glimpse this is what you've got to do:

from FacebookSearch import *
import pprint

try:
    fbo = FacebookSearchOrder()
    fbo.setKeywords('NSA')

    fb = FacebookSearch(client_id='123', client_secret='I_really_do_like_spiderman_undies')
    # or even: FacebookSearch(access_code='NoNeedToCreateOne')

    # don't worry if it takes its time - you'll get 500 records
    # (this is the maximum amount of records you're able to get from Graph API)
    for info in fb.searchGraphIterable(fbo):
        pprint.pprint(info)

except FacebookSearchException as e:
    print(e)

Bitdeli Badge

About

A Python library to easily iterate public information found by the Facebook Graph API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%