Metadata-Version: 2.4
Name: pinscrape
Version: 4.1.0
Summary: Pinterest | a simple data scraper for pinterest
Home-page: https://github.com/iamatulsingh/pinscrape
Author: Atul Singh
Author-email: atulsingh0401@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pytest==7.2.0
Requires-Dist: requests~=2.32.4
Requires-Dist: beautifulsoup4==4.13.4
Requires-Dist: pydotmap~=0.1.3
Requires-Dist: opencv-python~=4.11.0.86
Requires-Dist: numpy~=2.3.1
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# pinscrape

<p style="text-align: center">
    <img src="image/banner.png" alt="Logo" width="80%">
</p>

[![built with Python3](https://img.shields.io/badge/built%20with-Python3.6+-red.svg)](https://www.python.org/)

### This package can be used to scrape images from pinterest just by using any search keywords. Install it just by using <br><br>
`pip install pinscrape`

### How to use?
```python
from pinscrape import scraper, Pinterest


keyword = "messi"
output_folder = "output"
proxies = {}
number_of_workers = 10
images_to_download = 1

def using_search_engine():
    details = scraper.scrape(keyword, output_folder, proxies, number_of_workers, images_to_download)
    if details["isDownloaded"]:
        print("\nDownloading completed !!")
        print(f"\nTotal urls found: {len(details['extracted_urls'])}")
        print(f"\nTotal images downloaded (including duplicate images): {len(details['urls_list'])}")
        print(details)
    else:
        print("\nNothing to download !!", details)


def using_pinterest_apis():
    p = Pinterest(proxies=proxies) # you can also pass `user_agent` here.
    images_url = p.search(keyword, images_to_download)
    p.download(url_list=images_url, number_of_workers=number_of_workers, output_folder=output_folder)
```
