a basic script to mechanize get a site

This commit is contained in:
Brendan McDevitt 2020-08-04 23:27:07 -05:00
parent c23f5b6165
commit a06e78c48b

9
mechanize_get.rb Executable file
View file

@ -0,0 +1,9 @@
require 'mechanize'
require 'pry'
site = ARGV[0]
agent = Mechanize.new
page = agent.get(site)
pp page # pp = pretty print (formatted Ruby output)
binding.pry