开发者

transferring real time data from a website in python

I am programming in Python. I would like to extract real time data from a webpage without refreshing it: http://www.fxstreet.com/rates-charts/currency-rates/

I think the real time data webpage is written in AJAX but I am not quite sure.. I thought about opening an internet browser开发者_C百科 with the program but I do not really know/like this way... Is there an other way to do it?

I would like to fill a dictionnary in my program (or even a SQL database) with the latest numbers each second. please help me in python, thanks!


To get the data, you'll need to look through the javascript and HTML source to find what URL it's hitting to get the data it's displaying. Then, you can call that URL with urllib or your favorite python library and parse it

Also, it may be easier if you use a plugin like Firebug that lets you watch the AJAX requests.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜