Skip to content

Instantly share code, notes, and snippets.

@venj
Last active August 29, 2015 14:11
Show Gist options
  • Save venj/bb3b5434e1d90e8c7ee8 to your computer and use it in GitHub Desktop.
Save venj/bb3b5434e1d90e8c7ee8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "open-uri"
ARGV[0].to_i.times {|i| open "http://www.sh-anfang.org/expert/expert.asp?tp=5&id=5"; puts "已刷#{i + 1}票。" }
puts "完成"
# One-liner:
# ruby -ropen-uri -e "2.times {|i| open 'http://www.sh-anfang.org/expert/expert.asp?tp=5&id=5'; puts \"已刷#{i + 1}票。\" };puts '完成' "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment