Facebook: Scaper: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
https://github.com/minimaxir/facebook-page-post-scraper | https://github.com/minimaxir/facebook-page-post-scraper | ||
https://github.com/minimaxir/facebook-page-post-scraper.git | |||
https://github.com/minimaxir/facebook-page-post-scraper/archive/master.zip | |||
==membuat Apps ID== | |||
* Masuk ke | |||
https://developers.facebook.com | |||
* Login > Dashboard | |||
* Apps ID & Password ada di Dashboard :) .. | |||
==facebook scrapper== | |||
Edit | |||
vi get_fb_comments_from_fb.py | |||
app_id = "<ISI>" | |||
app_secret = "<ISI>" # DO NOT SHARE WITH ANYONE! | |||
file_id = "onno.w.purbo" # misalnya | |||
==facebook page scrapper== | |||
vi get_fb_posts_fb_page.py | |||
app_id = "ISI" | |||
app_secret = "ISI" # DO NOT SHARE WITH ANYONE! | |||
file_id = "onnowpurbo" # misalnya | |||
since_date = "2017-06-01" | |||
until_date = "2017-07-01" | |||
==facebook group scrapper== | |||
vi get_fb_posts_fb_group.py | |||
app_id = "ISI" | |||
app_secret = "ISI" # DO NOT SHARE WITH ANYONE! | |||
file_id = "onno.w.purbo" # misalnya | |||
since_date = "2017-06-01" | |||
until_date = "2017-07-01" | |||
==Referensi== | ==Referensi== | ||
Latest revision as of 00:51, 30 July 2017
Download dari
https://github.com/minimaxir/facebook-page-post-scraper https://github.com/minimaxir/facebook-page-post-scraper.git https://github.com/minimaxir/facebook-page-post-scraper/archive/master.zip
membuat Apps ID
- Masuk ke
https://developers.facebook.com
- Login > Dashboard
- Apps ID & Password ada di Dashboard :) ..
facebook scrapper
Edit
vi get_fb_comments_from_fb.py
app_id = "<ISI>" app_secret = "<ISI>" # DO NOT SHARE WITH ANYONE! file_id = "onno.w.purbo" # misalnya
facebook page scrapper
vi get_fb_posts_fb_page.py
app_id = "ISI" app_secret = "ISI" # DO NOT SHARE WITH ANYONE! file_id = "onnowpurbo" # misalnya
since_date = "2017-06-01" until_date = "2017-07-01"
facebook group scrapper
vi get_fb_posts_fb_group.py
app_id = "ISI" app_secret = "ISI" # DO NOT SHARE WITH ANYONE! file_id = "onno.w.purbo" # misalnya
since_date = "2017-06-01" until_date = "2017-07-01"
Referensi
- https://github.com/minimaxir/facebook-page-post-scraper/blob/master/examples/how_to_build_facebook_scraper.ipynb
- https://github.com/minimaxir/facebook-page-post-scraper
- http://simplebeautifuldata.com/2014/09/09/harvesting-facebook-posts-and-comments-with-python-part-1/
- http://minimaxir.com/2015/07/facebook-scraper/