lib/maxwell/converter.rb in maxwell-0.1.0 vs lib/maxwell/converter.rb in maxwell-0.2.0
- old
+ new
@@ -2,10 +2,14 @@
require 'httpclient'
class Maxwell
module Converter
def self.execute(url)
- client = HTTPClient.new(default_header: {"User-Agent" => "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"})
+ client = HTTPClient.new(
+ default_header: {
+ "User-Agent" => "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
+ }
+ )
html = begin
client.get_content(url)
rescue
""