pyastroapi.extras.urls

Module Contents

Functions

parse_url(→ Dict[str, str])

Attempt to determine what article is referenced by url

pyastroapi.extras.urls.parse_url(url: str) Dict[str, str]

Attempt to determine what article is referenced by url

Currently handles:

ADS, Arxiv, IOP journals

Parameters:

url (_type_) – URL to article

Raises:

ValueError – Raised if URL can’t be matched

Returns:

Dict containing either and identifier or other identifying information

that can be feed into a search() query

Return type:

t.Dict[str,str]