C
C#2y ago
BOOBA

❔ Best web scraping/downloading library?

I saw someone recommended anglesharp, but does it allow downloading full page content (javascript,html,css etc.) or does it download only html and css? I am trying to create a tool that downloads a page that loads with javascript.
24 Replies
BOOBA
BOOBAOP2y ago
I am thinking of just trying python out just for this project because of how much options there are
Azrael
Azrael2y ago
You can only download the client part of a website. Most of the times the JavaScript parts are obfuscated. This is also completely unrelated to C#. $js
BOOBA
BOOBAOP2y ago
What are you even on about? You can download it with ctrl+s, and a bunch of different addons/methods (singlefile addon for chrome for example). But i haven't found a single way to do it in C# for the program that i was making
Azrael
Azrael2y ago
I am trying to create a tool that downloads a page that loads with javascript.
BOOBA
BOOBAOP2y ago
? The tool is in C# The page loads the html with javascript
Azrael
Azrael2y ago
Then you have to rephrase it.
BOOBA
BOOBAOP2y ago
Just because you didn't understand it doesn't mean that it's my fault
Azrael
Azrael2y ago
Because you're saying that you want to download a page with javascript on load.
BOOBA
BOOBAOP2y ago
Yes the page is loaded with javascript
Azrael
Azrael2y ago
What? It doesn't have to be.
BOOBA
BOOBAOP2y ago
The html contents are loaded with javascript
Azrael
Azrael2y ago
Are you referring to a specific website?
BOOBA
BOOBAOP2y ago
I am refering to a page that loads the html contents with javascript
No description
BOOBA
BOOBAOP2y ago
You can't do it normally with httpclient since the javascript needs to execute itself
Azrael
Azrael2y ago
Is that a requirement?
BOOBA
BOOBAOP2y ago
Yes
Azrael
Azrael2y ago
What if the website is static without any JavaScript?
BOOBA
BOOBAOP2y ago
Then i wouldn't be here asking for help
Azrael
Azrael2y ago
So you're saying that you want to download all the resources from a website?
BOOBA
BOOBAOP2y ago
Yes
Azrael
Azrael2y ago
Alright. Web Scraping is tedious. You're most likely going to need something like a WebDriver.
Azrael
Azrael2y ago
Selenium
WebDriver
WebDriver drives a browser natively, learn more about it.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?