Skip to content

chou141253/IG_downloader

Repository files navigation

A python tool for downloading images by hashtag from Instagram

Prerequisite

  1. Chrome Driver

    1. please check your chrome version and download its corresponding driver shown below.(查詢chrome的版本,下載對應的驅動)
    1. version==84
    2. version==83
    3. version==82
  2. git clone or downlaod the this repository (clone 或 下載 這個repository)

    1. git clone https://github.com/chou141253/IG_downloader.git
  3. Enter the repository (在本機進入該資料夾,並將下載的chrome驅動放到指定資料夾)

    1. extract the file downloaded at the step 2. and place "chromedriver.exe" or "chromedriver" in ./web_driver/chromedriver_linux64
  4. install packages used in the program (bs4, selenium)

    1. python -m pip install -r requirements.txt (windows)
    2. pip install -r requirements.txt (linux)

Run

The following shows how to run the program and download images from Instagram (espescially for all menbers in NTNU AIOTLab, and Thank for all your help!!!)

python main.py --begin 1000 --end 2000 --account [email protected] --passwd xxxxxxxx

--begin: start index of hashtag for downloading (AIOTLab的同學,我們會提供)
--end: end index of hashtag for downloading (AIOTLab的同學,我們會提供)
--account: your ig account (we apply for some accounts for all members in aiotlab) (AIOTLab的同學,我們會提供)
--passwd: you ig password (we would send password to all members in aiotlab) (AIOTLab的同學,我們會提供)

Under Construction

Multiprocess still causes some problems, so don't run this:

python multiprocess_main.py # may be block by instagram

Releases

No releases published

Packages

No packages published

Languages