C
C#10mo 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
BOOBA10mo ago
I am thinking of just trying python out just for this project because of how much options there are
Azrael
Azrael10mo 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
BOOBA10mo 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
Azrael10mo ago
I am trying to create a tool that downloads a page that loads with javascript.
BOOBA
BOOBA10mo ago
? The tool is in C# The page loads the html with javascript
Azrael
Azrael10mo ago
Then you have to rephrase it.
BOOBA
BOOBA10mo ago
Just because you didn't understand it doesn't mean that it's my fault
Azrael
Azrael10mo ago
Because you're saying that you want to download a page with javascript on load.
BOOBA
BOOBA10mo ago
Yes the page is loaded with javascript
Azrael
Azrael10mo ago
What? It doesn't have to be.
BOOBA
BOOBA10mo ago
The html contents are loaded with javascript
Azrael
Azrael10mo ago
Are you referring to a specific website?
BOOBA
BOOBA10mo ago
I am refering to a page that loads the html contents with javascript
No description
BOOBA
BOOBA10mo ago
You can't do it normally with httpclient since the javascript needs to execute itself
Azrael
Azrael10mo ago
Is that a requirement?
BOOBA
BOOBA10mo ago
Yes
Azrael
Azrael10mo ago
What if the website is static without any JavaScript?
BOOBA
BOOBA10mo ago
Then i wouldn't be here asking for help
Azrael
Azrael10mo ago
So you're saying that you want to download all the resources from a website?
BOOBA
BOOBA10mo ago
Yes
Azrael
Azrael10mo ago
Alright. Web Scraping is tedious. You're most likely going to need something like a WebDriver.
Azrael
Azrael10mo ago
Selenium
WebDriver
WebDriver drives a browser natively, learn more about it.
Accord
Accord10mo 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
More Posts
❔ visual studio windows form app, how can i allow a panel to extend out of the form itsself?I have a custom dropdown menu i'm making for a windows form application, and i'm wondering if it's p❔ Blazor .Net 8 Rendermode Auto switchIs it normal that a Component with "Rendermode=Auto" is displaying the Server Component for about a ✅ Controller routing in 2023Hi, as I understand it, just like everything in programming, you can do one thing in many different ❔ I need to make sure I understand and doing this correctlyI'm learning coding in class and this video explain classes and objects. I tried my best to follow w❔ Help with TargetInvocationException when creating trace switchI have 3 files, appsettings.json, instrumenting.csproj and Program.cs. appsettings.json:❔ ✅ portfolio guidanceHello, I want to preface by saying I am fairly new, I haven't launched anything yet but i am committ❔ Hoe can I make 3d in WinForms?Hello, for a few days I was planning to make a 3d game in the WinForms using C#. The only problem is❔ trying to consume signalr through gatewayI am using the followin json in my gateway ```json { "DownstreamPathTemplate": "/ws", "Upstream❔ I would love some Feedback on my first Pseudocode I had to do for Class (C++)Please Let me know if you can understand. The topic was to write a Pseudocode about a fitness routin✅ Event Trigger should SetActive GameObject (Unity)Does anybody know why this (C#) code isn't working? It doesn't give me an error, it just doesn't do