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():
details = scraper.scrape(keyword, output_folder, proxies, number_of_workers, images_to_download)
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) # 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)
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-4.0.0.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file pinscrape-4.0.0.tar.gz
.
File metadata
- Download URL: pinscrape-4.0.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72ce59b7fec298ed2c77794b903e384d3d611a06af6b004c53edb0c405947f25 |
|
MD5 | c57df4fde4fa900b6e62e0d95eeeb3e7 |
|
BLAKE2b-256 | 1b8bd2bef3872aa8b3bd95de97ebe6c9ebdcd918652e2fe0e0f367564bb4233d |
File details
Details for the file pinscrape-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: pinscrape-4.0.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1017f6cea7878fdc0fe4a95b04ca271f0d53bc5e8cd3cabf10cc8ba50fdae733 |
|
MD5 | 82b5cbc95b40c7145166375baa41974b |
|
BLAKE2b-256 | ed941d51bad537f0d799c82429d772acc9aa866f0f0776413067d9aa4fc0ba09 |