Re: http web fetch question

2009-04-24 Thread Tim Roberts
grocery_stocker wrote: >On Apr 23, 3:29 pm, Chris Rebert wrote: >> On Thu, Apr 23, 2009 at 3:21 PM, grocery_stocker wrote: >> > Say I have a script that fetches data from a website every hour. Is >> > there a general solution or is the solution operating system specific? >> >> WRT the periodic

Re: http web fetch question

2009-04-23 Thread grocery_stocker
On Apr 23, 3:29 pm, Chris Rebert wrote: > On Thu, Apr 23, 2009 at 3:21 PM, grocery_stocker wrote: > > Say I have a script that fetches data from a website every hour. Is > > there a general solution or is the solution operating system specific? > > WRT the periodic operation part of your task, th

Re: http web fetch question

2009-04-23 Thread Chris Rebert
On Thu, Apr 23, 2009 at 3:21 PM, grocery_stocker wrote: > Say I have a script that fetches data from a website every hour. Is > there a general solution or is the solution operating system specific? WRT the periodic operation part of your task, there's the `sched` module -- http://docs.python.org

Re: http web fetch question

2009-04-23 Thread Jean-Paul Calderone
On Thu, 23 Apr 2009 15:21:21 -0700 (PDT), grocery_stocker wrote: Say I have a script that fetches data from a website every hour. Is there a general solution or is the solution operating system specific? General solution to what problem? Jean-Paul -- http://mail.python.org/mailman/listinfo/p

Re: http web fetch question

2009-04-23 Thread Philip Semanchuk
On Apr 23, 2009, at 6:21 PM, grocery_stocker wrote: Say I have a script that fetches data from a website every hour. Is there a general solution or is the solution operating system specific? It's not OS-specific. See the Python standard library modules urllib, urllib2, or just run a command