Skip to content

Commit a2ca3e9

Browse files
committed
Fix crawl group a bit more, add readme
1 parent 52189d0 commit a2ca3e9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Scrapers:
4141

4242
- `-u, --update-app-store-details` Scrape app stores for app details (e.g., downloads, ratings). Requires existing store IDs.
4343

44+
- `--country-priority-group` Default is 1 for US. Other groups for crawling can be configured in db.
45+
4446
- `--workers` Number of workers to use for updating app store details. Default: `1`.
4547

4648
- `-n, --new-apps-check` This crawls app rank data and stores to S3. It is also the source of new apps. Crawl the iTunes and Play Store front pages to discover new apps. Checks top apps for each category and collection.

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ def setup_database_connection(self) -> None:
279279
def main(self) -> None:
280280
logger.info(f"Main starting with args: {self.args}")
281281
platform: str = self.args.platform or None
282+
country_priority_group: int = self.args.country_priority_group or None
282283

283284
store = STORES_MAP.get(platform) if platform else None
284285

@@ -292,7 +293,7 @@ def main(self) -> None:
292293
self.scrape_new_apps_devs(store)
293294

294295
if self.args.update_app_store_details:
295-
self.update_app_details(store, self.args.country_priority_group)
296+
self.update_app_details(store, country_priority_group)
296297

297298
if self.args.app_ads_txt_scrape:
298299
self.crawl_app_ads()
@@ -366,7 +367,7 @@ def scrape_new_apps_devs(self, store: int) -> None:
366367
def update_app_details(self, store: int, country_priority_group: int) -> None:
367368
if not country_priority_group:
368369
logger.error(
369-
"No country priority group provided, ie country-priority-group=1"
370+
"No country priority group provided, ie --country-priority-group=1"
370371
)
371372
return
372373
update_app_details(

0 commit comments

Comments
 (0)