From 5d3ad00a2478fcafdc39b0abd57d9f1bf43a7df2 Mon Sep 17 00:00:00 2001 From: Ryan Reece <ryan@cerebras.net> Date: Mon, 3 Dec 2018 17:17:48 -0800 Subject: [PATCH] fixes for https://github.com/ckreibich/scholar.py/issues/102 --- scholar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scholar.py b/scholar.py index 13ccd43..ed94434 100755 --- a/scholar.py +++ b/scholar.py @@ -482,7 +482,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 @@ -982,7 +982,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 @@ -1142,7 +1142,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():