Total Posts:2|Showing Posts:1-2
Jump to topic:

Importing Live Data

Posts: 12,788
Add as Friend
Challenge to a Debate
Send a Message
10/7/2012 11:01:25 AM
Posted: 4 years ago
I've learned some of the fundamentals of Python programming and am confident that I could manipulate data. The only problem is that I don't know how you would import live data, and keep placing it onto an ever-changing variable. How would you do it?
"Easy is the descent to Avernus, for the door to the Underworld lies upon both day and night. But to retrace your steps and return to the breezes above- that's the task, that's the toil."
Posts: 1,274
Add as Friend
Challenge to a Debate
Send a Message
10/8/2012 10:48:11 AM
Posted: 4 years ago
Infinite loop.

while True:
sleep(1000) # Sleep a second

(I'm not sure if I got the sleep command right).

If you need to keep the importing going throughout the day, consider invoking your program through a cron job (*nix),scheduled task (Windows), or running it in the background as a deamon/Windows service.
"If you claim to value nonviolence and you consume animal products, you need to rethink your position on nonviolence." - Gary Francione

THE WORLD IS VEGAN! If you want it