(link)
| 258 | |
| 259 | |
| 260 | def extract_path_from_link(link): |
| 261 | from urllib.parse import urlparse, urlunparse |
| 262 | if isinstance(link, str): |
| 263 | parsed = urlparse(link) |
| 264 | return str( |
| 265 | urlunparse( |
| 266 | ("", "", parsed.path, "", "", "") |
| 267 | ) |
| 268 | ) |
| 269 | |
| 270 | |
| 271 | def extract_domain_from_link(link): |
no outgoing calls
no test coverage detected