Skip to main content

pinscrape

Logo

built with Python3

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)

Source distribution for pinscrape 5.2.0
File Size Uploaded
pinscrape-5.2.0.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pinscrape 5.2.0
File Interpreter ABI Platform
pinscrape-5.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

5.2.0 This release

2 release files

5.1.0

2 release files

5.0.0

2 release files

4.1.0

2 release files

4.0.0

2 release files

3.2.4

2 release files

3.2.3

2 release files

3.2.2

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.5

2 release files

3.0.3

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page