aboutsummaryrefslogtreecommitdiff
path: root/article_epub/publishers/oxford.py
diff options
context:
space:
mode:
Diffstat (limited to 'article_epub/publishers/oxford.py')
-rw-r--r--article_epub/publishers/oxford.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/article_epub/publishers/oxford.py b/article_epub/publishers/oxford.py
index aa0a431..b6a5f16 100644
--- a/article_epub/publishers/oxford.py
+++ b/article_epub/publishers/oxford.py
@@ -11,6 +11,11 @@ class Oxford(Publisher):
def check_fulltext(self):
if self.soup.find('div',{'data-widgetname':'ArticleFulltext'}) == None:
sys.exit('Error: Can\'t access fulltext of article')
+ elif self.soup.find('span',{'id':'UserHasAccess'}) \
+ ['data-userhasaccess'] == 'False':
+ sys.exit('Error: Can\'t access fulltext of article')
+ elif self.soup.find('div',class_='PdfOnlyLink') != None:
+ sys.exit('Error: Can\'t access fulltext of article')
else:
return(True)