Created
September 12, 2013 20:38
.pryrc にこういうの書いておくと、たまに捗る。httpclientなりmechanizeなりで取得してきたレスポンスHTMLに .w3m ってつければレンダリングして内容を確かめられる。
This file contains hidden or 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
class String | |
def w3m | |
IO.popen("w3m -F -T text/html -dump", "w") do |w3m| | |
w3m.puts self | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment