(site)
| 18323 | results = [] |
| 18324 | |
| 18325 | def worker(site): |
| 18326 | r = self._wmn_perform_request(site, account) |
| 18327 | if self._wmn_match_result(r, site) is not True: |
| 18328 | return None |
| 18329 | pretty = self._wmn_pretty_url(site, account) |
| 18330 | src = site.get("uri_pretty") or site.get("uri_check") |
| 18331 | icon = self._wmn_favicon_from_url(src) or wmn_fallback |
| 18332 | name = site.get("name") or "Unknown" |
| 18333 | return { |
| 18334 | "username": account, |
| 18335 | "type": name, |
| 18336 | "info": { |
| 18337 | "Status": " Profilo trovato (WhatsMyName)", |
| 18338 | "Fonte": "WhatsMyName social", |
| 18339 | "HTTP": str(r.status_code) if r else "", |
| 18340 | }, |
| 18341 | "main_img": icon, |
| 18342 | "status_code": 200, |
| 18343 | "url": pretty, |
| 18344 | } |
| 18345 | |
| 18346 | max_workers = min(32, max(4, len(sites) // 4 or 4)) |
| 18347 | with ThreadPoolExecutor(max_workers=max_workers) as ex: |
nothing calls this directly
no test coverage detected