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.
- Clone the repository & Install the required dependencies
git clone https://github.com/yung1231/Pinterest-Crawler.git
pip install -r requirements.txt
- chromedriver
- Download the Chrome Driver from official website. Make sure to download the version that matches your Chrome browser version.
-
Modify the configuration file
config.cfg
to specify the download path for the images. -
Run the script
main.py
with the following command
python main.py -t <ttype> -s <search>
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
python main.py -t pin -s "Bocchi The Rock"
- The script currently supports downloading
.jpg
、.png
and.gif
images. - The script uses multithreading to speed up image downloading..