Skip to content

Instantly share code, notes, and snippets.

View kevinjonesevans-zz's full-sized avatar

Kevin Jones-Evans kevinjonesevans-zz

View GitHub Profile
# 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|