You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
If search contains special characters, it will be encoded twice: the first one due to the quote_plus library and the second one is done by Google's servers. It is easily solved by removing quote_plus from parameters. That is, having:
To Reproduce
The input will be the developer web of Instagram: https://help.instagram.com/
When running res = play_scraper.search("https://help.instagram.com/", detailed=True)
Play_scraper does the following query: /store/search?q=https%253A%252F%252Fhelp.instagram.com%252F&c=apps&gl=us&hl=en
Which is not right. If we look for that url in a browser, a query with encodings is written automatically in the searchbox:
Expected behavior
If we manually put https://help.instagram.com/ in the searchbox, the url will be: https://play.google.com/store/search?q=https%3A%2F%2Fhelp.instagram.com%2F&c=apps&hl=en&gl=us
If we use the piece of code without quote_plus, the url that is searched for is exactly the same as the desired one.
Desktop (please complete the following information):
play_scraper Version 0.6.0
The text was updated successfully, but these errors were encountered:
Thank you silsg, your suggestion is quite exact.
I was troubled by seem-to-be-randomly-returned-results when I searched with multi-byte query word.
I found your comment then I downloaded this library and patched line 230 in scraper.py as you said, the error has gone!
Description:
If search contains special characters, it will be encoded twice: the first one due to the quote_plus library and the second one is done by Google's servers. It is easily solved by removing quote_plus from parameters. That is, having:
instead of:
To Reproduce
The input will be the developer web of Instagram:
https://help.instagram.com/
When running
res = play_scraper.search("https://help.instagram.com/", detailed=True)
Play_scraper does the following query:
/store/search?q=https%253A%252F%252Fhelp.instagram.com%252F&c=apps&gl=us&hl=en
Which is not right. If we look for that url in a browser, a query with encodings is written automatically in the searchbox:
Expected behavior
If we manually put
https://help.instagram.com/
in the searchbox, the url will be:https://play.google.com/store/search?q=https%3A%2F%2Fhelp.instagram.com%2F&c=apps&hl=en&gl=us
If we use the piece of code without quote_plus, the url that is searched for is exactly the same as the desired one.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: