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

Commit

Permalink
strip href
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukaza Perdana committed Oct 16, 2019
1 parent d554182 commit ff386a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -16,7 +16,7 @@
hotel_name_link = item.at_css('.hotel_name_link.url')

data = {
'href' => hotel_name_link[:href].strip.gsub(/\?.+/, ''),
'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.split(',').reverse.join(','),
'address' => item.at_css('.bui-link > text()').to_s.strip,
Expand Down

0 comments on commit ff386a8

Please sign in to comment.