ToxTweet- Tools for Toxicovigliance on Twitter
Python files for Toxicovigilance on Twitter
A collection of Python files, also listed on PyPI, as part of an ongoing effort to use Twitter for toxicology research.
The easiest thing is to copy all of the files to someplace in your PYTHONPATH, like ~/bin.
RUN PYTHON MAIN.PY
This module creates a twitteryQuery.py object for all drugs listed in the formulary. It can save the results in JSON or XLS.
-Numpy/SciPy -XLRD XLWT -python-twitter (use pip install twitter not easy_install twitter) -matplotlib -simplejson -networkx
—>twitterQuery.py: main.py creates an instance of twitterQuery for each drug in the “formulary” that you are … querying Twitter for.
—>loadTweets.py is a helper function to calculate the Fleisch-Kincaid grade level of a tweet.
—> medgraph.py draws a degree-rank plot with the social graph as an inset. ATTRIBUTION: This is a modified version of a file from the matplotlib examples gallery.