Check if a URL is valid.
(url)
| 356 | |
| 357 | |
| 358 | def is_valid_url(url): |
| 359 | """Check if a URL is valid.""" |
| 360 | parsed = urlparse(url) |
| 361 | return bool(parsed.scheme and parsed.netloc) |
| 362 | |
| 363 | |
| 364 | def download_file(url, output_dir): |
no outgoing calls
no test coverage detected