Skip to content

Commit c42b708

Browse files
committed
2 parents ac8b019 + 78281a4 commit c42b708

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ Edit config.py and modify NLTK tokens required/ignored and twitter feeds you wan
6969

7070
### Examples
7171

72-
Run sentiment.py to create 'stocksight' index in Elasticsearch and start mining and analyzing Tweets using keywords
72+
Run sentiment.py to create 'stocksight' index in Elasticsearch and start mining and analyzing Tweets using keywords and the stock symbol TSLA
7373

7474
```sh
7575
$ python sentiment.py -s TSLA -k 'Elon Musk',Musk,Tesla,SpaceX --debug
7676
```
7777

78-
Start mining and analyzing Tweets using keywords and upload sentiment results to stocksight website (requires website auth token)
78+
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
7979

8080
```sh
8181
$ python sentiment.py -s TSLA -k 'Elon Musk',Musk,Tesla,SpaceX --debug -U
@@ -118,12 +118,16 @@ optional arguments:
118118
-d, --delindex Delete existing Elasticsearch index first
119119
-s SYMBOL, --symbol SYMBOL
120120
Stock symbol you are interesed in searching for,
121-
example: TSLA
121+
example: TSLA This is used as the symbol tag on
122+
stocksight website. Could also be set to a tag name
123+
like 'elonmusk' or 'elon' etc. Cannot contain spaces
124+
and more than 25 characters.
122125
-k KEYWORDS, --keywords KEYWORDS
123126
Use keywords to search for in Tweets instead of feeds.
124127
Separated by comma, case insensitive, spaces are ANDs
125-
commas are ORs. Stock symbol from -s will be added to
126-
these.Example: 'Elon Musk',Musk,Tesla,SpaceX
128+
commas are ORs. Stock symbol / tag name from -s will
129+
be added to these. Example: 'Elon
130+
Musk',Musk,Tesla,SpaceX
127131
-a, --addtokens Add nltk tokens required from config to keywords
128132
-u URL, --url URL Use twitter users from any links in web page at url
129133
-f FILE, --file FILE Use twitter user ids from file

0 commit comments

Comments
 (0)