Skip to content

Commit

Permalink
Less verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan OConnor authored and Brendan OConnor committed Nov 4, 2008
1 parent f94e702 commit 4561b71
Show file tree
Hide file tree
Showing 60 changed files with 60 additions and 7 deletions.
1 change: 1 addition & 0 deletions public/feeds/json/AK/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/AL/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/AR/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/AS/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/AZ/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/CA/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/CO/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/CT/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/DC/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/DE/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/FL/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/FM/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/GA/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/GU/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/HI/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/IA/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/ID/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/IL/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/IN/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/KS/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/KY/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/LA/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MA/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MD/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/ME/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MH/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MI/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MN/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MO/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MP/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MS/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/MT/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/NC/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/ND/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/NE/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/NH/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/NJ/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/NM/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/NV/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/NY/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/OH/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/OK/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/OR/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/PA/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/PR/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/PW/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/RI/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/SC/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/SD/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/TN/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/TX/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/UT/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/VA/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/VI/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/VT/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/WA/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/WI/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/WV/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
1 change: 1 addition & 0 deletions public/feeds/json/WY/1.json
@@ -0,0 +1 @@
500 Can't connect to localhost:3000 (connect: Connection refused)
8 changes: 1 addition & 7 deletions script/cachefiles
Expand Up @@ -8,14 +8,9 @@ my $ua = LWP::UserAgent->new;

my @abbr = ("AL","AK","AS","AZ","AR","CA","CO","CT","DE","DC","FM","FL","GA","GU","HI","ID","IL","IN","IA","KS","KY","LA","ME","MH","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","MP","OH","OK","OR","PW","PA","PR","RI","SC","SD","TN","TX","UT","VT","VI","VA","WA","WV","WI","WY");

for (my $i=0;$i<scalar @abbr;$i++)
{
print "$abbr[$i]\n";
}

while (1)
{
print "in loop\n";
print "Beginning fetching run.\n";
my $res = $ua->get("http://localhost:3000/reports.kml?live=1&count=4000");
my $content = $res->content;
open(KML, ">reports.kml");
Expand All @@ -26,7 +21,6 @@ while (1)

for (my $i=0;$i<scalar @abbr;$i++)
{
print "Fetching $abbr[$i]\n";
state($abbr[$i],$ua);
}
homepage($ua);
Expand Down

0 comments on commit 4561b71

Please sign in to comment.