In this method the url for requests.get() triggers protection programs-robots.
1. Try before executing requests.get() Requests to fill the data Headers, which sends, for example, Chrome when accessing the Yandex.
2. Change url that is designed to search for information about the weather in Tomsk, on "https://yandex.ru/pogoda/tomsk
" and, of course, the parameters for the selection of temperature.
3. If the lock will be triggered, we suggest to use the module silenium (controlling the browser from your program)