GithubHelp home page GithubHelp logo

amichaelparker / ticker_check Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8.4 MB

Check Reddit comments for stock ticker 'sentiment'.

Home Page: https://github.com/amichaelparker/ticker_check

JavaScript 100.00%

ticker_check's Introduction

ticker_check

This is a simple toy app I built to gather stock symbol 'sentiment' from Reddit. It grabs the symbols from comments, and adds them to an Excel spreadsheet, along with the number of mentions for each. This is for informational purposes only; if you use it to yolo options and put yourself in the poor house:

  1. I am not responsible
  2. Have the courtesy to go to r/wallstreetbets and post the loss porn so they know you belong.

Usage

Create an application on Reddit (developer settings under your user settings).

After you create the app, yarn install and then create an .env file that looks like this:

CLIENT_ID=YourAppID
CLIENT_SECRET=YourAppSecret
REDDIT_USER=UsernameForAppAccount
REDDIT_PASS=PasswordForAppAccount

Run with babel-node app.js. You can add more subreddits by copy/pasting this code (and editing appropriately):

const streamOne = new CommentStream(r, { subreddit: "wallstreetbets", results: 25, pollTime: 3000 });
streamOne.on("item", comment => {
    writeToExcel(comment, re, ignore);
})

I made this in about an hour and am not well versed in Reddit's rate limits so... keep that in mind.

ticker_check's People

Contributors

amichaelparker avatar

Watchers

James Cloos 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.