From 3ca006886e000c4b29a26cbb4495b33f54057b2f Mon Sep 17 00:00:00 2001 From: Aghasy Poghosyan Date: Sun, 24 Jun 2018 18:34:28 +0400 Subject: [PATCH] fix ckreibich/scholar.py#102 --- scholar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scholar.py b/scholar.py index 13ccd43..2133d67 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