crazycrash Posted February 19, 2009 Share Posted February 19, 2009 (edited) Hey guys, I have been trying to figure out how to get links with a certain attribute into an array.Heres the link to the site I am trying to do this for:http://www.instructables.com/tag/type:id/When looking at the sourcefile, the part I need evaluated is a table:CODE<div><div id="hugeThumbs"><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Build_A_Plasma_Speaker/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/files/deriv/F4Z/1L83/FMMCVKR2/F4Z1L83FMMCVKR2.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Build_A_Plasma_Speaker/">The Plasma Speaker</a> by <a rel="nofollow" href="/member/Plasmana/" style="margin-bottom:2px;">Plasmana</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.7.gif" />653 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Make_your_own_Instructables_Robot_Plushie/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/F81/YL8E/FJD369X8/F81YL8EFJD369X8.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Make_your_own_Instructables_Robot_Plushie/">Sew your own Instructables Robot Plushie!</a> by <a rel="nofollow" href="/member/jessyratfink/" style="margin-bottom:2px;">jessyratfink</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.6.gif" />147 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Wall-E-Robot/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/F76/GVX7/FH4JTDH2/F76GVX7FH4JTDH2.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Wall-E-Robot/">Wall-E Robot</a> by <a rel="nofollow" href="/member/4mem8/" style="margin-bottom:2px;">4mem8</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.6.gif" />364 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/How_to_Make_a_Portable_Game_System/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FKS/0S4O/FLJUFKKB/FKS0S4OFLJUFKKB.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/How_to_Make_a_Portable_Game_System/">How to Make a Portable Game System</a> by <a rel="nofollow" href="/member/1up/" style="margin-bottom:2px;">1up</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.6.gif" />252 comments </span></p></div><br class="clear" /><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Build_A_Mobile_Bar_BaR2D2/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FJL/ZV38/FOVWLXZM/FJLZV38FOVWLXZM.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Build_A_Mobile_Bar_BaR2D2/">Build A Mobile Bar - BaR2D2</a> by <a rel="nofollow" href="/member/jamiep/" style="margin-bottom:2px;">jamiep</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.6.gif" />71 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Build-Your-Own-Butler-Robot/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FJA/NK0C/FI42NF2B/FJANK0CFI42NF2B.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Build-Your-Own-Butler-Robot/">Build Your Own Butler Robot!!! - Tutorial,Photos, and Video</a> by <a rel="nofollow" href="/member/Erobots/" style="margin-bottom:2px;">Erobots</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.6.gif" />149 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/LeGummies_brick_shaped_gummy_candies/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FXI/NSU9/FN82TMFF/FXINSU9FN82TMFF.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/LeGummies_brick_shaped_gummy_candies/">LeGummies brick shaped gummy candies</a> by <a rel="nofollow" href="/member/SFHandyman/" style="margin-bottom:2px;">SFHandyman</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.6.gif" />294 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Build_A_Net_Gun/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FB9/OQ5H/FP8NLCNV/FB9OQ5HFP8NLCNV.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Build_A_Net_Gun/">Build A Net Gun</a> by <a rel="nofollow" href="/member/crispyjones/" style="margin-bottom:2px;">crispyjones</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.6.gif" />204 comments </span></p></div><br class="clear" /><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Electromagnetic-Floater/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/F5M/MGN5/F2FRVEF6/F5MMGN5F2FRVEF6.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Electromagnetic-Floater/">Electromagnetic Floater</a> by <a rel="nofollow" href="/member/J_Hodgie/" style="margin-bottom:2px;">J_Hodgie</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.6.gif" />316 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Snail_Art_Car_The_Golden_Mean/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FGI/2F9B/FOWZPJDE/FGI2F9BFOWZPJDE.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Snail_Art_Car_The_Golden_Mean/">Snail Art Car The Golden Mean</a> by <a rel="nofollow" href="/member/jonsarriugarte/" style="margin-bottom:2px;">jonsarriugarte</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />74 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/DIY-Vinyl-Wall-Art/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FSJ/6ZB5/FHEZCA9R/FSJ6ZB5FHEZCA9R.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/DIY-Vinyl-Wall-Art/">DIY Vinyl Wall Art</a> by <a rel="nofollow" href="/member/britsteiner/" style="margin-bottom:2px;">britsteiner</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />182 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/LED-Cube-4x4x4/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/files/deriv/FJN/F0KM/FE7ITU05/FJNF0KMFE7ITU05.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/LED-Cube-4x4x4/">LED Cube 4x4x4</a> by <a rel="nofollow" href="/member/chr/" style="margin-bottom:2px;">chr</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />224 comments </span></p></div><br class="clear" /><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/5_minute_Chocolate_Cake/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/files/deriv/FB7/BPQJ/FMEGAB7Q/FB7BPQJFMEGAB7Q.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/5_minute_Chocolate_Cake/">5-minute Chocolate Cake</a> by <a rel="nofollow" href="/member/scoochmaroo/" style="margin-bottom:2px;">scoochmaroo</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />204 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Convert_your_Honda_Accord_to_run_on_trash/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/F70/1E2F/FPBKZCVP/F701E2FFPBKZCVP.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Convert_your_Honda_Accord_to_run_on_trash/">Convert your Honda Accord to run on trash</a> by <a rel="nofollow" href="/member/jimmason/" style="margin-bottom:2px;">jimmason</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />102 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/When_a_Phillips_is_not_a_Phillips/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/files/deriv/FGB/MDOT/FOWZORNN/FGBMDOTFOWZORNN.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/When_a_Phillips_is_not_a_Phillips/">When a Phillips is not a Phillips!</a> by <a rel="nofollow" href="/member/arcticpenguin/" style="margin-bottom:2px;">arcticpenguin</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />160 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/How_to_Start_a_Business_1/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/files/deriv/FWW/HVR7/FIZVX2DA/FWWHVR7FIZVX2DA.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/How_to_Start_a_Business_1/">How to Start a Business</a> by <a rel="nofollow" href="/member/ewilhelm/" style="margin-bottom:2px;">ewilhelm</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />47 comments </span></p></div><br class="clear" /><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/turn-signal-biking-jacket/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FRC/II3V/FHY0I8RW/FRCII3VFHY0I8RW.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/turn-signal-biking-jacket/">turn signal biking jacket</a> by <a rel="nofollow" href="/member/leahbuechley/" style="margin-bottom:2px;">leahbuechley</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />95 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/How-to-Build-a-Robot-The-BeetleBot-v2-Revisite/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/F0H/9MB8/FHY0HAKC/F0H9MB8FHY0HAKC.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/How-to-Build-a-Robot-The-BeetleBot-v2-Revisite/">How to Build a Robot - The BeetleBot v2 ( Revisited )</a> by <a rel="nofollow" href="/member/robomaniac/" style="margin-bottom:2px;">robomaniac</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />239 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Airgun-with-eXplosive-air-Release-Valve/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/F9R/0WLA/FGPXR9UI/F9R0WLAFGPXR9UI.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Airgun-with-eXplosive-air-Release-Valve/">Airgun with eXplosive air-Release Valve</a> by <a rel="nofollow" href="/member/chluaid/" style="margin-bottom:2px;">chluaid</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />168 comments </span></p></div><div class="image-display-wrapper"><p class="image-display" style="margin-left:10px;"><a href="/id/Steampunk-Futuresque-Sci-Fi-Hand-Gun/"><img src="/static/img/featured.gif" class="winner-banner" /><img src="/static/img/winner.gif" class="winner-banner" /><img src="/files/deriv/FZD/PD8L/FGQM1D7Y/FZDPD8LFGQM1D7Y.SQUARE2.jpg" alt="" /></a><a class="itemtitle" href="/id/Steampunk-Futuresque-Sci-Fi-Hand-Gun/">Cyber/Steampunk Futuresque Sci-Fi Hand Gun</a> by <a rel="nofollow" href="/member/gmjhowe/" style="margin-bottom:2px;">gmjhowe</a><br /><span style="color:#857561;margin-right:3px;font-size:10px;"><img style="margin-bottom:-1px; width:55px; height:11px;" src="/static/img/rating/4.5.gif" />283 comments </span></p></div><br class="clear" /></div><div class="pager"><div style="margin-top:10px;"><a onclick="return false;" class="button disabled">« prev</a><span class="current-page">1</span><a href="/tag/type:id/?sort=RATING&offset=20" class="page-button">2</a><a href="/tag/type:id/?sort=RATING&offset=40" class="page-button">3</a><a href="/tag/type:id/?sort=RATING&offset=60" class="page-button">4</a> … <a href="/tag/type:id/?sort=RATING&offset=21640" class="page-button">1083</a><a href="/tag/type:id/?sort=RATING&offset=21660" class="page-button">1084</a><a href="/tag/type:id/?sort=RATING&offset=20" class="button">next »</a></div><div style="float:right; display:none"><span style="margin-right:5px;">0-20 of 21673</span> <a href="/tag/type:id/?sort=RATING&offset=20" class="button">next »</a></div></div></div>Now the idea is that the first value in the array is "/id/Build_A_Plasma_Speaker/", the second one "/id/Make_your_own_Instructables_Robot_Plushie/" and so on for all 20 of these links. The good thing is, all those links contain "/id/", however the bad thing is I just dont know how to get it done...ThanksAdi Edited February 19, 2009 by crazycrash Link to comment Share on other sites More sharing options...
bo8ster Posted February 19, 2009 Share Posted February 19, 2009 Have a good look at the _IE library in the help file esp _IELinkGetCollection. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
crazycrash Posted February 19, 2009 Author Share Posted February 19, 2009 Have a good look at the _IE library in the help file esp _IELinkGetCollection.Can't believe I missed it, lol, thanks! 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