mIRC Home    About    Download    Register    News    Help

Print Thread
#69650 30/01/04 12:38 AM
W
WarlockW
WarlockW
W
trying to get : www.weather.com/weather/local/55401

Using socks But I get redirected ect :

http://www.w2.weather.com/common/jump2.html?/weather/local/55343">

HTTP/1.1 200 OK
Date: Fri, 30 Jan 2004 00:30:15 GMT
Server: Apache
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=iso-8859-1
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Refresh" content="0;URL=http://www.w2.weather.com/common/jump2.html?/weather/local/55343">
</head>
<body>
<img height=1 width=1 border=0 src="/RealMedia/ads/adstream_nx.ads/noad.weather.com/noad@TopBanner">
</body>
</html>


Any How How The Heck Do I Do This ?

#69651 30/01/04 01:18 AM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Before telling you how to get there, I shall let you know that the owners of weather.com aren't happy with the idea of scripts reading their pages. If you look at their images URLs you'll notice they include the following string:(I personally have tried to check what this XML is all about with no luck).

To get the real page open a socket to www[/i].w3.weather.com and send the following headers:
  • GET /weather/local/55401 HTTP/1.0
    Host: www[/i].w3.weather.com
    Connection: Close
Anyway, if you're going to make a weather script for constant use, I suggest you to seek for alternatives and not to use it against the webmaster's explicit request.

#69652 30/01/04 04:14 AM
W
WarlockW
WarlockW
W

Thanks ..

I Will Check into The XML Thing ..

#69653 30/01/04 04:45 AM
I
Iori
Iori
I

#69654 30/01/04 01:02 PM
W
WarlockW
WarlockW
W
went to the www site you listed ...

you can reg. for it ... lol but they
don't tell you how to get it ....

got any ideas ?

#69655 31/01/04 12:25 AM
I
Iori
Iori
I
No sorry, I haven't signed up. I assumed that info would become available after filling in the registration page(s).

#69656 31/01/04 12:48 AM
W
WarlockW
WarlockW
W
Yes .. They Send you a email ..
With Links how to use it ..

After you reg.

Very cool .. And Free ...

#69657 31/01/04 12:55 AM
I
Iori
Iori
I
Cool smile

#69658 31/01/04 01:04 AM
Joined: Dec 2003
Posts: 259
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 259
...And free grin grin grin

#69659 31/01/04 01:08 AM
I
Iori
Iori
I
Yes free.
I get my weather info from my govts Dept, of Meterology site, also free. smile

#69660 31/01/04 04:00 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
The email instructs you to download their XML Software Development Kit from this URL:This file includes some weather-related icons you can include in your website/application and a guide in PDF format. According to that guide, you can retrieve the XML feed by requesting this page:Of course, "55343" may vary.

#69661 01/02/04 04:08 AM
I
Iori
Iori
I
Ah. Pretty neat, I just had a quick look at the feed.. laugh


Link Copied to Clipboard