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'))
Metadata
Release files for pinscrape 5.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pinscrape-5.2.0.tar.gz | 10.2 kB | Without provenance | Details for pinscrape-5.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pinscrape-5.2.0-py3-none-any.whl | Python 3 | none | any | Details for pinscrape-5.2.0-py3-none-any.whl |
Total release size: 21.5 kB
Release files / pinscrape-5.2.0.tar.gz
| Download URL | pinscrape-5.2.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a99ec425ff006295b38bf070b50e0a9da7c469591c97f0d0269ccd822f9892f7
|
|
BLAKE2b-256 checksum How to use checksums |
3501d5e974bc844a4a2a2cf8a4faebebcb5d82df6359a9df398934dd1b6b5c7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / pinscrape-5.2.0-py3-none-any.whl
| Download URL | pinscrape-5.2.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1c6dac944684ffd8668da97b6f1c4b1926f4bd357ca5ca58e7e1c3b5b962619
|
|
BLAKE2b-256 checksum How to use checksums |
c98b1f8e3450fd9151163f36fc42f0d48470ebf50da67fe6be4ad0f88c009e49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for pinscrape 5.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.