Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.34 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.34 KB

Pinterest Crawler for Image Downloads

This is a python crawler designed to download images from Pinterest. You can specify a search query or username, and the script will download all available images.

Installation

  1. Clone the repository & Install the required dependencies
git clone https://github.com/yung1231/Pinterest-Crawler.git

pip install -r requirements.txt
  1. chromedriver
    • Download the Chrome Driver from official website. Make sure to download the version that matches your Chrome browser version.

Usage

  1. Modify the configuration file config.cfg to specify the download path for the images.

  2. Run the script main.py with the following command

python main.py -t <ttype> -s <search>

Using argument

usage: main.py [-h] -t TTYPE -s SEARCH

optional arguments:
  -h, --help            show this help message and exit
  -t TTYPE, --type TTYPE
                        Search by 'pin' or 'name_created' or 'name_saved'(name is a string starting after @)
  -s SEARCH, --search SEARCH
                        Keyword you want to query

Example

python main.py -t pin -s "Bocchi The Rock"

Notes

  • The script currently supports downloading .jpg.png and .gif images.
  • The script uses multithreading to speed up image downloading..