Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rreece committed Dec 20, 2018
1 parent 46df7be commit c40a294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scholar.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def _parse_links(self, span):
self._strip_url_arg('num', self._path2url(tag.get('href')))

if tag.getText().startswith('Import'):
self.article['url_citation'] = self._path2url(tag.get('href'))
self.article['url_citation'] = tag.get('href')


@staticmethod
Expand Down Expand Up @@ -983,7 +983,7 @@ def apply_settings(self, settings):
# to Google.
soup = SoupKitchen.make_soup(html)

tag = soup.find(name='form', attrs={'id': 'gs_settings_form'})
tag = soup.find(name='form', attrs={'id': 'gs_bdy_frm'})
if tag is None:
ScholarUtils.log('info', 'parsing settings failed: no form')
return False
Expand Down Expand Up @@ -1151,7 +1151,7 @@ def csv(querier, header=False, sep='|'):
def citation_export(querier):
articles = querier.articles
for art in articles:
print(art.as_citation() + '\n')
print(art.as_citation())


def main():
Expand Down

0 comments on commit c40a294

Please sign in to comment.