Hackpads are smart collaborative documents. .

Hsu Heng-Yu

714 days ago
Unfiled. Edited by Weihang , Hsu Heng-Yu 714 days ago
  • posts <- searchFacebook(string = "upworthy", token, n = 500)
Hsu H
  • 好像看到這功能在 v2.0 之後被拿掉,大家小心
 
 
Rfacebook
  • library(Rfacebook)
  • NOtoken <- "wheeeeeeee"
  • NOID <- "163253543730991"  # UDN,慎用!
  •  
  • page.all <- getPage(NOID, NOtoken, n = 10000, since = "2015/10/01", until = "2015/11/30", feed = FALSE)
  • page.all[grepl("健保", page.all$message), 3]
  • # 收工
 
python FBscraper
 
Weihang
  • 詳見github
  • FBscraper.py 用requests爬,速度快
  • fb_comments_scraper.py 用selenium模擬chrome,較慢
  • 可以當作command line tool
 
  • def fb_comments(href):
  •    truncated....
 
 

Contact Support



Please check out our How-to Guide and FAQ first to see if your question is already answered! :)

If you have a feature request, please add it to this pad. Thanks!


Log in