raulr / google-play-scraper

A PHP scraper to get app data from Google Play
MIT License
125 stars 65 forks source link

getSearch() not working any more. #23

Open jokajoka4 opened 4 years ago

jokajoka4 commented 4 years ago

The getSearch() is not finding any results. Maybe it is because Google has changed the .classes which the scraper is using to filter content.

Can you check if this is the case?

ketty22 commented 4 years ago

In parseAppList function try class name with card, if its not working then put class name "Vpfmgd". and try this code $app['title'] = $node->filter('.WsMG1c')->attr('title'); $app['image'] = $node->filter('span.kJ9uy > span > img.T75of')->attr('data-src'); $app['author'] = $node->filter('a.mnKHRc div.KoLSrc')->text(); If this will not work then for class "card",,,, put following code inside $app['title'] = $node->filter('a.title')->attr('title'); $app['image'] = $this->getAbsoluteUrl($node->filter('img.cover-image')->attr('data-cover-large')); $app['author'] = $node->filter('a.subtitle')->attr('title');

jokajoka4 commented 4 years ago

I'm not sure how to use the class name with card. But I changed the first class to ".Vpfmgd". That made it work. Also I used the ".WsMG1c" for fetching the title. Image and author were still working fine.

Thank you very much!

ketty22 commented 4 years ago

Oh I am so glad if you are happy...but I have also issues...could u guide me if u can. this code was working fine for getting app list. but now its showing only 50 apps...could u check your code for getting list page.what are results there

ketty22 commented 4 years ago

we are working on same project I think...it may be helpful for both of us. If u have another queries do let me know.

ketty22 commented 4 years ago

could you guide me....this code was working fine for getting app list. but now its showing only 50 apps...could u check your code for getting list page.what are results there

jokajoka4 commented 4 years ago

I think it is because. https://play.google.com/store/ by default is showing 50 apps pr. page.

ketty22 commented 4 years ago

so what if we want pagination and further apps also

On Mon, Oct 7, 2019 at 2:16 PM jokajoka4 notifications@github.com wrote:

I think it is because. https://play.google.com/store/ by default is showing 50 apps pr. page.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/raulr/google-play-scraper/issues/23?email_source=notifications&email_token=ANFNXEUIOLNXAUAJEDUSL3TQNL5ARA5CNFSM4I5BB5F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAPSIBY#issuecomment-538911751, or mute the thread https://github.com/notifications/unsubscribe-auth/ANFNXESSM6MMK7TJTRFADNDQNL5ARANCNFSM4I5BB5FQ .