Results 1 to 6 of 6

Thread: How do you read certain text from a website, and write it to a .txt file?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2018
    Posts
    51

    Question 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?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,689

    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?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2018
    Posts
    51

    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
    Code:
    <td>

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,689

    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
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    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.
    My Github - 1d3nt

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,386

    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.
    My usual boring signature: Nothing

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width