1 Replies - 828 Views - Last Post: 17 April 2013 - 04:07 AM

#1 kea995  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 8
  • Joined: 19-July 11

Streaming data from one website to another

Posted 21 February 2013 - 04:30 AM

Given you have this content on a website

Timestamp Speed
2012-12-11 08:45:00.0 222.2
2012-12-11 08:46:00.0 111.3
2012-12-11 08:47:00.0 123.6
2012-12-11 08:48:00.0 234.7
2012-12-11 08:49:00.0 234.87
2012-12-11 08:50:00.0 457.1
2012-12-11 08:51:00.0 239.4
2012-12-11 08:52:00.0 376.4
2012-12-11 08:53:00.0 -9999.9

and you know the url of the website.

Is it possible to use javascript (or what should be used) to select the most recent timestamp
(but not the timestamp with the content -9999.9) and its value, and save the timestamp and the value
in two variables that can be displayed on another webpage?

There will be a new updates every minute that should
be streamed to the other page.

Is This A Good Question/Topic? 0
  • +

Replies To: Streaming data from one website to another

#2 kea995  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 8
  • Joined: 19-July 11

Re: Streaming data from one website to another

Posted 17 April 2013 - 04:07 AM

Use Python:
import urllib
# Get a file-like object
f = urllib.urlopen("http://www.......")

let the download loop

and import it using javascript
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1