Skip to content

Instagram web crawler. Download images and videos from specific users. Transfer following users to another account.

License

Notifications You must be signed in to change notification settings

Oscarshu0719/instagram-web-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

instagram-web-crawler

Instruction

Instagram web crawler.

Features

  • Download images and videos from specific users.
  • Get following user names of logged in user.
  • Transfer following users from one account to another.

Change log

  • 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.

TODO

  • Download media which are in the specified period.

Usage

  • Install Chrome on your computer.

  • Download Chromedriver first. Unzip it and put chromedriver.exe in folder /bin.

  • Copy secret.py.dist as secret.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.)

Input file format

*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.)

Examples

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 

Requirements

  • python3.
  • Details are in conf/requirements.txt.

License

MIT License.

About

Instagram web crawler. Download images and videos from specific users. Transfer following users to another account.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages