Skip to content

Commit 9a68e81

Browse files
committed
Request mode for PMC
1 parent aabfefd commit 9a68e81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ace/scrape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def get_html_by_pmid(self, pmid, journal, mode='browser', retmode='ref', prefer_
463463
pmc_id = self._get_pmcid_from_pmid(pmid)
464464
if pmc_id:
465465
pmc_url = f"https://pmc.ncbi.nlm.nih.gov/articles/{pmc_id}"
466-
return self.get_html(pmc_url, journal, mode='requests')
466+
return self.get_html(pmc_url, journal, mode=mode, headless=headless)
467467
if prefer_pmc_source == "only":
468468
logger.info("\tPMC source detected, but PMCID lookup failed. Skipping...")
469469
return

0 commit comments

Comments
 (0)