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 *

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

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

    result = await download_pinterest_media("https://pin.it/6nEi5NMe9", return_url=True)
    if result['success']:
        print(f"Type: {result['type']}, URL: {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.6.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.6-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pinterest_downloader-2.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 9b8387d9811d2f2035c9421048e2b61a7aab9a2087ad864eb933046f5249a7a0
MD5 d0f7437e11bf37e0a2eba76246891794
BLAKE2b-256 1bfdd3c039c11d25b57a7ff1e091ff70aa04ff8d9e671353ab8c5084d4c6399d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pinterest_downloader-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 acc8dd72c4cb9d0139a6c33c9f863daa7a16dfdfbf5b01dcb4803d7b51fc00cc
MD5 6727d113ef8a474fdf97aa5d675430ed
BLAKE2b-256 6920ecf77bea450c925099eab756f72eba85b4a8dc6f66ce1d38f067dfe26b66

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