Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[How To] Click The "Follow" Button On Twitter

So I have been trying to figure this out for a while now and finally got it to work so I thought I would post it here as well.

Code:
PHP Code

<?php 
Private Sub follow()
        Try
            
Dim col As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("div")
            For 
Each elem As HtmlElement In col
                
If elem.GetAttribute("classname").Contains("button profile-follow-button") Then
                    elem
.InvokeMember("click")
                
End If
            
Next
        
Catch ex As Exception
        End 
Try
    
End Sub 

If this has been posted before let me know and I will delete this thread.

Thanks is appreciated.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by The Pulp FictionApr 24, 2022 12:22 AM 2 199 Apr 24, 2022 12:22 AM
Last Post: The Pulp Fiction
[.NET] by triplextremeSep 15, 2020 02:29 PM 7 223 Sep 15, 2020 02:29 PM
Last Post: Dredd
[C#] by elmagekJan 2, 2020 02:04 PM 1 174 Jan 2, 2020 02:04 PM
Last Post: tkuczyn