jeff1evesque / ist-652

Syracuse IST-652 Final Project
1 stars 3 forks source link

Create generalized 'facebook_scraper.py' #13

Closed jeff1evesque closed 6 years ago

jeff1evesque commented 6 years ago

We need to create a generalized facebook_scraper.py, which will implement the facebook graph api. Additionally, corresponding token information, will be imported from an ignored file.

jeff1evesque commented 6 years ago

Closing this issue for the time being. It seems nontrivial to work with the facebook graph api, which requires a special token to be created. However, the integration of the token produces a 400 response:

>>> import fb_scrape_public as fsp
>>> fsp.scrape_fb(token="EAAE0o2KuLxsBAOxkOAZBVZAvIHObSfa8Nkr5GQZBiFmEYTXh1kxh2NXAlxCm4BKPH9VVIlHACNOzYQjYV5jCWnrs2IZCOTj34ZCpadavVwxZAPdHTyZCDvqOIJbMonZAusoYgSjvXoCGZCYqxCmlirY9dTij3rFBdZCMoal7UrfOeUsNXX5uvmPxKW4FfgeUU4vdogijwssjeZBUAZDZD",ids="barackobama",outfile='obama_posts.csv')
HTTP Error 400: Bad Request
Skipping ID barackobama ...
Script completed in 0.10670161247253418 seconds.
[['from', 'from_id', 'message', 'picture', 'link', 'name', 'description', 'type', 'created_time', 'shares', 'likes', 'loves', 'wows', 'hahas', 'sads', 'angrys', 'post_id']]

Until more time permits, this issue will be closed, and we'll focus on integration of wikipedia data.