I'm trying to get the phone from the mobile version, there it is in the text, but to get it you need to click " Show number ". Here is an example.
By clicking on the " Show number " request type https://m.avito.ru/chita/tovary_dlya_detey_i_igrushki/kupi_slona_696014781/phone/fae634b4155194d4b5f7746ce08ecc86?async leaves, but if you try to insert into the tab, you can use your system to find your way to {"error":"пожалуйста, обновите страницу"}
headers = {'User-Agent' : 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36'} session = requests.session() resp = session.get(url, headers=headers) html = fromstring(resp.content) href = html.xpath(".//*[@class='clearfix']/a[1]/@href")[0] url = urljoin(resp.url, href+'?async') resp = session.get(url) html = fromstring(resp.content) phone = html.xpath(".//*[@class='clearfix']/a[1]/span/text()")[0] If you remove ?async , then it simply renders the page with the ad.
Tell me how to pull?