Results 1 to 2 of 2

Thread: [RESOLVED] Simple HTML code scraping

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2024
    Posts
    8

    Resolved [RESOLVED] Simple HTML code scraping

    So I have my webpage with a php server. It generates a response based on the username of the viewer. The username can be sent as both GET and POST data.

    What I want is to send the username from a VB app and getting the response. There are two points where I don't know how to do what I need:

    1- How to send username using POST. GET is simple enough, obviously.

    2- How to send the request and obtain a response asynchronously (as in, when the data arrives, some sort of event is triggered and I can check the data under that event) without having to resort to 3rd party dependencies such as HTML Agility Pack which would need to pack additional dll files etc with the finished project.

    Please note that I only need to read the code/HTML of the generated response. I do not need to pick up specific object data from the webpage.

    Many thanks.

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Simple HTML code scraping

    A couple years ago I made a scaper that scraped this site to collect some stats. Perhaps the code I used there might be able to guide you. Here is the thread in question:-
    https://www.vbforums.com/showthread....ats&highlight=

    Here is a link to the fiddle(Update 3 in the OP of the thread):-
    https://dotnetfiddle.net/72DCl9
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

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