Permalink
Browse files

Fix poslanec selector

  • Loading branch information...
lkundrak committed Jul 12, 2014
1 parent 527b01c commit 0d8ca21018fa56c7f43324be129a1cad3db5b010
Showing with 1 addition and 1 deletion.
  1. +1 −1 scraper.rb
View
@@ -25,7 +25,7 @@ def excuse_url(m)
def mop_list
list = []
@agent.get(BASE_URL) do |page|
page.at('div#_sectionLayoutContainer__panelContent').search('select#_sectionLayoutContainer_ctl00_PoslanecMasterID option').each do |opt|
page.at('div#_sectionLayoutContainer__panelContent').search('select#_sectionLayoutContainer_ctl01_PoslanecMasterID option').each do |opt|
next if opt.attr('value') == '-1'
yield :id => opt.attr('value'), :name => opt.text
end

0 comments on commit 0d8ca21

Please sign in to comment.