Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get page is incomplete #482

Open
snowchenlei opened this issue Aug 23, 2022 · 3 comments
Open

get page is incomplete #482

snowchenlei opened this issue Aug 23, 2022 · 3 comments
Assignees

Comments

@snowchenlei
Copy link

var document = await web.LoadFromWebAsync("http://whsggzy.wuhu.gov.cn/whggzyjy/005/005001/005001001/20220819/87d3fb1c-eeb0-457f-b040-3a74593cda1d.html");
However, the content obtained is different from the original web page。
(//*[@id="process-list"]/li[1]) this xpath element date-url attribute is empty

@JonathanMagnan JonathanMagnan self-assigned this Aug 23, 2022
@JonathanMagnan
Copy link
Member

Hello @snowchenlei ,

I quickly looked at it, and it might be due because the data is populated after the page is loaded. However the method LoadFromWeb get the source HTML, not the final HTML after the page is rendered

There are 2 way to solve it:

Best Regards,

Jon


Sponsorship
Help us improve this library

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework ExtensionsDapper Plus

Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function

@snowchenlei
Copy link
Author

I'm using .net core, which is bad

@JonathanMagnan
Copy link
Member

So I recommend you using Selenium Web Driver if that's possible: https://riptutorial.com/selenium-webdriver/learn/100000/overview

It works really help and depending on what you want to achieve, might open a lot of opportunities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants