Coder Social home page Coder Social logo

twits's Introduction

This is a crawler for you to craw trending, sentiment and volume data from stocktwits.

install guide

  1. create database and user in mysql.
  2. install node (devloping env: node 8.5.0, npm 5.5.1)
  3. setup config.json
    • interval: interval in minutes that trending-crawler uses between two requests
    • mysql: Mysql host, username, password, database
    • data_table: table names you want to use
    • random_min, random_max: min and max seconds that sentiment-volume-crawler uses to generate a random delay
  4. run npm install
  5. run node setup.js (will erase tables if same names exist)

run trending crawler:

  1. run node trending-crawler.js

run sentiment and volume crawler:

  1. setup symbols.csv or symbols.json
    1. IMPORTANT: inserting any data to symbols.json will cause the crawler to use it.(ignoring csv data)
    2. using symbols.csv
      • each symbol(as only item) in a new line
    3. using symbols.json
      • each symbol as an array item
      • it's recommended, as it can be generated from other programs
  2. run node sentiment-volume-crawler.js

twits's People

Contributors

huang831206 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.