Coder Social home page Coder Social logo

intrepidolivia / pixelstomp-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 164 KB

Code serving the pixelstomp website and its various social media search utilities

Home Page: http://www.pixelstomp.com/

License: GNU General Public License v3.0

JavaScript 99.67% Dockerfile 0.15% Shell 0.18%
reddit-api twitter-api youtube-api

pixelstomp-server's People

Contributors

intrepidolivia avatar

Watchers

 avatar  avatar

pixelstomp-server's Issues

Provide informative response if subreddit doesn't exist

When requesting from endpoints:
/reddit/subreddit/activeRedditors or
/reddit/subreddit/comments/
If the subreddit parameter is not the name of an actual subreddit, the requests will just time out instead of sending an appropriate response.

Expected behavior:

  • Response will contain appropriate status code with descriptive error message about the issue.

Refactor endpoints to allow more flexibility

Right now, endpoints only function as receptacles for provided query parameters; the parameters themselves cannot yet be included as part of the path. The pixelserver code should be refactored out (and some utilities created) for path-parsing.

Doing this manually is sure to be re-inventing the wheel in many ways, but will be a valuable exercise (and as long as we refuse to use Express, it fits the code philosophy to do so).

Brainstorm ways of doing this. The first thing that comes to mind is to split the path by '/' and negotiate each array element sequentially. This is probably not even remotely optimized, see if you can come up with something better.

Get all comments when requesting comments

Currently, requesting all of a user's comments only retrieves the 1000 most recent comments. Now that we know how to use Promises, find a way to retrieve all of the comments.

Refactor reddit-module into multiple logically organized modules

The most obvious new module is the "reddit access" functions that handle making requests and acquiring tokens.

Possibly consider one module for user-related queries and one module for subreddit/post-related queries (another one for votes, maybe?)
Alternatively: one module for comments, one module for posts.

Meanwhile all the exported functions could remain a part of reddit-module, and their internals separated out accordingly.

Add ability to make a Graph of a reddit thread

Scan through a reddit thread and use a directional graph to indicate which users responded to other users.
Optional: Identify strong components, then tally up the frequented subreddits of those users and see where the intersections are.

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.