Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
flip coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukaza Perdana committed Oct 16, 2019
1 parent f13afd8 commit d554182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -18,7 +18,7 @@
data = {
'href' => hotel_name_link[:href].strip.gsub(/\?.+/, ''),
'name' => hotel_name_link.at_css('.sr-hotel__name').text.strip,
'coordinates' => item.at_css('.bui-link').attr('data-coords').strip,
'coordinates' => item.at_css('.bui-link').attr('data-coords').strip.split(',').reverse.join(','),
'address' => item.at_css('.bui-link > text()').to_s.strip,
'review_score' => item['data-score']
}
Expand Down

0 comments on commit d554182

Please sign in to comment.