Template:Chicago Python Workshop/Setup/Mac project dependencies: Difference between revisions

no edit summary
imported>Aisha
(Created page with "==Twitter== 200px ===Download and extract the Twitter project dependencies=== <ol> <li>Click and save these four dependencies to your Desktop: * http:/...")
 
imported>Aisha
No edit summary
 
Line 1:
===Twitter===
 
[[File:Twitter.png|200px]]
 
====Download and extract the Twitter project dependencies====
 
<ol>
Line 17:
</ol>
 
====Install the Twitter project dependencies====
 
Each of these 4 dependencies has an installer script that we'll need to run at a command prompt to install the software. '''It is important that the dependencies are installed in the order listed above.''' For each project, start a command prompt and navigate to the Desktop directory where the source code lives. For example, if the httplib2-0.6.0 project was extracted to /Users/jesstess/Desktop/httplib2-0.6.0,
Line 47:
in all of them to install those dependencies as well.
 
====Download the Twitter project====
 
We've written some skeleton code for the Twitter project already. Download this code so you're ready to start working with it tomorrow:
Line 55:
#Find Twitter.zip on your Desktop and double-click on it to "unzip" it. That will create a folder called Twitter containing several files.
 
====Test the Twitter code====
 
Start a command prompt and navigate to the Desktop/Twitter directory where the Twitter code lives. For example, if the Twitter project is at <code>/Users/jesstess/Desktop/Twitter</code>,
Line 77:
at the command prompt to execute the twitter_api.py Python script. You should the text from 20 tweets containing the word "Python" printed to the screen. If you don't, let a staff member know.
 
====Success!====
 
You've completed setup for the Twitter project.
 
===State Capitals===
 
We'll look at an example Python script that quizzes you on state capitals during the lecture on Saturday.
Line 88:
#* http://web.mit.edu/jesstess/www/BostonPythonWorkshop6/state_capitals.py
 
===Success!===
 
You are done installing dependencies for the Saturday projects.
Anonymous user