How do you read certain text from a website, and write it to a .txt file?
There is a website called https://virusshare.com/, and I would like to get certain text from it, and write that bold text to a .txt file. The text that is circled (ignore the one that is circled at the bottom) is the one I want to write to a .txt file.
https://imgur.com/a/pwkSDiC
How would I write certain text from a website and write it too a .txt file? And, check with a Timer on a regular basis if theres an update for a hash?
Re: How do you read certain text from a website, and write it to a .txt file?
What have you done and where are you stuck?
Re: How do you read certain text from a website, and write it to a .txt file?
I've read various questions on Microsoft such as this one: https://social.msdn.microsoft.com/Fo...orum=vbgeneral, but the MD5 hash has no element I can see, just a
Re: How do you read certain text from a website, and write it to a .txt file?
Extracting text from a web page is known as screen scraping.
https://www.bing.com/search?q=vb.net...EToAo%21f4Y21w
You don't need help with how to write text to a text file or how to use a Timer.
Calculating an MD5 hash means creating a Byte array first. How you do that depends on what you want to hash. You might call DownloadData on a WebClient to get the page as a Byte array or you might start with text and call Encoding.GetBytes.
https://www.bing.com/search?q=vb.net...1208C4F527E31A
Re: How do you read certain text from a website, and write it to a .txt file?
The use of bots, scripts, or other methods to scrape data from the site, download samples at an excessive rate, or otherwise affect general performance of the site or backend systems will not be tolerated. VirusShare is a free site: Don't ba a jerk.
The site clearly does not allow this.
Re: How do you read certain text from a website, and write it to a .txt file?
ident is right. The site explicitly prohibits what you are trying to do. Therefore, the question violates the AUP of this site. Do not ask about it again.