Guest User

Untitled

a guest
Feb 12th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.54 KB | None | 0 0
  1. #Script pulls many of these links using CSS selector.
  2. <h2 class="forumtitle"><a href="forumdisplay.php?f=168&amp;s=c6ae82e8033ae13b431683394cd73fd0">Discographies</a></h2>
  3.  
  4. #Cycles through the array
  5. genreslink.each do |g_link|
  6. #Targets just the href. Result = forumdisplay.php?f=168&amp;s=c6ae82e8033ae13b431683394cd73fd0
  7.         link_id = g_link.children.first["href"]
  8.  
  9. #Parses just the f= part of href. Result = 168
  10.         link_cut = CGI.parse(URI.parse(link_id).query)['f']
  11.  
  12. #Now trying to add all of these output values to an array
Advertisement
Add Comment
Please, Sign In to add comment