Answer the question
In order to leave comments, you need to log in
How to search for an element in a c# tree?
Good afternoon, there is such a piece of Python code, it works fine for me, there are no problems with it, but I would like to rewrite it in c#
if 'Сменить интерфейс' in main_page.text and 'iframe-topline-table' in main_page.text: # если активирована полная версия игры\
print('была полная версия сайта,сменили')
web_page = html.fromstring(main_page.content)
for i in web_page.xpath('//a/@href'):
if '?sr_method=changeInterface' in i:
change_i_link = i
var url = "https://steamcommunity.com/?l=russian";
var httpClient = new HttpClient();
var html = await httpClient.GetStringAsync(url);
Console.WriteLine(html);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question