Spaces:
Build error
Build error
Update NER/html/extractHTML.py
Browse files- NER/html/extractHTML.py +1 -1
NER/html/extractHTML.py
CHANGED
|
@@ -198,7 +198,7 @@ class HTML():
|
|
| 198 |
#if scienceDirect is not None or len(json) == 0:
|
| 199 |
if is_sciencedirect_source and (scienceDirect is not None or len(json) == 0):
|
| 200 |
print("async fetching ScienceDirect metadata...")
|
| 201 |
-
api_key = "
|
| 202 |
doi = self.htmlLink.split("https://doi.org/")[-1]
|
| 203 |
base_url = f"https://api.elsevier.com/content/article/doi/{doi}"
|
| 204 |
headers = {"Accept": "application/json", "X-ELS-APIKey": api_key}
|
|
|
|
| 198 |
#if scienceDirect is not None or len(json) == 0:
|
| 199 |
if is_sciencedirect_source and (scienceDirect is not None or len(json) == 0):
|
| 200 |
print("async fetching ScienceDirect metadata...")
|
| 201 |
+
api_key = os.environ["ELSEVIER_API_KEY"]
|
| 202 |
doi = self.htmlLink.split("https://doi.org/")[-1]
|
| 203 |
base_url = f"https://api.elsevier.com/content/article/doi/{doi}"
|
| 204 |
headers = {"Accept": "application/json", "X-ELS-APIKey": api_key}
|