Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>FoI Multi</title>
<style type="text/css" media="screen">
body {font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; color:#333;}
.alert { color: #c00;}
.success_message, label { font-weight: bold;}
.sub_message { background-color: yellow;}
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