Coder Social home page Coder Social logo

jgore077 / reddit-link-gatherer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5 KB

A short python script designed to collect a database of links to reddit posts. I created this because I could only pull 1000 links/posts from most sources so instead I'm using advanced google queries.

Python 100.00%

reddit-link-gatherer's Introduction

Reddit Link Gatherer

I made this repository in the attempt to find links to all posts of a subreddit. It works by using this query template
site:https://www.reddit.com/r/<subreddit name> before:YYYY/MM/DD
The script will maintain a database of links and previously used dates. The table of dates is used to prevent the system from overworking by avoiding querying previously used dates.

Installation

You will have to install the requirements to the project but it is only one library due to most the librarys being part of the Python standard library

pip install -r requirements.txt

Usage

You can specify a few different arguments with this program to provide more functionality.

python RedditLinkGatherer.py r/arduino -y 2019 -d 8

The following command will begin to scrape the internet for posts in r/arduino starting at the date 2019/1/1 (YYYY/MM/DD) with a delay of 8 seconds. You can set the delay to be lower but the higher the delay the lower the likelihood of being rate-limited.

python RedditLinkGatherer.py r/SubSimGPT2Interactive -y 2021 -m 4 -r

This command starts in the year 2021 but also starts in April. The first date queried by the system will be 2021/4/1 with a default delay of 1 second. the -r options specifys a requery which means ignore previously scraped dates.

reddit-link-gatherer's People

Contributors

jgore077 avatar

Watchers

Kostas Georgiou 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.