Return the BeautifulSoup for a page on scholar.google.com
(self, url: str)
| 235 | return any([got_id(i) for i in _CAPTCHA_IDS]) |
| 236 | |
| 237 | def _get_soup(self, url: str) -> BeautifulSoup: |
| 238 | """Return the BeautifulSoup for a page on scholar.google.com""" |
| 239 | html = self._get_page('https://scholar.google.com{0}'.format(url)) |
| 240 | html = html.replace(u'\xa0', u' ') |
| 241 | res = BeautifulSoup(html, 'html.parser') |
| 242 | try: |
| 243 | self.publib = res.find('div', id='gs_res_glb').get('data-sva') |
| 244 | except Exception: |
| 245 | pass |
| 246 | return res |
| 247 | |
| 248 | def search_authors(self, url: str)->Author: |
| 249 | """Generator that returns Author objects from the author search page""" |
no test coverage detected