Skip to content

Commit

Permalink
Handle updated Rightmove page html
Browse files Browse the repository at this point in the history
  • Loading branch information
olliebennett committed Jun 18, 2024
1 parent a940354 commit 3711eba
Show file tree
Hide file tree
Showing 3 changed files with 2,965 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/rightmove_home_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def parse_extra_fields
def property_json
return @property_json if @property_json.present?

property_json_string = @page_html.match(%r{<script>\s*window\.PAGE_MODEL = (.*?)\s*</script>})
property_json_string = @page_html.match(%r{<script>\s*window\.PAGE_MODEL = (.*?)\s*(</script>|window\.adInfo)})

return if property_json_string.nil?

Expand Down
Loading

0 comments on commit 3711eba

Please sign in to comment.