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 and download multiple images concurrently.

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.2.tar.gz (3.3 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.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pinterest_downloader-2.0.2.tar.gz
  • Upload date:
  • Size: 3.3 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.2.tar.gz
Algorithm Hash digest
SHA256 f812886918a131c990f979c36502f2a15a2a36e68625478503e9c6a9d821327d
MD5 b76d53cec87c734e847a9095c4feec37
BLAKE2b-256 e62155f0537a28b20c93d805781efb8fa8e6b9341c452238833e11521f98ffed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pinterest_downloader-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 25bd4c533bf0a7d9cd259634375a4d244c85d52accba2a23fe662d37454990c4
MD5 5791fce7292ce21b494c4a4a939dabbd
BLAKE2b-256 0630c56f3ceab449dfc42a1a18b397482a92b110e3994396971d8e5228e9bb9f

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