Tiny python utility that converts data crawled from different services into cloud of words. Utility represents collection of the different python scripts. Folder services contains the services supported with their more detailed description (installation, usage, etc.). Folder services-to-wordcloud contains the list of python scripts that are taking data acquired from particular service and transform data into cloud of word.
ORCID (publications abstracts)
NOTE This section lists only the main dependencies of the "services-to-wordcloud". Dependencies of the each service are described inside READMEs services's own services folders.
Use 'pip' to install dependencies
pip install pyprind
pip install numpy
pip install matplotlib
pip install pandas
pip install scipy
Or use 'conda' from Anaconda Scientific Python Distribution to install dependencies (better solutions in case you are new to python or Windows user):
conda install matplotlib
conda install pyprind
conda install numpy
conda install pandas
conda install scipy
If you are not able to find package 'by default' with 'conda'
, please use 'binstar' to find proper binary of the package.
For example for 'twitter' looks as follows:
binstar search -t conda twitter
Installing wordcloud python package can be very tricky
conda install pil
pip install git+git://github.com/amueller/word_cloud.git
In case you really need to compile a python package on Windows, do not use MinGW, it won't work. Because the official compiler for the Python on Windows is Microsoft Visual C++ Compiler. If you already have Visual Studio installed on your PC, that you can execute the following command based on the version of Visual Studio installed (for me it was a case when needed to install Python package in virtualenv
folder):
- Visual Studio 2010 (VS10):
SET VS90COMNTOOLS=%VS100COMNTOOLS%
- Visual Studio 2012 (VS11):
SET VS90COMNTOOLS=%VS110COMNTOOLS%
- Visual Studio 2013 (VS12):
SET VS90COMNTOOLS=%VS120COMNTOOLS%
You can also use patch for your Windows, that can be found here. After installing specific compiler for Python 2.7 on Windows, you also will need to upgrade your setuptools:
pip install --upgrade setuptools
However, if you are fan of the MinGW and it's already installed and used as a "default" C and C++ compiler on your Windows machine, on the moment of the Python package compilation (while intalling wordcloud) is better to remove it from your %PATH% variable.
If above mentioned advises didn't work for you, here are some more detailed answers on various AMA services:
- Heavily inspired by the article Turn Your Twitter Timeline into a Word Cloud Using Python written by @rasbt
- Fonts are taken from the various of places and initially distributed by the authors under one of the open licenses.
- A huge collection of fonts can be found in the googlefontdirectory github repository.
- Another collection of fonts by fontsquirrel
- Russian stopwords are taken from stop-words
Check this file with license