INNER CODE UNIT · Python
extract_hub_info
DmitryRyumin/ICCV-2023-25-Papers · code/markdown_to_json_parser.py:303
def extract_hub_info(url):
if not url:
return None
try:
username, repo_name = urlparse(url).path.strip("/").split("/")[-2:]
return f"{username}/{repo_name}" if username and repo_name else None
except Exception:
return None
def parse_paper_links(html):
links = html.find_all("a")
final_link = None
ieee_id = None
arxiv_id = None
pdf_link = None