Programming help?

getresponse
Unknown asked:


I have a c# application which gets the bbc’s weather forcast for any location.

3573¬Brixton, United Kingdom
3574¬Raynes Park, United Kingdom
3575¬Chelsea, United Kingdom
3576¬Clapham, United Kingdom
3577¬Earl’s Court, United Kingdom

The application uses the following method to obtain the html source and parse it, loading the weather forcast into arrays:

WebRequest HTTP = (HttpWebRequest)WebRequest.Create(@”http://www.bbc.co.uk/weather/5day.shtml?id=” + ID);
string html = (new StreamReader(HTTP.GetResponse().GetResponseStream())).ReadToEnd();
string[] delimiters = { “return false;\” onmouseout=\”hideSym(); return false;\”>\"",

” };
string[] htmlsplit = html.Split(delimiters, StringSplitOptions.None);
string[] days = { htmlsplit[3], htmlsplit[11], htmlsplit[19], htmlsplit[27], htmlsplit[35], };
string[] images = { htmlsplit[2], htmlsplit[10], htmlsplit[18], htmlsplit[26], htmlsplit[34], };
string[] forcasts = { htmlsplit[4], htmlsplit[12], htmlsplit[20], htmlsplit[28], htmlsplit[36], };

First of all, is this illegal and second, if it is not illegal, can I create a similar vista sidebar gadget to show the forcast?
I only plan to run this on my computer and I only really need to update at logon. How can I make a vista sidebar gadget to do the same task?
I only plan to run this on my computer and I only really need to update at logon. How can I make a vista sidebar gadget to do the same task?

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Facebook
  • TwitThis

Autoresponder related posts:

2 Responses

  1. colanth Says:

    It’s legal to run it on your computer. It’s polite to not update it more than every 15 minutes or so. But if you plan to make it available for general public download, I’d contact them first.

  2. New S Says:

    What’s illegal? Taking HTML from a website? Oh noes! My browser just took HTML from Yahoo Answers. Gosh, I hope I don’t go to prison. I want to keep my baby behind tight.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.