jobparser 0.13.10 → 0.13.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jobparser/version.rb +1 -1
- data/lib/jobparser.rb +2 -1
- metadata +1 -1
data/lib/jobparser/version.rb
CHANGED
data/lib/jobparser.rb
CHANGED
@@ -19,6 +19,7 @@ require "jobparser/facets/deadline"
|
|
19
19
|
require "jobparser/facets/postcode"
|
20
20
|
require "jobparser/error"
|
21
21
|
|
22
|
+
require "uri"
|
22
23
|
require "open-uri"
|
23
24
|
|
24
25
|
module JobParser
|
@@ -33,7 +34,7 @@ module JobParser
|
|
33
34
|
res[:schema] ? ParseSchema.new(nil, url) : ParseHtml.new(nil, url)
|
34
35
|
else
|
35
36
|
begin
|
36
|
-
html = open(url, :allow_redirections => :safe).read
|
37
|
+
html = open((URI.encode(url), :allow_redirections => :safe).read
|
37
38
|
if html.include?("http://schema.org/JobPosting")
|
38
39
|
ParseSchema.new(html, url)
|
39
40
|
else
|