GithubHelp home page GithubHelp logo

reddit-snooper's People

Contributors

endi1 avatar juicypasta avatar kajensen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

reddit-snooper's Issues

multi watcher

Request: allow multi (me/m) watching. I'm going to work on this and may submit a pull request if I get it working.

Crash if subredit doesn't exist

If you subscribe to commets/posts of a subredit which doesn't exist (because it has been deleted) the module crashes with a null pointer exception in watcher.js line 67:
let children = body.data.children
body.data is undefined in that case. Please add add check for this and return a proper error instead.

version: 1.0.1

Watch comments for multireddits?

Right now it's possible to listen for comments across Reddit or a specific sub. Is it possible to watch for comments on multis?

API url issue

There appears to be an issue with using the "url" npm library, specifically line 84 of api.js. First of all, in the url module that was installed, url.URL is not a function. Then url.Url().toString() returned an object.

My fix:

construct_url(path) {
     let oauth_endpoint = "https://oauth.reddit.com"
     return `${oauth_endpoint}${path}`;
 }

Requested too many items

Using the following snippet results in the message Requested too many items (reddit does not keep this large of a listing):

this._snooper.watcher.getPostWatcher('all')
    .on('post', function(post) {
        //...
    })
    .on('error', console.error)

This is my configuration (taken from the README):

this._snooper = new Snooper({
        app_id: '<redacted>',
        api_secret: '<redacted>',
        user_agent: '<redacted>',
        automatic_retries: true, 
        api_requests_per_minuite: 60
    });

Requested too many items (reddit does not keep this large of a listing)

When I start a watcher for a subreddit, e.g.
snooper.watcher.getPostWatcher('subreddit')
everything works correctly, but if I try to get the top posts of such subreddit, e.g.
snooper.watcher.getPostWatcher('subreddit/top')
or the controversial ones e.g.
snooper.watcher.getPostWatcher('subreddit/controversial')
I alway get this: "Requested too many items (reddit does not keep this large of a listing)"
Am I missing something here?

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.