Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require './cl_gems_cookies'
- agent = Mechanize.new
- agent.cookie_jar.load(COOKIE_FILE)
- DB = Sequel.connect('sqlite://clublandlv.sqlite')
- songs_table = DB[:songs]
- song_id = DB[:songs].select_map(:song_id)
- index = song_id
- index.each do |thread_id|
- thread = agent.get("http://www.clublandlv.com/showthread.php?t=#{thread_id}")
- puts "#{thread.title}"
- zippy = agent.page.link_with(:text => 'download').href
- posted_on = agent.page.at(".date").text
- puts zippy
- puts posted_on
- puts
- end
Advertisement
Add Comment
Please, Sign In to add comment