ticker search OOP now and added tests

This commit is contained in:
Nikolai Tschacher
2019-01-31 22:13:22 +01:00
parent d35a602994
commit d5b147296e
9 changed files with 461 additions and 296 deletions

4
run.js
View File

@@ -12,7 +12,7 @@ let config = {
// is drawn before every request. empty string for no sleeping.
sleep_range: '[1,2]',
// which search engine to scrape
search_engine: 'google',
search_engine: 'marketwatch',
// whether debug information should be printed
// debug info is useful for developers when debugging
debug: false,
@@ -20,7 +20,7 @@ let config = {
// this output is informational
verbose: true,
// an array of keywords to scrape
keywords: ['apple tree'],
keywords: ['MSFT', 'AAPL'],
// alternatively you can specify a keyword_file. this overwrites the keywords array
keyword_file: '',
// the number of pages to scrape for each keyword