SteveO Posted August 14, 2007 Share Posted August 14, 2007 (edited) I need to go to a page, and grab topic numbers from the source code, then save them in an array, so I can randomly pick a topic from the array. So how would I go about grabbing the topic number from the page source? Example HTML Page Source expandcollapse popup<div align="center"> <table style="border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0);" border="0" cellpadding="2" cellspacing="0" width="100%"> <tbody><tr> <td class="contentModuleHeaderAlt" style="border-right: 1px solid rgb(0, 0, 0);" align="center">Topic/Author</td> <td class="contentModuleHeaderAlt" style="border-right: 1px solid rgb(0, 0, 0);" align="center" width="50">Replies</td> <td class="contentModuleHeaderAlt" align="center" width="95">Last Post</td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831623" class="blistTopic">Cassie/ ~*Rating Fonts*~</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=bumblebee006733" class="blistSmall"><b>bumblebee006733</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">45</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112831623&next=41"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831360" class="blistTopic">NAME RATER! i rate ur name and put it up on my next board! PRIZE MAY BE INCLUDED</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=darknessfalls_95" class="blistSmall"><b>darknessfalls_95</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">7</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:49pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112830663" class="blistTopic">Avatar Survivor</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=silver_moon11" class="blistSmall"><b>silver_moon11</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">99</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112830663&next=81"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112829506" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/star.gif" border="0"> RS & CHAT <img src="http://images.neopets.com/neoboards/smilies/star.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=gman1969" class="blistSmall"><b>gman1969</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">189</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112829506&next=181"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831243" class="blistTopic">I bought an old shoe.</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=alymarcas" class="blistSmall"><b>alymarcas</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">50</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112831243&next=41"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112829601" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/blumaroo.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/star.gif" border="0"> _ _ _ [ VERTIGO ] <img src="http://images.neopets.com/neoboards/smilies/swagbag.gif" border="0"> avatar guild <img src="http://images.neopets.com/neoboards/smilies/usul.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=honorably" class="blistSmall"><b>honorably</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">122</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112829601&next=121"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112830768" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/star.gif" border="0"> Looking to borrow everything<img src="http://images.neopets.com/neoboards/smilies/oh.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/vampire.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=spiderishere" class="blistSmall"><b>spiderishere</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">79</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112830768&next=61"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112830562" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/star.gif" border="0"> avatar simon --- pretty difficult. come play. now. <img src="http://images.neopets.com/neoboards/smilies/smiley.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=animehappybunnygrl57" class="blistSmall"><b>animehappybunnygrl57</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">191</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112830562&next=181"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831543" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/star.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/mistletoe.gif" border="0">||Rating Fonts || on FF ||</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=ahmuse" class="blistSmall"><b>ahmuse</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">49</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112831543&next=41"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112830760" class="blistTopic">Looking to be lent FQD...Collat</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=zmaster90333" class="blistSmall"><b>zmaster90333</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">124</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112830760&next=121"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112830652" class="blistTopic">Who killed the avatar? #7</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=noname123456noname12" class="blistSmall"><b>noname123456noname12</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">88</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112830652&next=81"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112826225" class="blistTopic">Act Like Your Avatar! Atrociously Awsome.</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=mimichi103340" class="blistSmall"><b>mimichi103340</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">314</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112826225&next=301"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831646" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/rednose.gif" border="0">Scammer Alert<img src="http://images.neopets.com/neoboards/smilies/rednose.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=vanitysprite08" class="blistSmall"><b>vanitysprite08</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">30</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112831646&next=21"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112822386" class="blistTopic">█ █¦▌<img src="http://images.neopets.com/neoboards/smilies/bauble.gif" border="0"> |¦;I have [Rεpuℓsion] for Avatars, do you?;---[Block Guild] <img src="http://images.neopets.com/neoboards/smilies/star.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=xxxlisssaxxx" class="blistSmall"><b>xxxlisssaxxx</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">161</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112822386&next=161"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831930" class="blistTopic">Font rating!</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=picture2" class="blistSmall"><b>picture2</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">15</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:49pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831865" class="blistTopic">loser loser loser loser loser loser loser loser loser loser loser loser loser</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=cute_babe58" class="blistSmall"><b>cute_babe58</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">18</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:49pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112830009" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/usul.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/pumpkin.gif" border="0"> Lend me BGC for partial collat? [also lending ITTPD] <img src="http://images.neopets.com/neoboards/smilies/zafara.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=homorphus" class="blistSmall"><b>homorphus</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">144</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112830009&next=141"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831603" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/mistletoe.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/ghost.gif" border="0"> do you have 240+ avatars?</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=lastphenomenon" class="blistSmall"><b>lastphenomenon</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">25</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112831603&next=21"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112828029" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/violin.gif" border="0"> T-t-t-turmy Time! <img src="http://images.neopets.com/neoboards/smilies/clap.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=cholate2soul" class="blistSmall"><b>cholate2soul</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">24</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112828029&next=21"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831098" class="blistTopic">Hi r8 my font please it is cool</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=sox411" class="blistSmall"><b>sox411</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">85</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112831098&next=81"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831927" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/aisha.gif" border="0">Simon Says!!!! med/hard<img src="http://images.neopets.com/neoboards/smilies/aisha.gif" border="0">(ignore # of posts)</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=electra389" class="blistSmall"><b>electra389</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">8</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:49pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831730" class="blistTopic">Տk℮tch_ Rating and maybe Recruting</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=sweetpeabucky" class="blistSmall"><b>sweetpeabucky</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">30</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112831730&next=21"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831973" class="blistTopic">tst bored only</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=omgitsmiley" class="blistSmall"><b>omgitsmiley</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">5</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:49pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831319" class="blistTopic">test</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=onceuponastarr" class="blistSmall"><b>onceuponastarr</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">23</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112831319&next=21"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831719" class="blistTopic">Rate my lookup?</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=shaddows_shawn" class="blistSmall"><b>shaddows_shawn</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">4</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:49pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831868" class="blistTopic">*kik*<img src="http://images.neopets.com/neoboards/smilies/aisha.gif" border="0">Looking to borrow little avatar items<img src="http://images.neopets.com/neoboards/smilies/rednose.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=missaroo" class="blistSmall"><b>missaroo</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">15</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:49pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831711" class="blistTopic">[[<img src="http://images.neopets.com/neoboards/smilies/ruki.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/grundo.gif" border="0">]]Lend Me FQD for WAY MORE than full collat?[[<img src="http://images.neopets.com/neoboards/smilies/meerca.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/poogle.gif" border="0">]]</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=fallentheopendoor" class="blistSmall"><b>fallentheopendoor</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">18</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:49pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112830169" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/rednose.gif" border="0"> SCAMMER ALERT <img src="http://images.neopets.com/neoboards/smilies/rednose.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=xxrosexx123" class="blistSmall"><b>xxrosexx123</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">138</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112830169&next=121"><span class="blistSmall">14.08 2:49pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112832034" class="blistTopic">OK, can someone make a list of all these abbreviations?</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=huthuthut5" class="blistSmall"><b>huthuthut5</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">6</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:48pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831742" class="blistTopic">lend me</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=wiggawiggawack101" class="blistSmall"><b>wiggawiggawack101</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">16</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:48pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831957" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/violin.gif" border="0"> Rs and Chat with Kitty Kat.</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=c1tyk4t" class="blistSmall"><b>c1tyk4t</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">4</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:48pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112827358" class="blistTopic">rating and screening fonts</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=rawrsauce01" class="blistSmall"><b>rawrsauce01</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">157</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112827358&next=141"><span class="blistSmall">14.08 2:48pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112832055" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/smiley.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/angry.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/sad.gif" border="0"> avatar</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=swimmer_girl_97" class="blistSmall"><b>swimmer_girl_97</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">3</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:48pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112829459" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/star.gif" border="0"> <img src="http://images.neopets.com/neoboards/smilies/jubjub.gif" border="0"> Items: 830 | Qty: 835; Buying For The Packrat Avatar! <img src="http://images.neopets.com/neoboards/smilies/bauble.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=flikie" class="blistSmall"><b>flikie</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">115</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112829459&next=101"><span class="blistSmall">14.08 2:48pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112830307" class="blistTopic">testing</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=arsenal_gunner_11" class="blistSmall"><b>arsenal_gunner_11</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">27</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112830307&next=21"><span class="blistSmall">14.08 2:48pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831373" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/oh.gif" border="0"> any avvie lenders out there? o</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=fruitxxpassionxxo3" class="blistSmall"><b>fruitxxpassionxxo3</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">18</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:48pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831387" class="blistTopic">Kayla//: *redbutton* Lending Drak Nova <img src="http://images.neopets.com/neoboards/smilies/kisskiss.gif" border="0"></a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=kaylamint2" class="blistSmall"><b>kaylamint2</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">13</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:48pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112831999" class="blistTopic">Is anyone making fonts?</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=hersheybar7900" class="blistSmall"><b>hersheybar7900</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">5</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:48pm</span> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112829968" class="blistTopic"><img src="http://images.neopets.com/neoboards/smilies/chia.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/lupe.gif" border="0"><img src="http://images.neopets.com/neoboards/smilies/usul.gif" border="0"> Skull needs 252 more items for Packrat!</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=skullosaur" class="blistSmall"><b>skullosaur</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">87</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <a href="topic.phtml?topic=112829968&next=81"><span class="blistSmall">14.08 2:48pm</span><span class="pointer">»</span></a> </td> </tr> <tr> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><a href="topic.phtml?topic=112832054" class="blistTopic">Testing Font</a><br><div style="padding: 3px; text-align: right; background-color: rgb(239, 239, 239); margin-left: -2px; margin-right: -2px; margin-bottom: -2px;"> <a href="/randomfriend.phtml?user=shanegalliano" class="blistSmall"><b>shanegalliano</b></a></div> </td> <td class="blistSmall" style="border-top: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center">2</td> <td style="border-top: 1px solid rgb(0, 0, 0); background-color: rgb(255, 255, 255);" align="center"> <span class="blistSmall">14.08 2:48pm</span> </td> </tr> <tr> <td colspan="4" class="contentModuleHeaderAlt" style="border-top: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0); font-size: 10px;"><img src="http://images.neopets.com/neoboards/spacer.gif" alt="" border="0" height="5" width="1"></td> </tr> </tbody></table> <div align="right"> <table border="0" cellpadding="2" cellspacing="0" width="560"><tbody><tr><td style="font-size: 11px;" align="right">Pages: <span style="font-size: 11px; font-weight: bold;">1</span> <a href="boardlist.phtml?board=21&next=41" style="font-size: 11px; font-weight: bold;">2</a> <a href="boardlist.phtml?board=21&next=81" style="font-size: 11px; font-weight: bold;">3</a> <a href="boardlist.phtml?board=21&next=121" style="font-size: 11px; font-weight: bold;">4</a> <a href="boardlist.phtml?board=21&next=161" style="font-size: 11px; font-weight: bold;">5</a> <a href="boardlist.phtml?board=21&next=201" style="font-size: 11px; font-weight: bold;">6</a> <a href="boardlist.phtml?board=21&next=241" style="font-size: 11px; font-weight: bold;">7</a> | <a href="boardlist.phtml?board=21&next=41" style="font-size: 11px; font-weight: bold;">Next »</a></td></tr></tbody></table></div> </div> Edited August 14, 2007 by SteveO Link to comment Share on other sites More sharing options...
SimJ Posted August 14, 2007 Share Posted August 14, 2007 I have an answer for you. I just wrote code for the exact same thing... I'll paste it when i get home, I'm at work right now. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 14, 2007 Moderators Share Posted August 14, 2007 #include <Array.au3> $sURL = "http://SomeURL.com" $sSource = _INetGetSource($sURL) If $sSource Then $aTopicNums = StringRegExp($sSource, '(?s)(?i)"topic\.phtml\?topic=(\d+)"', 3) _ArrayDisplay($aTopicNums, 'All Topics Found') EndIf Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
SteveO Posted August 15, 2007 Author Share Posted August 15, 2007 #include <Array.au3> $sURL = "http://SomeURL.com" $sSource = _INetGetSource($sURL) If $sSource Then $aTopicNums = StringRegExp($sSource, '(?s)(?i)"topic\.phtml\?topic=(\d+)"', 3) _ArrayDisplay($aTopicNums, 'All Topics Found') EndIf THANKS SMOKE! Really appreciate it! That's twice today. =) Link to comment Share on other sites More sharing options...
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