I’ll try to explain what exactly I mean. I’m working on a program and I’m trying to download a bunch of images automatically from this site.
Namely, I want to download the big square icons from the page you get when you click on a hero name there, for example on the Darius page the image in the top left with the name DariusSquare.png and save that into a folder.
Is this possible or am I asking too much from C#?
Thank you very much!
In general, everything is possible given enough time and money. In your case, you need very little of former and none of latter 🙂
What you need to do can be described in following high-level steps:
<a>tags within the table with heroes.WebClientclass to navigate to URL these<a>tags point to (i.e. to value ofhrefattributes) and download the HTMLsrcattribute and download it. Alternatively, perhaps each image has an common ID you can use?I don’t think anyone will provide you with an exact code that will perform these steps for you. Instead, you need to do some research of your own.