Skip to content

Commit 1160657

Browse files
authored
Merge pull request #580 from UsamaFoad/patch-1
Fix regex pattern for citedby_url extraction
2 parents ae36174 + ef36523 commit 1160657

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scholarly/_scholarly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def citedby(self, object: Publication)->_SearchScholarIterator:
309309

310310
def _citedby_long(self, object: Publication, years):
311311
# Extract cites_id. Note: There could be multiple ones, separated by commas.
312-
m = re.search("cites=[\d+,]*", object["citedby_url"])
312+
m = re.search(r"cites=[\d+,]*", object["citedby_url"])
313313
pub_id = m.group()[6:]
314314
for y_hi, y_lo in years:
315315
sub_citations = self.search_citedby(publication_id=pub_id, year_low=y_lo, year_high=y_hi)

0 commit comments

Comments
 (0)