Running a Python script on a remote server and displaying the output files

41 views
Skip to first unread message

Jason Hsu

unread,
Dec 8, 2012, 9:31:05 PM12/8/12
to google-a...@googlegroups.com
I have a Python 2.7 script at https://github.com/jhsu802701/dopplervalueinvesting . When I run the screen.py script locally, the end result is a new screen-output sub-directory (within the root directory) and a results.csv file within it.

What I'm trying to do is put this script on a remote server, run this screen.py script every night, and make the results.csv file publicly readable.

I've tried to do this on Google App Engine, but I can't get it to work. The Google App Engine tutorial revolves around trying to dynamically create a web site, and I haven't been able to figure out how to make anything other than an index.html file in the root directory work. HOW DO I MAKE OTHER FILES PUBLICLY READABLE?

Is Google App Engine the way to go, or am I barking up the wrong tree? I understand that another route is using WebFaction, a web hosting provider that offers a whole Linux system. (Running my app on my current web host, MDDHosting, is not an option because lxml is not available without a much more costly VPS.)

In summary, my questions are:
1. How do I run my Python script in Google App Engine and make the output results.csv file publicly available?
2. If Google App Engine isn't the solution for me, should I use WebFaction? (I already tried Heroku, and it didn't work for me.)
3. What are my other options?

I'm willing to pay for a solution, but only if I get web hosting as well. (I'm not willing to pay for MDDHosting for my dopplervalueinvesting.com web site AND another host for running my script.)

Takashi Matsuo

unread,
Dec 9, 2012, 1:34:02 AM12/9/12
to google-a...@googlegroups.com
On Sat, Dec 8, 2012 at 6:31 PM, Jason Hsu <jhsu8...@gmail.com> wrote:
I have a Python 2.7 script at https://github.com/jhsu802701/dopplervalueinvesting . When I run the screen.py script locally, the end result is a new screen-output sub-directory (within the root directory) and a results.csv file within it.

What I'm trying to do is put this script on a remote server, run this screen.py script every night, and make the results.csv file publicly readable.

I've tried to do this on Google App Engine, but I can't get it to work. The Google App Engine tutorial revolves around trying to dynamically create a web site, and I haven't been able to figure out how to make anything other than an index.html file in the root directory work. HOW DO I MAKE OTHER FILES PUBLICLY READABLE?

Is Google App Engine the way to go, or am I barking up the wrong tree? I understand that another route is using WebFaction, a web hosting provider that offers a whole Linux system. (Running my app on my current web host, MDDHosting, is not an option because lxml is not available without a much more costly VPS.)

In summary, my questions are:
1. How do I run my Python script in Google App Engine and make the output results.csv file publicly available?

Please try using the Google Cloud Storage and Cloud Storage API. The document is hosted at:

-- Takashi
 

2. If Google App Engine isn't the solution for me, should I use WebFaction? (I already tried Heroku, and it didn't work for me.)
3. What are my other options?

I'm willing to pay for a solution, but only if I get web hosting as well. (I'm not willing to pay for MDDHosting for my dopplervalueinvesting.com web site AND another host for running my script.)

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/jSdCnbq7nUgJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Takashi Matsuo | Developers Advocate | tma...@google.com

Reply all
Reply to author
Forward
0 new messages