• Stars
    star
    229
  • Rank 174,666 (Top 4 %)
  • Language
    Python
  • Created over 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Takes the URL to a Pinterest board and returns a List of all of the image URLs on that board.

Pinterest Image Scraper

Now you can take the URL to any Pinterest board (or a CSV of a bunch of boards) and return a Python list of the URLs to the hi-rez versions of all of the images on the board.

Requirements:

  • Python 3.5+ (Anaconda recommended)
  • Pandas (pip install pandas or conda install pandas)
  • Firefox + Gecko driver (Firefox can be omitted if you know what you're doing and have another browser set up to be used via Selenium)
  • Selenium (pip install selenium or conda install -c conda-forge selenium, then see these instructions for installing the Gecko driver if not installing it from Conda)
  • Alternatively, install the Gecko driver using conda: conda install -c conda-forge geckodriver
  • If you want to use Chrome or PhantomJS, install their respective selenium drivers: conda install python-chromedriver-binary phantomjs
  • A Pinterest Account

How to Run:

git clone https://github.com/xjdeng/pinterest-image-scraper.git
cd pinterest-image-scraper
pip install -U .
cd ..
python
from pinterest_scraper import scraper as s
ph = s.Pinterest_Helper(<Pinterst login> , <Pinterest password>)
images = ph.runme("http://URL-to-image-board")

Or if you have a CSV file with a URL to a different image board on every line:

images = ph.getURLs(imageboards.csv)

Now if you want to download these images:

s.download(images, "/path/to/your/destination/dir")

or to download to your current directory:

s.download(images)

Note: you no longer need Firefox. If you'd like to use a different browser (i.e. Chrome or PhantomJS), you'll need to initialize it through selenium, then pass it through the Pinterest_Helper object. For example, using Chrome:

from selenium import webdriver
chrome = webdriver.Chrome()
ph = s.Pinterest_Helper(<Pinterst login> , <Pinterest password>, chrome)

More Repositories

1

stock-Q-learning

Tools for using Q-learning to train an Agent to trade stocks, relying on technical indicators as guidance.
Python
7
star
2

RectGAN

The World's First Generative Adversarial Network that generates rectangular images
Python
6
star
3

DISSS-Fast.ai-Notes

Applying Tim Ferris's DISSS Metalearning system to learn and create documentation for the Fast.ai Deep Learning library
Jupyter Notebook
4
star
4

tumblr_following_tools

A collection of tools to help you build your followers on Tumblr as well as analyze data on them.
Python
4
star
5

pvpoke_team_optimizer

Scrapes Pvpoke to try to figure out the best Pokemon Go League Battle team you can build with your existing pokemons
Python
4
star
6

Reddit_Image_Grabber

Simple scripts for downloading images from a subreddit of your choice
Jupyter Notebook
3
star
7

Easy_Image

Detect faces and cache them in the image EXIF for easier and faster retrieval! Plus wrappers for OpenCV and Dlib and various scripts and classes to make facial recognition easier.
Jupyter Notebook
3
star
8

fastai_reddit

Use Fast.ai's NLP deep learning methods to imitate a Reddit user
Jupyter Notebook
2
star
9

Auto_Zettelkasten

Automatically takes a collection of texts and creates a Zettelkasten out of them using Machine Learning and NLP
Jupyter Notebook
2
star
10

Magic-the-Gathering-Card-Scraper

Scrapes gatherer.wizards.com for Magic Cards
Jupyter Notebook
2
star
11

aesthetic_score

Simple and quick function to calculate the aesthetic score of an image
Python
2
star
12

MiniGPT4-image-labeler

This repository is for running MiniGPT4 on Google Colab as a way to label your images for fine tuning Stable Diffusion models
Jupyter Notebook
2
star
13

project_tables

Jupyter Notebook
1
star
14

scrape_subreddit_comments

Jupyter Notebook
1
star
15

bag-of-words-image-classifier

My final project for the Udacity Machine Learning course: an image classifier that implements incremental learning, allowing it to learn new examples without having to retrain from scratch every time!
Jupyter Notebook
1
star
16

Item-Item-Collaborative-Filtering

Jupyter Notebook
1
star
17

stockchart

A minimalist program for plotting candlestick stock charts. Get started creating stock charts in 5 minutes or less!
Python
1
star
18

Azure_OCR_test

1
star
19

myer_briggs_ulmfit

Quick test project on ULMFIT using fast.ai v1
Jupyter Notebook
1
star
20

Transformer_test

Testing the Transformer Text Generation Model
Jupyter Notebook
1
star
21

image_filter

Interface for quickly filtering images by training models using the Fast.ai library
Python
1
star
22

image_quality

Python
1
star
23

sd_colab_notebooks

A collection of Google Colab notebooks for running Stable Diffusion on Google Colab as well as training models
Jupyter Notebook
1
star
24

NLP-Coursera

Jupyter Notebook
1
star
25

VideoExtraction

Jupyter Notebook
1
star
26

nlu_dl

1
star
27

Easy_Danbooru

Python
1
star
28

sd_tools

Python
1
star
29

Amazon_Review_Tools

Tools for Scraping Amazon Product Reviews as well as gauging sentiment and other NLP related functions
Python
1
star
30

EasyGAN

A modular implementation of Generative Adversarial Networks in Keras
Python
1
star
31

flickr_recommendations

Give recommendations for new Flickr pictures based on your current favorites
Python
1
star
32

pixabay_scraper

Python
1
star