Method: Camdict::HTTP::Client.get_html
- Defined in:
- lib/camdict/http_client.rb
.get_html(url, agtstr = AGENT) ⇒ Object
Download a html page from a remote site, and return a Nokogiri::HTML url will be escaped by this method, and default agtstr is AGENT.
15 16 17 |
# File 'lib/camdict/http_client.rb', line 15 def self.get_html(url, agtstr = AGENT) new.get_html(url, agtstr) end |