简体   繁体   中英

Facebook Website HTML Content Parsing in english language

I was trying to parse facebook website html content page and I have done it, but I got html page document language in different type I want it in english language,

eg : I got the html page like <!DOCTYPE html><html lang="te" id="facebook".....

But I want it like <!DOCTYPE html><html lang="en" id="facebook......"

Code:

HtmlWeb objWeb = new HtmlWeb();
HtmlDocument objDoc = objWeb.Load(Url);
string htmldoc = objDoc.DocumentNode.OuterHtml;

Please suggest me how can i do that?

County information usually gets sent with the URL.

The url can contain locale information.

Www.domainName.com/en-GB/index

So essentially go to facebook, click the link to change the site to English, if it hasn't already done this, and copy the English url containing the the current url parameters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM