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
-
pinterest_search(query: str) -> List[Dict[str, str]]- Searches Pinterest for images based on the given query.
- Returns a list of dictionaries containing image URLs and thumbnails.
-
download_pinterest_media(url: str, output_dir: str = '.', return_url: bool = False) -> Dict[str, Any]- Downloads a single image or video from Pinterest.
- Returns a dictionary with information about the downloaded media.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f812886918a131c990f979c36502f2a15a2a36e68625478503e9c6a9d821327d
|
|
| MD5 |
b76d53cec87c734e847a9095c4feec37
|
|
| BLAKE2b-256 |
e62155f0537a28b20c93d805781efb8fa8e6b9341c452238833e11521f98ffed
|
File details
Details for the file pinterest_downloader-2.0.2-py3-none-any.whl.
File metadata
- Download URL: pinterest_downloader-2.0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25bd4c533bf0a7d9cd259634375a4d244c85d52accba2a23fe662d37454990c4
|
|
| MD5 |
5791fce7292ce21b494c4a4a939dabbd
|
|
| BLAKE2b-256 |
0630c56f3ceab449dfc42a1a18b397482a92b110e3994396971d8e5228e9bb9f
|