Skip to content

Instantly share code, notes, and snippets.

chris$ ruby elect_comm_donations_script.rb
I, [2011-04-18T00:28:20.092524 #39728] INFO -- : Net::HTTP::Get: /search/searchintro.aspx
D, [2011-04-18T00:28:20.092842 #39728] DEBUG -- : request-header: accept-language => en-us,en;q=0.5
D, [2011-04-18T00:28:20.092882 #39728] DEBUG -- : request-header: accept => */*
D, [2011-04-18T00:28:20.092918 #39728] DEBUG -- : request-header: user-agent => Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.1) Gecko/20100122 firefox/3.6.1
D, [2011-04-18T00:28:20.092955 #39728] DEBUG -- : request-header: accept-encoding => gzip,deflate,identity
D, [2011-04-18T00:28:20.093071 #39728] DEBUG -- : request-header: host => pefonline.electoralcommission.org.uk
D, [2011-04-18T00:28:20.093111 #39728] DEBUG -- : request-header: accept-charset => ISO-8859-1,utf-8;q=0.7,*;q=0.7
I, [2011-04-18T00:28:20.387915 #39728] INFO -- : status: Net::HTTPOK 1.1 200 OK
D, [2011-04-18T00:28:20.388005 #39728] DEBUG -- : response-header: x-powered-by => ASP.NET
ctmbp:openc chrismtaggart$ curl -I http://scraperwiki.com/api/1.0/datastore/sqlite?format=csv&name=eu_lobbyists_register&query=select+*+from+swdata[1] 7908
[2] 7909
ctmbp:openc chrismtaggart$ HTTP/1.1 301 Moved Permanently
Server: nginx/0.7.65
Date: Sat, 10 Sep 2011 11:50:29 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: https://scraperwiki.com/api/1.0/datastore/sqlite?format=csv?format=csv
Strict-Transport-Security: max-age=15768000
<?xml version="1.0" encoding="utf-16"?>
<ArrayOfFullNotice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FullNotice>
<Id>bd65102e-ee39-45c1-a941-a30fd3c7709c</Id>
<Notice>
<Id>bd65102e-ee39-45c1-a941-a30fd3c7709c</Id>
<ConfidenceLevel>100</ConfidenceLevel>
<ContactDetails>
<Email>minorworkssouth@noms.gsi.gov.uk</Email>
<Address1>Phoenix House</Address1>