Hello,
I am trying to save updated Forex ticker data from this website: http://forex.offers4u.biz/TickDBReadDB.php?p=EURUSD
just hit refresh to update the ticker.
when I use my little python script, it saves the text once, but if i run it again, it makes a new file with the same old data. How can I add a "cachebreaker" so that python can read the new data from the old URL?
import urllib2, time
filename = 'EURUSD ' + str(time.asctime()) + '.txt'
myfile = open(filename, 'w')
page = urllib2.urlopen("http://forex.offers4u.biz/TickDBReadDB.php?p=EURUSD?")
for line in page:
myfile.write(line)
myfile.close()
page.close()