a basic script to mechanize get a site
This commit is contained in:
parent
c23f5b6165
commit
a06e78c48b
1 changed files with 9 additions and 0 deletions
9
mechanize_get.rb
Executable file
9
mechanize_get.rb
Executable 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
|
Loading…
Add table
Reference in a new issue