From 30709fd0d50cfd04fe61906e2b3bf2137b3a7fe4 Mon Sep 17 00:00:00 2001 From: Chris Park Date: Thu, 24 Oct 2019 23:22:52 -0700 Subject: [PATCH 1/3] Update README.md --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fb19b6c..0852f07 100644 --- a/README.md +++ b/README.md @@ -69,13 +69,13 @@ Edit config.py and modify NLTK tokens required/ignored and twitter feeds you wan ### Examples -Run sentiment.py to create 'stocksight' index in Elasticsearch and start mining and analyzing Tweets using keywords +Run sentiment.py to create 'stocksight' index in Elasticsearch and start mining and analyzing Tweets using keywords and the stock symbol TSLA ```sh $ python sentiment.py -s TSLA -k 'Elon Musk',Musk,Tesla,SpaceX --debug ``` -Start mining and analyzing Tweets using keywords and upload sentiment results to stocksight website (requires website auth token) +Start mining and analyzing Tweets using keywords and upload sentiment results to stocksight website (requires website auth token) using the stock symbol and stocksight website symbol TSLA (-s ). The website symbol is the tag name for the sentiment data being uploaded ```sh $ python sentiment.py -s TSLA -k 'Elon Musk',Musk,Tesla,SpaceX --debug -U @@ -118,12 +118,16 @@ optional arguments: -d, --delindex Delete existing Elasticsearch index first -s SYMBOL, --symbol SYMBOL Stock symbol you are interesed in searching for, - example: TSLA + example: TSLA This is used as the symbol tag on + stocksight website. Could also be set to a tag name + like 'elonmusk' or 'elon' etc. Cannot contain spaces + and more than 25 characters. -k KEYWORDS, --keywords KEYWORDS Use keywords to search for in Tweets instead of feeds. Separated by comma, case insensitive, spaces are ANDs - commas are ORs. Stock symbol from -s will be added to - these.Example: 'Elon Musk',Musk,Tesla,SpaceX + commas are ORs. Stock symbol / tag name from -s will + be added to these. Example: 'Elon + Musk',Musk,Tesla,SpaceX -a, --addtokens Add nltk tokens required from config to keywords -u URL, --url URL Use twitter users from any links in web page at url -f FILE, --file FILE Use twitter user ids from file From 9bba4d10aa9c1ee0bb761bda7183e63d2aa82c67 Mon Sep 17 00:00:00 2001 From: Chris Park Date: Thu, 24 Oct 2019 23:23:55 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0852f07..82fde60 100644 --- a/README.md +++ b/README.md @@ -69,13 +69,13 @@ Edit config.py and modify NLTK tokens required/ignored and twitter feeds you wan ### Examples -Run sentiment.py to create 'stocksight' index in Elasticsearch and start mining and analyzing Tweets using keywords and the stock symbol TSLA +Run sentiment.py to create 'stocksight' index in Elasticsearch and start mining and analyzing Tweets using keywords and the stock symbol TSLA (`-s `) ```sh $ python sentiment.py -s TSLA -k 'Elon Musk',Musk,Tesla,SpaceX --debug ``` -Start mining and analyzing Tweets using keywords and upload sentiment results to stocksight website (requires website auth token) using the stock symbol and stocksight website symbol TSLA (-s ). The website symbol is the tag name for the sentiment data being uploaded +Start mining and analyzing Tweets using keywords and upload sentiment results to stocksight website (requires website auth token) using the stock symbol and stocksight website symbol TSLA. The website symbol is the tag name for the sentiment data being uploaded ```sh $ python sentiment.py -s TSLA -k 'Elon Musk',Musk,Tesla,SpaceX --debug -U From 78281a41f44b86cf831c745020d04e6266902c5f Mon Sep 17 00:00:00 2001 From: Chris Park Date: Thu, 24 Oct 2019 23:24:56 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82fde60..d926330 100644 --- a/README.md +++ b/README.md @@ -69,13 +69,13 @@ Edit config.py and modify NLTK tokens required/ignored and twitter feeds you wan ### Examples -Run sentiment.py to create 'stocksight' index in Elasticsearch and start mining and analyzing Tweets using keywords and the stock symbol TSLA (`-s `) +Run sentiment.py to create 'stocksight' index in Elasticsearch and start mining and analyzing Tweets using keywords and the stock symbol TSLA ```sh $ python sentiment.py -s TSLA -k 'Elon Musk',Musk,Tesla,SpaceX --debug ``` -Start mining and analyzing Tweets using keywords and upload sentiment results to stocksight website (requires website auth token) using the stock symbol and stocksight website symbol TSLA. The website symbol is the tag name for the sentiment data being uploaded +Start mining and analyzing Tweets using keywords and upload sentiment results to stocksight website (requires website auth token) using the stock symbol and stocksight website symbol TSLA. The website symbol is the "tag name" for the sentiment data being uploaded ```sh $ python sentiment.py -s TSLA -k 'Elon Musk',Musk,Tesla,SpaceX --debug -U