Instagram web crawler.
- Download images and videos from specific users.
- Get following user names of logged in user.
- Transfer following users from one account to another.
- 2019.10.20 - Add 'Download from saved' function.
- 2019.10.21 - Reconstruct code and it's able to download videos.
- 2019.10.22 - Add output of progress during fetching URLs and fix minor bugs.
- 2019.10.23 - Add 'Get following users' function.
- 2019.10.25 - Add 'Transfer following users to another account' function.
- 2020.01.20 - Move constants to
src/constants.py
.
- Download media which are in the specified period.
-
Install Chrome on your computer.
-
Download Chromedriver first. Unzip it and put
chromedriver.exe
in folder/bin
. -
Copy
secret.py.dist
assecret.py
in the same folder.
python instagran_web_crawler.py [*path*] [*options*]
Args:
*path*: Input path (a file including one user_id per line).
*options*:
--saved: Download saved posts.
--transfer: Transfer following users from USERNAME to TRANS_USERNAME.
(Ignore order.)
*username* [*start_date*] [*end_date*]
(If *end_date* is specific and no specific *start_dat*e, use '-'.
If *start_date* is specific and no specific *end_date*,
no other input is needed.)
(Default: Posts of all time.)
options:
-f:
Get following users.
-p:
Download posts (including images and videos).
(If no -f, it's no need to input options, since -p is default with no option.)
(Ignore letter case and order.)
a123456789 2019-01-01 2019-06-01 -fp
b987654321 2018-01-01 2019-01-01 -Pf
c111111111 - 2019-02-01 -F
d222222222 2019-03-01 -fp
e333333333
python3
.- Details are in
conf/requirements.txt
.
MIT License.