[google-appengine] How to run this Python Script

2014-05-31 Thread Terry Smith
Hi there,

Just looking for a small bit of help in setting up the code in the link 
below.

http://shanelynn.ie/index.php/scrapi...-using-python/

I want to scrape the Dublin bike data for a number of docking stations and 
monitor how the system is being used. 


Would anyone be able to give me a quick setup guide on how I could get this 
setup to scrape data using google app engine or indeed if this is possible?


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] How to run this Python Script

2014-06-01 Thread Vinny P
On Sat, May 24, 2014 at 11:40 AM, Terry Smith  wrote:

> Just looking for a small bit of help in setting up the code in the link
> below.
> http://shanelynn.ie/index.php/scrapi...-using-python/
> 
> I want to scrape the Dublin bike data for a number of docking stations and
> monitor how the system is being used.
> Would anyone be able to give me a quick setup guide on how I could get
> this setup to scrape data using google app engine or indeed if this is
> possible?
>


It looks like the script you linked to has the option to write to CSV or a
SQLite DB. You can reuse most of the script, but you'll have to edit the
parts that record data. If you want to go the CSV route, you'll have to
write to Google Cloud Storage. You can see example code here:
https://developers.google.com/appengine/docs/python/googlecloudstorageclient/getstarted

If you want to store the data into a SQL DB, you'll need to edit the script
to use Cloud SQL. Here's example code:
https://developers.google.com/appengine/docs/python/cloud-sql/#Python_Connect_to_your_database


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.