anfederico / stocktalk Goto Github PK
View Code? Open in Web Editor NEWData collection tool for social media analytics
License: MIT License
Data collection tool for social media analytics
License: MIT License
I do all Prerequisites and I run this command python listen.py
but no output for an hour just write Streaming Now...
hello , i have problem setup Stocktalk , you see ,
i did
pip install stocktalk
then : python -m nltk.downloader vader_lexicon
but when i import stocktalk , i get this :
import stocktalk
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/stocktalk/init.py", line 2, in
from .visualize import visualize
File "/usr/local/lib/python3.5/dist-packages/stocktalk/visualize.py", line 1, in
from bokeh.layouts import row, column
ImportError: No module named 'bokeh'
please help , and thanks in advance
Hi,
I am using this beautiful piece of work in one of my project. I want to understand the underlying flow of streaming.py file.
What are the use of differnet functions :
- get_tracker(queries)
- get_reverse(queries)
- elapsed_time(start)
- process(text)
- on_status(self, status)
- streamer()
How and at which part the data from twitter are being pulled? ( with respect to function and class used in it and approach to pick relevant tweets after each refresh interval of 15 min)
Is it possible to store the raw tweet as well in the mongodb, instead of storing only the volume and sentiment of the tweets?
How the text inputs are being processed?
How and where sentiment analysis is being applied ?
Kindly help me with these queries!
Thanks,
Neel
I have followed the instructions on the main page. However, the bokeh server loads only a blank page. What am I missing?
changed code is....
rom stocktalk import streaming
API_KEY = 'XXXXXXXXXX'(there was mine)
API_SECRET = 'XXXXXXXXXX'(there was mine)
ACCESS_TOKEN = 'XXXXXXXXXX'(there was mine)
ACCESS_TOKEN_SECRET = 'XXXXXXXXXX'(there was mine)
credentials = [API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET]
FIRSTY = ['FIRSTY', 'Samsung']
tickers = [FIRSTY] # Used for identification purposes
queries = FIRSTY # Filters tweets containing one or more query
refresh = 30 # Process and log data every 30 seconds
path = "/home/name2/stalktwit/"
streaming(credentials, tickers, queries, refresh, path,
realtime=True, logTracker=True, logTweets=True, logSentiment=True, debug=True)
/////////
I changed the variable from 'TSLA' to 'FIRSTY'
and then there is errer that 'Got an error with status code: 420'
When my variable name was 'FIRS' or 'FIR', there was not error.
Thank you
Hi Anfederico,
is there any (simple) way to crawl tweets from the past. So, that I don't need to run the listen.py script for 1 or 2 years first, before i am able to run clairvoyant.
Kind Regards
Alex
hi
your app seems very useful for my research work, I made successfully setup , need some guideline to run program
Installation
pip install stocktalk .... Done
Download Corpus
python -m nltk.downloader vader_lexicon .... Done
Twitter Streaming
Problem : In which file I should find and update API details ?
and then how can I run application to collect data ?
Can you please share some details ?
`
from stocktalk.visualize import readUpdates, extrapolate, getPlot
from stocktalk import streaming
from stocktalk import visualize
API_KEY = ''
API_SECRET = ''
ACCESS_TOKEN = ''
ACCESS_TOKEN_SECRET = '**********'
credentials = [API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET]
TSLA = ['TSLA', 'Tesla']
SNAP = ['SNAP', 'Snapchat']
AAPL = ['AAPL', 'Apple']
AMZN = ['AMZN', 'Amazon']
tickers = [TSLA,SNAP,AAPL,AMZN] # Used for identification purposes
queries = TSLA+SNAP+AAPL+AMZN # Filters tweets containing one or more query
refresh = 30 # Process and log data every 30 seconds
path = "./data"
streaming(credentials, tickers, queries, refresh, path,
realtime=True, logTracker=True, logTweets=True, logSentiment=True, debug=True)
tickers = ['TSLA','SNAP','AAPL','AMZN']
refresh = 30
visualize(tickers, refresh, path)`
this my code I run bokeh server. but ı only got empty page. what ı am doing wrong ?
I keep getting an error that TwitterAxe cannot be found. Its very strange because I have installed all the requirements.txt and pip installed stocktalk -- all in a virtualenv. All paths look correct. Any ideas?
(venv) [pez:~/dev/stocktalk]$ python ./mine.py (master✱)
Traceback (most recent call last):
File "./mine.py", line 1, in
from stocktalk import TwitterAxe
File "/Users/pez/dev/Stocktalk/stocktalk/init.py", line 1, in
from TwitterAxe import TwitterAxe
ImportError: No module named 'TwitterAxe'
I'm receiving import errors after "pip install stocktalk" and "stocktalk-corpus" in a conda environment as well as global install.
After "from stocktalk import TwitterAxe" attempt:
ImportError: No module named 'TwitterAxe'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.