Skip to content

Commit 3636e45

Browse files
committed
Stop at the first related articles link
1 parent 5eaea62 commit 3636e45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scholarly/publication_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ def fill(self, publication: Publication)->Publication:
344344
for entry in val.find_all('a'):
345345
if entry.text.lower() == 'related articles':
346346
publication['url_related_articles'] = entry.get('href')[26:]
347+
break
347348
# number of citation per year
348349
years = [int(y.text) for y in soup.find_all(class_='gsc_oci_g_t')]
349350
cites = [int(c.text) for c in soup.find_all(class_='gsc_oci_g_al')]

0 commit comments

Comments
 (0)