Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Jones-Evans kevinjonesevans-zz

View GitHub Profile
View download_rubytapas.rb
# username = "my_username"
# pwd = "my_password"
target_path = Dir.pwd
# saving auth cookie
system %Q{wget --save-cookies /tmp/cookie.txt --keep-session-cookies --post-data "username=#{username}&password=#{pwd}" -O - \
https://rubytapas.dpdcart.com/subscriber/login?__dpd_cart=d08391e6-5fe2-4400-8b27-2dc17b413027}
(25..600).each do |i|