n0madic / google-play-scraper

Golang scraper to get data from Google Play Store
GNU Lesser General Public License v3.0
78 stars 20 forks source link

Better Search Performance #17

Closed harshit54 closed 1 year ago

harshit54 commented 1 year ago

First of all, thanks for this amazing library.

Can you set the fpr header for searches to false by default?

I'm not exactly sure why it's used but adding params.Add("fpr", "false") to pkg/search/search.go gives better matches.

I believe it's used by Google for autocorrection (like "whatsa" to "whatsapp" or "yout" to "youtube"), and when you select the "No search for yout instead", it adds this header as &fpr=false.

I don't know why they use this though. The search results don't change much with or without it.