Good day! Tell me, there is a piece of html code, how can pythone implement a search for certain characters or words and copy words or numbers after or before them into the document. For example: :
> <tr style="border-top: solid 1px;"> > <td><strong>Дата 01.05.2014</strong></td> > <td><strong>Турпакет, Турция, Алания, 4 дня</strong></td> > <td style="width: 120px;"><strong>15 393 руб. <br /> (~ > 343 € , ~ 467 $)</strong></td> It is necessary to vytechit "05/01/2014", these numbers always go after the word "date" , which never changes, unlike them, you also need to continue to find the words after the unchangeable word "Turpaket" (in this case, "Turkey, Alania" ) but the problem is that unlike the date “05/01/2014” in which the number of characters is always the same, there may be more or less, but it is known that there are always numbers after them (or the word “day / day” or tag </strong> - any that can be used as an anchor to determine the end)
I would have at least an approximate algorithm, and I’ll finish it up somehow, I’m just not a programmer at all, but if I have something to push off, I’ll figure out how to make a thread.
ps The fact that it is copied from the html code is an option, perhaps it will be easier from xml, I'm just not familiar with the subtleties.