Skip to content

Commit

Permalink
Fix poslanec selector
Browse files Browse the repository at this point in the history
  • Loading branch information
lkundrak committed Jul 12, 2014
1 parent 527b01c commit 0d8ca21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -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
Expand Down

0 comments on commit 0d8ca21

Please sign in to comment.