Open EthanC111 opened 11 months ago
I believe this is when the result is the new google scholar UI that came in this June or so. It happens when it's a single result most of the time.
You can try this in publication_parser.py. Add this to line 61.
+ self._soup.find_all('div', class_='gs_r gs_or gs_scl gs_fmar')
I believe this is when the result is the new google scholar UI that came in this June or so. It happens when it's a single result most of the time. You can try this in publication_parser.py. Add this to line 61.
+ self._soup.find_all('div', class_='gs_r gs_or gs_scl gs_fmar')
Thanks for pointing this out, just to be clear, the full line 61 should be changed from
self._rows = self._soup.find_all('div', class_='gs_r gs_or gs_scl') + self._soup.find_all('div', class_='gsc_mpat_ttl')
to
self._rows = self._soup.find_all('div', class_='gs_r gs_or gs_scl gs_fmar') + self._soup.find_all('div', class_='gsc_mpat_ttl')
Then it works.
Was seeing intermittent failures again in April 2024. Needed to update that line (around 61) to be:
self._rows = self._soup.find_all('div', class_='gs_r gs_or gs_scl gs_fmar') + self._soup.find_all('div', class_='gsc_mpat_ttl') + self._soup.find_all('div', class_='gs_r gs_or gs_scl')
Describe the bug Both of the queries provided below will throw StopIteration errors even when the http requests are successful.
To Reproduce
Expected behavior Should be printing the paper information.
Screenshots
Desktop (please complete the following information):
Do you plan on contributing? Your response below will clarify whether the maintainers can expect you to fix the bug you reported.
Additional context Add any other context about the problem here.