Giter Site home page Giter Site logo

scraperr's Introduction

scraperr

GitHub

Subreddit image scraper made in Python

๐Ÿ  Homepage

Pre-requisites

gallery-dl is required to be installed locally and present on the user's system at runtime.

PRAW is also required for this script to run. To install it:

$ pip3 install praw

or alternatively, use pipenv.

Also, inside the praw.ini file you need to modify the access lines (as described here).

You may also add other accounts by keeping the same structure and changing the line in the scraperr.py file that matches the name of the code block (eg. reddit = praw.Reddit("scraperr"))

[scraperr]
; this is your 14 character personal use script
client_id= 
; this is your 27 character secret
client_secret= 
; this is the name you gave your application
user_agent= 
; this is username for the reddit account the app was created with
username=  
; password for the account
password=

Usage

$ python3 scrapper.py -h

usage: scrapper.py [-h] [-l LIMIT] [-p PERIOD] [-d DIRECTORY] subreddit

positional arguments:
  subreddit             The subreddit from which you wish to download the
                        pictures

optional arguments:
  -h, --help            show this help message and exit
  -l LIMIT, --limit LIMIT
                        Limit the number of posts to download (default: 10)
  -p PERIOD, --period PERIOD
                        The period from when to download the pictures
                        (default: day) -- options: day, month, year, all
  -d DIRECTORY, --directory DIRECTORY
                        The directory for the pictures to be downloaded into
                        (default: reddit-wallpapers/)

Author

๐Ÿ‘ค Lucian Vasile

๐Ÿค Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a โญ๏ธ if this project helped you!

๐Ÿ“ License

Copyright ยฉ 2021 Lucian Vasile.
This project is GNU General Public License v3.0 licensed.

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.