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.4.tar.gz (3.2 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.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pinterest_downloader-2.0.4.tar.gz
  • Upload date:
  • Size: 3.2 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.4.tar.gz
Algorithm Hash digest
SHA256 839257f1a19fbbbc5aa90176a60819bb005ee574875f8172712262c02353d01f
MD5 073f78433ee96557fbda60da17e9109b
BLAKE2b-256 1e759b9f6fc377cca66bbbd1c5bab11136a9b2a56c195ad45304dd0fbaf739c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pinterest_downloader-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cba23c2ca238819e711a3cb99bcee1d80839818cc06d5e703724544e86f710cc
MD5 66ffce7159d5874d50eb8955017dc208
BLAKE2b-256 19627a683472c76e825ec4a99410f9057901ea7a05df607b3d145c66740bec75

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