Skip to content

Commit 4e1d8fa

Browse files
committed
fix Wiley tables etc.
1 parent 2d2e42c commit 4e1d8fa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ace/scrape.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ def check_for_substitute_url(self, url, html):
217217
return re.sub('(full|abstract)\/*$', 'xml\/nlm', url)
218218
elif 'sciencedirect' in url:
219219
return url + '?np=y'
220-
elif j in ['cognitive, affective and behavioral neuroscience',
221-
'brain imaging and behavior']:
220+
elif 'springer.com' in url:
222221
return url + '/fulltext.html'
223222
else:
224223
return url

ace/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def parse_article(self, html, pmid=None, **kwargs):
469469
if t:
470470
t.position = i + 1
471471
# t.number = tc['id'][3::].strip()
472-
t.number = re.search('t[bl0\-]+(\d+)$', tc['id']).group(1)
472+
t.number = re.search('t[bl0\-]*(\d+)$', tc['id']).group(1)
473473
t.label = tc.find('span', class_='label').get_text()
474474
t.caption = tc.find('caption').get_text()
475475
try:

0 commit comments

Comments
 (0)