Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scholar.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ def _parse_article(self, div):
raw_text = raw_text.replace('\n', '')
self.article['excerpt'] = raw_text

if self.article['url_pdf'] is None and tag.name == 'div' and self._tag_has_class(tag, 'gs_ggs') \
and tag.div and tag.div.div and tag.div.div.a and tag.div.div.a.span \
and tag.div.div.a.span.get_text() == "[PDF]":
self.article['url_pdf'] = self._path2url(tag.div.div.a['href'])


class ScholarQuery(object):
"""
Expand Down