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'))

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.2.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pinscrape-5.2.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file pinscrape-5.2.0.tar.gz.

File metadata

  • Download URL: pinscrape-5.2.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pinscrape-5.2.0.tar.gz
Algorithm Hash digest
SHA256 a99ec425ff006295b38bf070b50e0a9da7c469591c97f0d0269ccd822f9892f7
MD5 0837b35311ff32599bede1780a885353
BLAKE2b-256 3501d5e974bc844a4a2a2cf8a4faebebcb5d82df6359a9df398934dd1b6b5c7f

See more details on using hashes here.

File details

Details for the file pinscrape-5.2.0-py3-none-any.whl.

File metadata

  • Download URL: pinscrape-5.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pinscrape-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1c6dac944684ffd8668da97b6f1c4b1926f4bd357ca5ca58e7e1c3b5b962619
MD5 62fd8e541469a9a4fa882e92ff0d5498
BLAKE2b-256 c98b1f8e3450fd9151163f36fc42f0d48470ebf50da67fe6be4ad0f88c009e49

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

5.2.0 This release

2 files

5.1.0

2 files

5.0.0

2 files

4.1.0

2 files

4.0.0

2 files

3.2.4

2 files

3.2.3

2 files

3.2.2

2 files

3.2.1

2 files

3.2.0

2 files

3.1.0

2 files

3.0.5

2 files

3.0.3

2 files

2.0.1

2 files

2.0.0

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 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