Ok...
So i'm trying to scrape a Web site and just pull off data from it periodically.
My first goal is to just get data from a site that has constantly updating numbers...lets take www.nasdaq.com for example.
i'm using XP and python 2.4...
The first thing i've done is identify part of the source code that keys me into where the number is, lets take "homeindexvolum e" for this example.
This is what I've tried...
So that gives me something like...<TD HEIGHT="24" CLASS="bubblemi ddle" ALIGN="right" id="homeindexvo lume" name="homeindex volume">1,585,6 99,200</TD>
That's good but BUT HOW CAN I:
1. get just the desired volume number (in this case 1,585,699,200)
2. Then how can I get it to do it again in 1 hour?
Thanks, sorry if this is so remedial that it hurts.
-pc
So i'm trying to scrape a Web site and just pull off data from it periodically.
My first goal is to just get data from a site that has constantly updating numbers...lets take www.nasdaq.com for example.
i'm using XP and python 2.4...
The first thing i've done is identify part of the source code that keys me into where the number is, lets take "homeindexvolum e" for this example.
This is what I've tried...
Code:
import urllib2
for line in urllib2.urlopen('http://www.nasdaq.com'):
if "homeindexvolume" in line:
print line
So that gives me something like...<TD HEIGHT="24" CLASS="bubblemi ddle" ALIGN="right" id="homeindexvo lume" name="homeindex volume">1,585,6 99,200</TD>
That's good but BUT HOW CAN I:
1. get just the desired volume number (in this case 1,585,699,200)
2. Then how can I get it to do it again in 1 hour?
Thanks, sorry if this is so remedial that it hurts.
-pc
Comment