HelpHow to web scrape?

Posts 1–3 of 3 · Page 1 of 1
How to web scrape?
I'm still pretty new to vb.net and I want to learn how to web scrape site's like get specific information using div ids
Thanks, that tutorial's really helpful, but how would I get information like from rankings via page source?

EDIT:


This is what I have
Code:
Imports WebClasses
Imports System.Net
Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub
    Dim wClass As New WebClass()
    Dim cCont As New CookieContainer()
    Private Function tryLogin(ByVal username As String, ByVal password As String) As Boolean
        'Calls
        Dim site As String = "http://sitehere/login.php"
        Dim data As String = "username=" & TxtBox1.Text & "&password=" & TxtBox2.Text & "&loginBtn=Login"
        Dim referer As String = "http://sitehere/login.php"

        Dim requestString As String = wClass.PostData(site, data, referer, cCont) 'Cache Storage
        'Login Successful! Redirecting.... 
        Dim retVal As Boolean = False 'default return is false
        If requestString.Contains("Login Successful! Redirecting....") Then retVal = True
        Return retVal
    End Function
EDITEDIT: @Jason or @'Bruno ?
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us