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

.NET 

[Source] Steam Snippets [RegEx]

Here's another method, gets the date as well:

Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  ReturnNameHistory("http://steamcommunity.com/id/8295", ListView1)
    End Sub

    Sub ReturnNameHistory(ByVal url As String, ByVal lv As ListView)
  Dim rl As New ListView.ListViewItemCollection(lv)
  Dim s As String = New Net.WebClient().DownloadString(url & "/namehistory")
  Dim non As Integer = System.Text.RegularExpressions.Regex.Matches(s, System.Text.RegularExpressions.Regex.Escape("-</span>")).Count
  For i As Integer = 2 To non Step 2
    rl.Add(New ListViewItem(Split(s, "-</span>")(i).Split("<")(0).Replace(ChrW(9), "")))
    rl.Item(rl.Count - 1).SubItems.Add(Split(s, """historyDate"">")(i / 2).Split("<")(0))
  Next
    End Sub
(Jan 7, 2012 12:10 PM)(╯°□°)╯︵ ┻━━┻ Wrote:  Nice share. Just wondering, how do you get the code transparent?

It's not transparent. The pic is darker than the HF skin
(Jan 7, 2012 12:18 PM)(╯°□°)╯︵ ┻━━┻ Wrote:  Oh, it looked transparent at a glance. But what did you do to put it on that background..?

I made a tread a while back:

https://hackforums.net/showthread.php?tid=1183407
Very nice share, thanks a lot. Only problem is that the profile must be public for some of the functions to work, unless you are logged into the account.
Why use Replace when you just just use Regex groups?
Also, if the user has not setup a Steam community profile it will also fail
Thanks alot for the communityid to steamid conversion snippet! been looking around for that
Thanks for the Steam Snippets, great share!
Sub ReturnNameHistory

The ironic thing is it doesn't return anything and it's a sub


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by SIM-5432905Nov 16, 2023 04:06 PM 8 286 Nov 16, 2023 04:06 PM
Last Post: Hackers
[.NET] by SoldiercrimesJan 14, 2018 01:24 PM 16 486 Jan 14, 2018 01:24 PM
Last Post: Sn0wX
[.NET] by XoggOct 4, 2017 10:05 PM 31 2,059 Oct 4, 2017 10:05 PM
Last Post: Xogg