Pyhon: Facebook Page Crawler: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs) No edit summary |
Onnowpurbo (talk | contribs) No edit summary |
||
| Line 16: | Line 16: | ||
Menjalankan | Menjalankan | ||
cd /usr/local/src/Facebook-Page-Crawler-master | cd /usr/local/src/Facebook-Page-Crawler-master | ||
python Facebook_Page_Crawler.py | 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== | ==Referensi== | ||
* https://github.com/chenjr0719/Facebook-Page-Crawler | * https://github.com/chenjr0719/Facebook-Page-Crawler | ||
Revision as of 07:01, 15 August 2017
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.