https://github.com/iamatulsingh/pinscrape
A simple library to scrape Pinterest images.
https://github.com/iamatulsingh/pinscrape
crawler pinscrape pinterest-image-downloader pinterest-image-grabber pinterest-image-scraper pinterest-scraper python python3 scraper web-scraping
Last synced: 5 months ago
JSON representation
A simple library to scrape Pinterest images.
- Host: GitHub
- URL: https://github.com/iamatulsingh/pinscrape
- Owner: iamatulsingh
- License: mit
- Created: 2021-11-05T12:39:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-09-01T07:19:38.000Z (10 months ago)
- Last Synced: 2025-10-27T04:06:19.527Z (8 months ago)
- Topics: crawler, pinscrape, pinterest-image-downloader, pinterest-image-grabber, pinterest-image-scraper, pinterest-scraper, python, python3, scraper, web-scraping
- Language: Python
- Homepage:
- Size: 995 KB
- Stars: 115
- Watchers: 1
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pinscrape
[](https://www.python.org/)
### This package can be used to scrape images from pinterest just by using any search keywords. Install it just by using
`pip install pinscrape`
### How to use?
```python
from pinscrape import scraper, Pinterest
keyword = "messi"
output_folder = "output"
proxies = {}
number_of_workers = 10
images_to_download = 1
def using_search_engine():
details = scraper.scrape(keyword, output_folder, proxies, number_of_workers, images_to_download, sleep_time=2)
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['urls_list'])}")
print(details)
else:
print("\nNothing to download !!", details)
def using_pinterest_apis():
p = Pinterest(proxies=proxies, sleep_time=2) # you can also pass `user_agent` here.
images_url = p.search(keyword, images_to_download)
p.download(url_list=images_url, number_of_workers=number_of_workers, output_folder=output_folder)
board_details = p.get_pin_details(username='canva', board='design-trends')
# you can now check any board details of a user.
print(board_details)
print(board_details.get('resource_response', {}).get('data', {}).get('created_at'))
```