Skip to content

A forked library to scrape Pinterest {image, text} pairs written in Python - useful for training machine learning models.

License

Notifications You must be signed in to change notification settings

yashm277/pinterest-scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pinscrape

built with Python3

This package can be use to scrape images from pinterest just by using any search keywords. Install it just by using

pip install pinscrape

How to use?

from pinscrape import pinscrape
details = pinscrape.scraper.scrape("messi", "output", {}, 10, 15)

if details["isDownloaded"]:
    print("\nDownloading completed !!")
    print(f"\nTotal urls found: {len(details['extracted_urls'])}")
    print(f"\nTotal images downloaded (including duplicate images): {len(details['url_list'])}")
    print(details)
else:
    print("\nNothing to download !!")

scrape("messi", "output", {}, 10, 15)

  • "messi" is keyword
  • "output" is path to a folder where you want to save images
  • {} is proxy list if you want to add one (optional)
  • 10 is a number of threads you want to use for downloading those images (optional)
  • 15 is the maximum number of images you want to download (optional)

About

A forked library to scrape Pinterest {image, text} pairs written in Python - useful for training machine learning models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%