Skip to content
Permalink
Browse files

Debugging

  • Loading branch information
martinszy committed Jul 5, 2014
1 parent 3e8121f commit 849a18cf7eab5895f1dd0d104dded24662a743be
Showing with 5 additions and 1 deletion.
  1. +5 −1 scraper.rb
@@ -87,7 +87,11 @@ def get_info congressman
'profile_image' => '',
'date_scraped' => Date.today.to_s
}
if !congressman['images'].nil? then record['profile_image'] = congressman['images'].first['url'] end
if !congressman['images'].nil? then
firstimage = congressman['images'].first;
firsturl = firstimage['url'];
record['profile_image'] = firsturl;
end
if !organizations.empty? then record['organization_id'] = congressman_organization_id end
return record
end

0 comments on commit 849a18c

Please sign in to comment.
You can’t perform that action at this time.