(useragent: Optional[str])
| 66 | |
| 67 | |
| 68 | def pick_user_agent(useragent: Optional[str]) -> str: |
| 69 | if useragent and useragent.strip().lower() != "random": |
| 70 | return useragent.strip() |
| 71 | return random.choice(USER_AGENTS) |
| 72 | |
| 73 | |
| 74 | def _www_fallback_domain(domain: str) -> Optional[str]: |
no outgoing calls
no test coverage detected