Twitter project Windows setup: Difference between revisions

Content added Content deleted
imported>Mako
No edit summary
imported>Ben zen
(→‎Test the TwitterAPI code: Fixed some cmd-to-powershell stuff, added code tags, removed a run.py reference.)
 
Line 15: Line 15:
==Test the TwitterAPI code==
==Test the TwitterAPI code==


Start a command prompt and navigate to the Desktop\TwitterAPI directory where the TwitterAPI code lives. For example, if the TwitterAPI project is at <code>C:\Users\'''YOURUSERNAME'''\Desktop\TwitterAPI</code>,
Start up PowerShell and navigate to the Desktop\TwitterAPI directory where the TwitterAPI code lives. For example, if the TwitterAPI project is at <code>C:\Users\'''YOURUSERNAME'''\Desktop\TwitterAPI</code>,


cd C:\Users\'''YOURUSERNAME'''\Desktop\TwitterAPI
cd C:\Users\'''YOURUSERNAME'''\Desktop\TwitterAPI
Line 21: Line 21:
will change you into that directory, and
will change you into that directory, and


dir
ls


will show you the source code files in that directory. One of the files is "twitter1.py", which has a ".py" extension indicating that it is a Python script. Type:
will show you the source code files in that directory. One of the files is "<code>twitter1.py</code>", which has a "<code>.py</code>" extension indicating that it is a Python script. Type:


python twitter1.py
python twitter1.py


at the command prompt to execute the run.py Python script. Wait a little while while your computer connects to Twitter. You should see a series of tweets run by your screen. If you don't, let a staff member know.
at the command prompt to execute the <code>twitter1.py</code> Python script. Wait a little while while your computer connects to Twitter. You should see a series of tweets run by your screen. If you don't, let a staff member know.


==Success!==
==Success!==