tobject Posted February 10, 2010 Posted February 10, 2010 Do you guys know how to initiate Twitter Follow button click ? <button href="/friendships/create/" class="btn" value="Actions" title="Follow worldfinance"><i></i></button> This one does not work for $oLink in $oLinks $sTmp=String($oLink.innerText); if (StringInStr($sTmp, "Follow user") > 0 ) and (StringInStr($sTmp, "Unfollow user") = 0) Then ;MsgBox(0,"Found Link", $sTmp); _IEAction($oLink,"click"); endif; endif; next;
Steveiwonder Posted February 10, 2010 Posted February 10, 2010 (edited) #include <ie.au3> $oIE = _IEcreate("http://twitter.com/Falcubar") $tags = _IETagNameAllGetCollection($oIE) For $tag in $tags If $tag.tagname = "button" and $tag.outertext = "Follow" Then $tag.click ExitLoop EndIf Next Edited February 10, 2010 by Steveiwonder They call me MrRegExpMan
tobject Posted February 10, 2010 Author Posted February 10, 2010 love it! Thanks! for some reson I have looks like infinite loop it scrolls whole page and starts again anyway I can do a count first
Steveiwonder Posted February 10, 2010 Posted February 10, 2010 This is better.. #include <ie.au3> $oIE = _IEAttach("Twitter") $tags = _IETagNameGetCollection($oIE, "button") For $tag in $tags If $tag.outertext = "Follow" Then $tag.click EndIf Next They call me MrRegExpMan
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now