A Python library to easily iterate public information found by the Facebook Graph API
Project description
# FacebookSearch
[![Build](https://api.travis-ci.org/ckoepp/FacebookSearch.png?branch=master)](https://travis-ci.org/ckoepp/FacebookSearch/branches) [![Downloads](https://pypip.in/d/FacebookSearch/badge.png)](https://crate.io/packages/FacebookSearch/) [![PyPI version](https://pypip.in/v/FacebookSearch/badge.png)](https://crate.io/packages/FacebookSearch/)
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:
```python
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)
```
[![Build](https://api.travis-ci.org/ckoepp/FacebookSearch.png?branch=master)](https://travis-ci.org/ckoepp/FacebookSearch/branches) [![Downloads](https://pypip.in/d/FacebookSearch/badge.png)](https://crate.io/packages/FacebookSearch/) [![PyPI version](https://pypip.in/v/FacebookSearch/badge.png)](https://crate.io/packages/FacebookSearch/)
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:
```python
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)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
FacebookSearch-0.0.3.tar.gz
(6.0 kB
view details)
File details
Details for the file FacebookSearch-0.0.3.tar.gz
.
File metadata
- Download URL: FacebookSearch-0.0.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd5b31af245b65a0a0ca470edb934b48e32955aa5f87b64a733fec39ff57c7a |
|
MD5 | 81d7ca1d2a570813aa49226d1a88155e |
|
BLAKE2b-256 | b0546fbe2264f185cd813c073874315bb1248bdbf48ebbb784f51d7fdf6aa216 |