Skip to content

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
mbb1982 committed Dec 11, 2014
1 parent 8243ed7 commit 9cf2b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -11,7 +11,7 @@ def demu
fields = []
demu_page.search('table tr').each{ |row|
if first_row
fields= row.search("td").map{|field| field.inner_text.sub(/Op'r/,"operator").sub(/Set No/,"Number").gsub(/\//," ").gsub!(/\t|\n|\./,"")}
fields= row.search("td").map{|field| field.inner_text.sub(/Op'r/,"operator").sub(/Set No/,"Number").gsub(/\/|" "/,"_").gsub!(/\t|\n|\./,"")}
first_row = false
else
values = row.search("td").map{|field| field.inner_text.gsub!(/\t|\n|\./,"")}
Expand Down

0 comments on commit 9cf2b29

Please sign in to comment.