1
Answer

Universal Code to Insert in Virtual Web Ripper to Extract Large Images

We require a solution that can be used universally for our data representatives when setting up a VIRTUAL WEB RIPPER PROJECT
-- without custom scripting per project and image element.

Basically is there any way under the sun to write one code (C# OR VB.NET) that can be inserted into each project that follows each thumbnail link to their respective larger image and harvests the larger image in place of the thumbnail.

We are willing to pay for the right solution.

Thanks

Answers (1)

0
Photo of Sam Hobbs
NA 28.7k 1.3m 14y


If I understand you, then I have written code that does that. I don't understand, however, what you mean by "inserted into each project".
 
I am not sure what a "thumbnail link" is. I assume it is a link in HTML that is a thumbnail of a larger image and the target of the link is the larger image. So you need code that finds the thumbnail link in the HTML and then downloads the image that is the specified target. Does that sound correcgt?
 
For projects such as this that you are willing to pay for, there is a separate forum for that purpose. Yop can use that forum for future requests.
 
To find a link in HTML, you can use code such as in my Introduction to Web Site Scraping article. It might be possible to use something simpler but I prefer to ensure a reasonable level of reliability and reliability might require more sophisticated processing than the simplest solution might be.
 
Then to download the file, just use something such as:
System.Net.WebClient wc = new System.Net.WebClient();
try
{
wc.DownloadFile(ImageURL, Path);
}
catch (Exception ex)
{
// error message
}

 
You can contact me by sending a private message from my profile page at:
http://www.c-sharpcorner.com/Authors/AuthorDetails.aspx?AuthorID=SamTomato