http web fetch question

grocery_stocker cdalten at gmail.com
Thu Apr 23 20:03:58 EDT 2009


On Apr 23, 3:29 pm, Chris Rebert <c... at rebertia.com> wrote:
> On Thu, Apr 23, 2009 at 3:21 PM, grocery_stocker <cdal... at gmail.com> 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/library/sched.html
>

Maybe I'm being a tad bit dense here, but I don't see how this
schedule mod can be used to fetch data from a website every hour for
10 hours straight and why this is different than using something like
time.sleep().



More information about the Python-list mailing list