Hey.

Help, please, write a parser of the website of the gismeteo, which pulls out the weather forecast and writes it into a variable.

Thank you very much in advance!

Closed due to the fact that it was off-topic by Athari , Oceinic , YuriSPb , zRrr , Streletz on Dec 3 '15 at 19:19 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Athari, Oceinic, YuriySPb
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    @djbolya, help - we will help, just show what you did yourself and what exactly the difficulties arose with. - Deonis
  • gismeteo.ru/api - what's not comfortable? - Andrei

1 answer 1

Weather data starts with 407 lines http://www.gismeteo.ru/city/daily/xxxx/ , where xxxx is the number of your city. When you pull the information using the program, the line number may differ. For a list of city numbers, see the site itself.
When you decide on how and which data you will pull from the site, you can unsubscribe here, showing a part of the code, and they will most likely help you. Buffer only the necessary lines. Most likely, it will be easier to first find "<h1 class =" wtitle "> Weather in% city_name% </ h1>" in the source code of the page, and only further navigate.