Displaying xp-erience headlines with coolmon

a1ehouse

Chamone M*tha Fu*ka
Joined
21 May 2002
Messages
288
Similar to the premiership table, display all or just the top 1/2/3 headlines:

xp-erience.vbs:

Const Separator = " "
Const Path = "xp-erience.txt"

set http = createobject("microsoft.xmlhttp")
Http.open "GET","http://www.xp-erience.org/news/index.shtml", false
Http.send
strng = Http.responsetext
Dim regEx
Set regEx = New RegExp
regEx.Global = True


regEx.Pattern = "<TR><TD><SPAN class=headline>(.*?)</FONT><BR><font class=""small"">"


Set Matches = regEx.Execute(strng) ' Execute search.


Set fs = CreateObject("Scripting.FileSystemObject")
Set outFile = fs.CreateTextFile(Path, True)
x=0


For Each Match in Matches ' Iterate Matches collection.
outfile.write match.SubMatches(0)

outFile.WriteLine
x=x+1
Next

outFile.close
 
yeah very nice, very useful for us xp-erience addicts ;)
 
Gotta keep up with the time I s'pose:

Modified headline grabber:

Save this from notepad as ntfs.vbs


Const Separator = " "
Const Path = "ntfs.txt"

set http = createobject("microsoft.xmlhttp")
Http.open "GET","http://www.ntfs.org/index.php", false
Http.send
strng = Http.responsetext
Dim regEx
Set regEx = New RegExp
regEx.Global = True

regEx.Pattern = "<a href="".*?""><font size=""2""><b>(.*?)</font></b></a>"

Set Matches = regEx.Execute(strng)

Set fs = CreateObject("Scripting.FileSystemObject")
Set outFile = fs.CreateTextFile(Path, True)

For Each Match in Matches
outfile.write match.SubMatches(0)
outFile.WriteLine
Next

outFile.close
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back