Skip to content

napsternxg/DataMiningPython

Repository files navigation

Data Mining Python

Data Mining python scripts for social scientists Binder

Installation instructions

conda env create -n datamining python=2
  • Above step should take some time and install all the required projects.
  • Once the everything is installed. Type the following in the command line: MAC or Linux users
source activate datamining

Winows users

activate datamining
  • Finally, type this command in your command line:
jupyter notebook
  • The above command should open a page in your web browser. It should show a list of files.

Twitter API keys

  • In the project directory copy the file twitter_config.sample.json to twitter_config.json
  • Go to https://apps.twitter.com/app/new to create a new twitter app.
  • Give a unique name to your app. Try DataMining-FA2016LIS590DTL-<yourname> [See Image]
  • Once app is created go to Keys and Access Tokens tabs [See Image]
  • Click on the button Create my access token [See Image]
  • Now on the page you should have values for the fields Consumer Key, Consumer Key Secret, Access Token, and Access Token Secret
  • Open your twitter_config.json in a text editor.
  • Copy the values of the fields from the respective sections of the web page between the quote in front of the similar field names.

Pre class checks for working packages

You are ready for class.

If you have any issues please feel free to contact me.

Class material

FAQ

  • Make sure you install the 2.7 version Screenshot for Windows | Screenshot for Mac
    • You can check if the version of python installed is indeed 2.7 by running the following commands in order:
    source activate datamining
    python --version
    
    • The last command should show you the version of python. Make sure it is 2.7 and not 3.5.
  • Anaconda installation shows the message similar to could not establish the PATH and menus. Suggested fixes:
    • After installation is complete try restarting the machine. Then from the project directory run the conda commands.
    • If above fails by error messages similar to "conda" isn't a recognized command, then that means that your system cannot find conda command. You can add conda command by adding the following to the end of your system path (on windows): ;E:\Anaconda;E:\Anaconda\Scripts; E:\Anaconda\DLLs;. Please replace E:\Anaconda with the path to where you installed Anaconda. Details on editing system PATH can be found at: http://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/. You need to restart the maching after this and rerun the activate commands.
    • If the above fails. Try uninstalling any other python version, then restarting machine, then reinstalling conda, and then restarting machine again. It should be able to add the path variables correctly this time.

I will keep updating this FAQ as I hear about more issues.

About

Data Mining python scripts for social scientists

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published