Created
December 15, 2011 13:38
-
-
Save 2GMon/1481113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# instapaper経由でwebのtextのみを取得 | |
# ログインしてないとダメ?(未確認) | |
require 'net/http' | |
require 'uri' | |
require 'cgi' | |
uri = URI("http://www.instapaper.com/text?u=#{CGI.escape(ARGV[0])}") | |
http = Net::HTTP.new(uri.host, uri.port) | |
res = http.get(uri.request_uri) | |
puts res.body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment