Pyhon: Facebook Page Crawler

From OnnoWiki
Revision as of 14:01, 15 August 2017 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

sumber: https://github.com/chenjr0719/Facebook-Page-Crawler


Download

https://github.com/chenjr0719/Facebook-Page-Crawler.git

Siapkan

pip install requests
cd /usr/local/src
wget https://github.com/chenjr0719/Facebook-Page-Crawler/archive/master.zip
unzip master.zip 
cd /usr/local/src/Facebook-Page-Crawler-master


Menjalankan

cd /usr/local/src/Facebook-Page-Crawler-master
python Facebook_Page_Crawler.py 


usage: Facebook_Page_Crawler.py [-h] [-r REACTIONS] [-s STREAM]
                                target since until

positional arguments:
  target                Set the target fans page(at least one) you want to
                        crawling. Ex: 'appledaily.tw' or 'appledaily.tw,
                        ETtoday'
  since                 Set the start date you want to crawling. Format:
                        'yyyy-mm-dd HH:MM:SS'
  until                 Set the end date you want to crawling. Format: 'yyyy-
                        mm-dd HH:MM:SS'

optional arguments:
  -h, --help            show this help message and exit
  -r REACTIONS, --reactions REACTIONS
                        Collect reactions or not. Default is no.
  -s STREAM, --stream STREAM
                        If yes, this crawler will turn to streaming mode.

Referensi