- create database and user in mysql.
- install node (devloping env: node 8.5.0, npm 5.5.1)
- 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
- run
npm install
- run
node setup.js
(will erase tables if same names exist)
- run
node trending-crawler.js
- setup symbols.csv or symbols.json
- IMPORTANT: inserting any data to symbols.json will cause the crawler to use it.(ignoring csv data)
- using symbols.csv
- each symbol(as only item) in a new line
- using symbols.json
- each symbol as an array item
- it's recommended, as it can be generated from other programs
- run
node sentiment-volume-crawler.js