Add developer email and website fields to CSV output

- Updated CSV_FIELDS to include "developer_email" and "developer_website".
- Modified play_row function to extract developer email and website from the response.
- Updated appstore_row function to include developer website, with a note that developer email is not available from Apple's API.
This commit is contained in:
2026-06-18 12:36:17 +05:30
parent 159c00762d
commit 22582bdcd7
3 changed files with 128 additions and 586131 deletions
+6 -1
View File
@@ -62,7 +62,8 @@ MAX_RATE_LIMIT_WAITS = 12
MAX_TRANSIENT_RETRIES = 4
CSV_FIELDS = [
"store", "country", "app_id", "title", "developer", "category",
"store", "country", "app_id", "title", "developer",
"developer_email", "developer_website", "category",
"price", "currency", "free",
"avg_rating", "total_ratings", "text_review_count",
"last_updated", "version", "url",
@@ -112,6 +113,8 @@ def play_row(app_id: str, lang: str, country: str) -> dict:
"app_id": app_id,
"title": d.get("title"),
"developer": d.get("developer"),
"developer_email": d.get("developerEmail"),
"developer_website": d.get("developerWebsite"),
"category": d.get("genre"),
"price": d.get("price"),
"currency": d.get("currency"),
@@ -146,6 +149,8 @@ def appstore_row(app_id: int, country: str) -> dict | None:
"app_id": meta.get("trackId"),
"title": meta.get("trackName"),
"developer": meta.get("sellerName"),
"developer_email": None, # Apple's lookup API does not expose a dev email
"developer_website": meta.get("sellerUrl"),
"category": meta.get("primaryGenreName"),
"price": price,
"currency": meta.get("currency"),