Giter Site home page Giter Site logo

node-reddit-scraper's Introduction

node-reddit-scraper Build Status Join the chat at https://gitter.im/mikedevita/node-reddit-scraper

a node.js powered asynchronous scraper for reddit and imgur images.

Supports multiple subreddits in the config file. At the present moment only supports images from imgur.


Installation

Installation is straight forward

git clone https://github.com/mikedevita/node-reddit-scraper;
cd node-reddit-scraper;
cp config.example.js config.js
npm install;

Imgur v3 api requires a client-ID

Go here https://imgur.com/account/settings/apps and create a new app. Paste the Client-ID and Client-Secret into the config.js.

auth: {
  clientId: 'foo',
  clientSecret: 'bar'
},

Usage

This app is designed to be run via crontab or based on some sort of schedule.

Edit the config.js file to include your subreddits, use the example as a guidelines.

To invoke, just run npm run or node index.js.

You can use this on a crontab like so..

# run every day at midnight
0	0	*	*	*	node /path/to/node-reddit-scraper/index.js

Contributing

pull requests are welcomed, just please adhere to the .eslintrc and .editorconfig's provided. Also run tests and make sure they pass fully.

To run tests just use npm test to execute the tests.

Note Due to how long reddit takes to respond the Reddit unit tests might fail due to a timeout error, if thats the case re run it or skip that single test.

node-reddit-scraper's People

Contributors

mikedevita avatar breedx2 avatar gitter-badger 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.