Skip to main content

Pinterest | a simple data scraper for pinterest

Project description

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

Project details


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)

Uploaded Source

Built Distribution

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

pinscrape-5.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

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

Hashes for pinscrape-5.1.0.tar.gz
Algorithm Hash digest
SHA256 423e85acb4a45bca582e58c36764d20e1efde212ab2bd244452cc814cc610d8e
MD5 8635a11f1b43d071c14051b34c838a20
BLAKE2b-256 edfdb94ad223e28a177162a15b889150f24a98144be6b67df62b55bccfabff7d

See more details on using hashes here.

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

Hashes for pinscrape-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b0ab85074d08fce910c47a92b16d670c96b6906dc0341007d2c32e9bf4bdc53
MD5 2031cfac3819528837d6f5be6dc765d7
BLAKE2b-256 e7ed8383cf3d4bbaad0bd6f72cbf0fe669a4f7e7e266e2c3677948955dec758a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page