Cкрипт для парсинга Google Play Store (PHP)
Нужен PHP скрипт получения ранка Google Play приложения по заданнму ключевому слову в заданном регионе.
На входе скрипта такие параметры:
1) package - название пакета проверяемого приложения
2) keyword - поисковый запрос по которому производится поиск в Google Play Store
3) country - регион магазина (us, ca, de, ru и т.п)
4) lang - язык поисковой выдачи (en-US, de-DE, ja-JP, ru-RU etc)
5) proxy - socks5 в формате ip:port или пустая строка. (без пароля)
На выходе:
rank - позиция приложения в поисковой выдаче, (1-250), 0 - если приложения не найдено, (-1) если была ошибка.
Поисковый запрос: https://play.google.com/store/search?q=minecraft&c=apps&gl=us&hl=en-US возвращает список приложений.
Выдача разбита на динамически подгружаемые страницы, первую страницу (50 штук) выдает сразу, дальше стоит динамический запрос с некими параметрами. Т.е. если приложения есть в топ-50, его сразу можно найти, если его нет, должен выполнятся повторный запрос с новыми параметрами и так пока приложение не будет найдено, или же не закончится выдача (максимум в выдаче 250 приложений, т.е. примерно 5 страниц, иногда размер страницы бывает менее 50, по опыту зависит от useragent)
Например, приложение с пакетом com.tellurionmobile.realmcraft находится на 12-м месте в поисковой выдаче по слову minecraft в US. ( см. скрин)
Скрипт будет стоять под apache на crone и выполняться в больших количествах, поэтому необходимо предусмотреть возможность использоваться SOCKS5 при вызове каждой копии скрипта (CURL через SOCKS5).
P.S При успешной реализации проекта возмодно долгострочное сотружничесвто с похожими задачами.
Applications 1
-
А чем вам данная реализация не подходит ?
-
Vladislav C. Keyapp.top
там последнйи коммит 3 года назад, она не рабочая, у меня была рабочая версия тоедж с токенами, но буквально н атой неделе Гугл поменял систему подставновки токенов для пагинации и теперь это не работает. То что вы по ссылке привели - не работает уже года 1.5 🙂
-
Vladislav C. Keyapp.top
я надеюсь что рабочий вариант есть вот тут,
https://github.com/facundoolano/google-play-scraper/blob/dev/lib/search.js
он на js и актуализируется часто, но возхможно тоже не рабочий, хотя на первый взгляд внутренние скрипты гугла тут теже самые и токены берутся оттуда же.
-
Current freelance projects in the category PHP
Execution of work after SEO audit
333 USD
An experienced OpenCart developer is needed to perform SEO and technical improvements for the online store. Main tasks: Correction of the internal linking structure and menu. Adding links to the footer. Implementation of breadcrumbs with Schema.org microdata. Fixing the… PHP, Website Maintenance ∙ 4 hours 59 minutes back ∙ 41 proposals |
Fix issues with Facebook API in the OpenCart moduleIn OpenCart, there is a module for integrating Facebook and Instagram via API, OAuth, and Webhook. After opening the module page in the browser, the number of API requests to Facebook starts to increase, and the number of errors gr:get:InvalidID also rises. It is necessary to… PHP, Web Programming ∙ 6 hours 13 minutes back ∙ 28 proposals |
Create a WordPress plugin for a survey (quiz)
222 USD
A WordPress plugin needs to be developed that will be able to - store a bank of questions, all in the same format - a question and 4 answers, 1 correct - display 12 questions in random order, track the timing - collect user data - show the final result with the option to share… PHP, Web Programming ∙ 13 hours 42 minutes back ∙ 79 proposals |
Integration needed: KeyCRM → Cash Register KashalotIt is necessary to set up integration between KeyCRM and the Cash Register Kahalot. When placing an order in KeyCRM, the data must be automatically transmitted to Kahalot: • order information • products, nomenclature • prices • quantity More details in private. Content Management Systems, PHP ∙ 3 days 1 hour back ∙ 28 proposals |
A WordPress site using the Kadence theme and Kadence Blocks.
222 USD
We need to create a website on WordPress using the Kadence theme and Kadence Blocks. There will be no online store (although it may be added in the future). We need a homepage and several internal pages. The graphics are already prepared, the layout structure is mostly defined,… Content Management Systems, PHP ∙ 4 days 11 hours back ∙ 38 proposals |