serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
51 stars 4 forks source link

[Google Search API] Some `mobile` Searches Return an HTML File With Scrolling Disabled #1217

Closed schaferyan closed 9 months ago

schaferyan commented 10 months ago

A user reported they couldn't scroll in the HTML response for some of their searches.

When I retried the search in the Playground, it returned a normal response. I was able to open the raw_html_file and scroll to the bottom.

However, I opened the raw_html_file in their example and verified that scrolling seems to be disabled for some reason.

The JSON doesn't seem to be missing anything, and when zooming out, I was still able to see the whole page.

I'm not sure if it's related, but in the example where scrolling is disabled, the HTML includes a prompt from Google to rate the search at the bottom of the window.

Screenshot 2023-11-20 at 9 51 48 AM

Intercom | Playground | Search Inspector

zyc9012 commented 10 months ago

Somehow the <body> class was added TaoyYc which prevents scrolling.

image