Skip to content

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
boundedrational committed Mar 8, 2014
1 parent c46e066 commit e38084f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
begin
puts"?!?!"
db = SQLite3::Database.open "data.db"
db.prepare("INSERT INTO data( jobtitle, employer, location, description, salary, state, date, current_time, long_description, long_timing, id , zip ,srcid, efccid, cmpid, geo" ) VALUES( ?, ?, ?,?, ?, ?, ?,?,?,?,?,?,?,?,?,?,? )") do |stmt|
db.prepare("INSERT INTO data( jobtitle, employer, location, description, salary, state, date, current_time, long_description, long_timing, id , zip ,srcid, efccid, cmpid, geo) VALUES( ?, ?,?,?, ?, ?, ?,?,?,?,?,?,?,?,?,?,? )") do |stmt|
stmt.execute( data['jobtitle'], data['employer'], data['location'],data['description'], data['salary'], data['state'], data['date'], data['current_time'], data['long_description'], data['long_timing'], data['id'], data['zip'], data['srcid'], data['efccid'], data['cmpid'], data['geo'] )
rescue SQLite3::Exception => e

Expand All @@ -238,7 +238,7 @@
end
begin
db = SQLite3::Database.open "data.db"
db.prepare("INSERT INTO data( jobtitle, employer, location, description, salary, state, date, current_time, long_description, long_timing, id , zip ,srcid, efccid, cmpid, geo" ) VALUES( ?, ?, ?,?, ?, ?, ?,?,?,?,?,?,?,?,?,?,? )") do |stmt|
db.prepare("INSERT INTO data( jobtitle, employer, location, description, salary, state, date, current_time, long_description, long_timing, id , zip ,srcid, efccid, cmpid, geo) VALUES( ?, ?,?,?, ?, ?, ?,?,?,?,?,?,?,?,?,?,? )") do |stmt|
stmt.execute( data['jobtitle'], data['employer'], data['location'],data['description'], data['salary'], data['state'], data['date'], data['current_time'], data['long_description'], data['long_timing'], data['id'], data['zip'], data['srcid'], data['efccid'], data['cmpid'], data['geo'] )
rescue SQLite3::Exception => e

Expand Down

0 comments on commit e38084f

Please sign in to comment.