C
C#15mo 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
BOOBAOP15mo ago
I am thinking of just trying python out just for this project because of how much options there are
Azrael
Azrael15mo 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
BOOBAOP15mo 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
Azrael15mo ago
I am trying to create a tool that downloads a page that loads with javascript.
BOOBA
BOOBAOP15mo ago
? The tool is in C# The page loads the html with javascript
Azrael
Azrael15mo ago
Then you have to rephrase it.
BOOBA
BOOBAOP15mo ago
Just because you didn't understand it doesn't mean that it's my fault
Azrael
Azrael15mo ago
Because you're saying that you want to download a page with javascript on load.
BOOBA
BOOBAOP15mo ago
Yes the page is loaded with javascript
Azrael
Azrael15mo ago
What? It doesn't have to be.
BOOBA
BOOBAOP15mo ago
The html contents are loaded with javascript
Azrael
Azrael15mo ago
Are you referring to a specific website?
BOOBA
BOOBAOP15mo ago
I am refering to a page that loads the html contents with javascript
No description
BOOBA
BOOBAOP15mo ago
You can't do it normally with httpclient since the javascript needs to execute itself
Azrael
Azrael15mo ago
Is that a requirement?
BOOBA
BOOBAOP15mo ago
Yes
Azrael
Azrael15mo ago
What if the website is static without any JavaScript?
BOOBA
BOOBAOP15mo ago
Then i wouldn't be here asking for help
Azrael
Azrael15mo ago
So you're saying that you want to download all the resources from a website?
BOOBA
BOOBAOP15mo ago
Yes
Azrael
Azrael15mo ago
Alright. Web Scraping is tedious. You're most likely going to need something like a WebDriver.
Azrael
Azrael15mo ago
Selenium
WebDriver
WebDriver drives a browser natively, learn more about it.
Accord
Accord15mo 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.
Want results from more Discord servers?
Add your server