Skip to content

Commit

Permalink
Merge pull request #1 from everypolitician-scrapers/explicitly-reques…
Browse files Browse the repository at this point in the history
…t-xml-content

Explicitly request XML from parldata API
  • Loading branch information
tmtmtmtm committed Feb 6, 2017
2 parents 39b6af5 + 42fd8af commit 6e8b461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -14,7 +14,7 @@
@API_URL = 'http://api.parldata.eu/kv/kuvendi/%s'

def noko_q(endpoint, h)
result = RestClient.get (@API_URL % endpoint), params: h
result = RestClient.get (@API_URL % endpoint), params: h, accept: :xml
warn result.request.url
doc = Nokogiri::XML(result)
doc.remove_namespaces!
Expand Down

0 comments on commit 6e8b461

Please sign in to comment.