Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Script pulls many of these links using CSS selector.
- <h2 class="forumtitle"><a href="forumdisplay.php?f=168&s=c6ae82e8033ae13b431683394cd73fd0">Discographies</a></h2>
- #Cycles through the array
- genreslink.each do |g_link|
- #Targets just the href. Result = forumdisplay.php?f=168&s=c6ae82e8033ae13b431683394cd73fd0
- link_id = g_link.children.first["href"]
- #Parses just the f= part of href. Result = 168
- link_cut = CGI.parse(URI.parse(link_id).query)['f']
- #Now trying to add all of these output values to an array
Advertisement
Add Comment
Please, Sign In to add comment