RE: [VB] API for CodeCommunity [WIP] 07-23-2013, 07:01 PM
#11
(07-23-2013, 06:34 PM)shebang Wrote: If you're looking to get the usertitle still (says so in your focus), here's a solution.
Code:Dim x As String = New IO.StreamReader(Net.WebRequest.Create("http://www.codecommunity.net/member.php?action=profile&uid=" & UID).GetResponse.GetResponseStream).ReadToEnd Return Split(Split(x, "<!-- start: member_profile_groupimage -->")(1).Split(">")(0), "alt=""")(1).Split("""")(0)
Just FYI, Split() is twice as fast as RegEx (if that's what you are using).
I would never use Regex to get the usertitle, thanks a bunch!



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: F3ZvH3k.png]](http://i.imgur.com/F3ZvH3k.png)





![[Image: CDUAq9d.png]](http://i.imgur.com/CDUAq9d.png)

![[Image: OkXCq.gif]](http://i.imgur.com/OkXCq.gif)

![[Image: tumblr_m4vms28lYu1qj3ir1.gif]](http://media.tumblr.com/tumblr_m4vms28lYu1qj3ir1.gif)