Skip to content

Commit 9813d39

Browse files
committed
Update tags to get public access of publications
1 parent d6d03f2 commit 9813d39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scholarly/author_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ def _fill_public_access(self, soup, author):
152152
while True:
153153
rows = soup.find_all('div', 'gsc_mnd_sec_na')
154154
if rows:
155-
for row in rows[0].find_all('a', 'gsc_mnd_art_rvw gs_nph gsc_mnd_link_font'):
155+
for row in rows[0].find_all('a', 'gsc_mnd_art_rvw gsc_mnd_link_font'):
156156
author_pub_id = re.findall(r"citation_for_view=([\w:-]*)",
157157
row['data-href'])[0]
158158
publications[author_pub_id]["public_access"] = False
159159

160160
rows = soup.find_all('div', 'gsc_mnd_sec_avl')
161161
if rows:
162-
for row in rows[0].find_all('a', 'gsc_mnd_art_rvw gs_nph gsc_mnd_link_font'):
162+
for row in rows[0].find_all('a', 'gsc_mnd_art_rvw gsc_mnd_link_font'):
163163
author_pub_id = re.findall(r"citation_for_view=([\w:-]*)",
164164
row['data-href'])[0]
165165
publications[author_pub_id]["public_access"] = True

0 commit comments

Comments
 (0)