Giter Site home page Giter Site logo

itpain / reddit-image-scraper-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrwulgaru/reddit-image-scraper

0.0 2.0 0.0 432 KB

Scanning imgur for submissions of reddit users

Home Page: http://rookev.github.io/Reddit-Image-Scraper/

Makefile 5.07% Python 94.93%

reddit-image-scraper-1's Introduction

Reddit-Image-Scraper

Purpose

This python script enables you to pick a reddit user and automatically download all pictures he / she posted in Imgur links. The number of posts which are scanned can be specified by a number.

Setup

Python

Python 2 or Python 3 must be installed on your computer.

Dependencies

To use this script, you will need the libraries praw and BeautifulSoup. They can be installed by the pip command through your command line as follows:

$ pip install -r requirements.txt

After that, you're good to go!

Installation

To install simply clone the github repo and run setup.py

# Clone the Repo
$ git clone https://github.com/Rookev/Reddit-Image-Scraper.git

# Install
$ python setup.py install

Usage

After installing the package, the console script reddit_scraper can now be used.

Example

Choose a reddit user and download each of his or her Imgur submissions to your local hard drive

$ reddit_scraper User123 5

This command scrapes the last 5 posts of /u/User123, detects his Imgur submissions and downloads it to your desktop in a newly created folder called /User123/

Documentation

Documentation available at readthedocs

Contributions

A more pythonized programming style and documentation with Sphinx was contributed by Sang Han

Personal annotation

With this script I wanted to try out some techniques and skills, so it also had some personal goals:

  • Python (development & publishing / installing)
  • Web scraping
  • Using the social aspect of GitHub (pull requests, merging)

reddit-image-scraper-1's People

Contributors

rookev avatar jjangsangy avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.