constantinedev / Instagram-User-Scraper-2-JSON

Only for Linux and Run on Python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instagram-User-Scraper-2-JSON

安裝方法:
cd /[PROJECT]
python3.8 -m pip install -r request.txt --user
chmod +x run.py

執行:
python3.8 run.py

關於如何自動執行:
sudo nano /etc/rc.local
於最底一行加入
sudo python3.8 /path/to/Instagram-User-Scraper-2-JSON/run.py &
exit 0

使用方法:
IG_user_List.txt - Instagram用戶名(一行一個)
ig_user_dumper - JSON格式輸出位置(以用戶名加上_log.json結尾)
注意更改自動更新時間:
schedule.every(1).hour.do(IG_SCRAP)
每一小時即行一次,可更改為
每分鐘
schedule.every(1).minutes.do(IG_SCRAP)
每日指定時間
schedule.every().day.at("00:00").do(IG_SCRAP)
指定星期+指定時間
schedule.every().tuesday.at("18:00").do(IG_SCRAP)

本爬蟲用於再收集IG公開用戶之帳戶,以JSON格式輸出.
為網頁資源在用而設,如下載JSON檔案後閣下可自行對JSON再進行從整網頁排版用途.

About

Only for Linux and Run on Python3

License:GNU General Public License v3.0


Languages

Language:Python 100.0%