Pinterest | a simple data scraper for pinterest
Project description
pinscrape
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?
from pinscrape import scraper, Pinterest
keyword = "messi"
output_folder = "output"
proxies = {}
number_of_workers = 10
images_to_download = 1
def using_search_engine(): # This is deprecated now
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'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pinscrape-5.1.0.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pinscrape-5.1.0.tar.gz.
File metadata
- Download URL: pinscrape-5.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
423e85acb4a45bca582e58c36764d20e1efde212ab2bd244452cc814cc610d8e
|
|
| MD5 |
8635a11f1b43d071c14051b34c838a20
|
|
| BLAKE2b-256 |
edfdb94ad223e28a177162a15b889150f24a98144be6b67df62b55bccfabff7d
|
File details
Details for the file pinscrape-5.1.0-py3-none-any.whl.
File metadata
- Download URL: pinscrape-5.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b0ab85074d08fce910c47a92b16d670c96b6906dc0341007d2c32e9bf4bdc53
|
|
| MD5 |
2031cfac3819528837d6f5be6dc765d7
|
|
| BLAKE2b-256 |
e7ed8383cf3d4bbaad0bd6f72cbf0fe669a4f7e7e266e2c3677948955dec758a
|