diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-12-06 16:25:21 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-12-06 16:50:00 -0800 |
commit | f60d37fb2f9079e6707f9a253983b6ea07964e18 (patch) | |
tree | e36db11b2123a7a50d48dbf0f8449bcef9e13fcc /fatcat_scholar/sandcrawler.py | |
parent | c1af67fc72c671c4dc40536960ab47e78195c881 (diff) | |
download | fatcat-scholar-f60d37fb2f9079e6707f9a253983b6ea07964e18.tar.gz fatcat-scholar-f60d37fb2f9079e6707f9a253983b6ea07964e18.zip |
fetch GROBID-parsed refs along with crossref metadata
Diffstat (limited to 'fatcat_scholar/sandcrawler.py')
-rw-r--r-- | fatcat_scholar/sandcrawler.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fatcat_scholar/sandcrawler.py b/fatcat_scholar/sandcrawler.py index 087cdc6..5580841 100644 --- a/fatcat_scholar/sandcrawler.py +++ b/fatcat_scholar/sandcrawler.py @@ -39,8 +39,10 @@ class SandcrawlerPostgrestClient: else: return None - def get_crossref(self, doi: str) -> Optional[Dict[str, Any]]: - resp = requests.get(self.api_url + "/crossref", params=dict(doi="eq." + doi)) + def get_crossref_with_refs(self, doi: str) -> Optional[Dict[str, Any]]: + resp = requests.get( + self.api_url + "/crossref_with_refs", params=dict(doi="eq." + doi) + ) resp.raise_for_status() resp_json = resp.json() if resp_json: |