diff --git a/scholar.py b/scholar.py index 56f979f..4552947 100755 --- a/scholar.py +++ b/scholar.py @@ -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 @@ -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 @@ -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():