Skip to main content

A Pinterest media downloader

Project description

pinterest-downloader

This Python library allows you to search for images on Pinterest and download them asynchronously. It uses asynchronous programming to efficiently search

Features

  • Search Pinterest for images based on a query
  • Download images and videos from Pinterest
  • Asynchronous operations for improved performance
  • Supports both image and video content from Pinterest

Requirements

  • Python 3.7+
  • aiohttp

Installation

You can install this package using pip:

pip3 install -U pinterest-downloader

Usage

You can use this library in your Python projects by importing the necessary functions:

import asyncio
from pinterest_downloader import pinterest_search

async def main():
    query = "cute cats"
    results = await pinterest_search(query)

    for result in results:
    	print(result['url'])

if __name__ == "__main__":
    asyncio.run(main())

Available Functions

  1. pinterest_search(query: str) -> List[Dict[str, str]]

    1. Searches Pinterest for images based on the given query.
    2. Returns a list of dictionaries containing image URLs and thumbnails.
  2. download_pinterest_media(url: str, output_dir: str = '.', return_url: bool = False) -> Dict[str, Any]

    1. Downloads a single image or video from Pinterest.
    2. Returns a dictionary with information about the downloaded media.

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

pinterest_downloader-2.0.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

pinterest_downloader-2.0.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pinterest_downloader-2.0.5.tar.gz.

File metadata

  • Download URL: pinterest_downloader-2.0.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pinterest_downloader-2.0.5.tar.gz
Algorithm Hash digest
SHA256 91688cfc5d09191bc10082c86111871cc1d6d85cef5f880a1ea90deaab66326f
MD5 ae4c2762484d33d863c1660c85b163f6
BLAKE2b-256 4956771f44bbcfa8b51d1e522db1d7176d911fd22ad9b460effa322ce80ce1ec

See more details on using hashes here.

File details

Details for the file pinterest_downloader-2.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pinterest_downloader-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 adbf2760bb8bab700af57db0063bb3cae1e7b0f4f4ade2a542f38837aa21266f
MD5 9bbca5a9975324c9ae64908787b04a88
BLAKE2b-256 e5cdd30284947a23cbb7121a48166b373e4c1333e40e81dafdd538c58eda4490

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