INNER CODE UNIT · Python

extract_app_name

pluwen/awesome-testflight-link · scripts/utils.py:67

def extract_app_name(html: str) -> str:
    app_name_search = APP_NAME_PATTERN.search(html)
    app_name_ch_search = APP_NAME_CH_PATTERN.search(html)
    if app_name_search:
        return app_name_search.group(1)
    if app_name_ch_search:
        return app_name_ch_search.group(1)
    return ""


def detect_testflight_status(html: str, fallback_status: str = 'N') -> str:
    if NO_PATTERN.search(html):
        return 'N'
    if FULL_PATTERN.search(html):
        return 'F'
    # A genuine beta page always carries the app-specific title; only then is it
    # truly accepting. The generic interstitial/help page Apple serves under
    # rate-limiting contains "TestFlight" but no app name — it must NOT be 'Y'.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…