Skip to content

Commit c19c99b

Browse files
Merge pull request #550 from NisoD/patch-1
Update publication_parser.py to use to `select` from `find_all`.
2 parents 8a0e780 + d5e27a2 commit c19c99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scholarly/publication_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _load_url(self, url: str):
5858
# this is temporary until setup json file
5959
self._soup = self._nav._get_soup(url)
6060
self._pos = 0
61-
self._rows = self._soup.find_all('div', class_='gs_r gs_or gs_scl') + self._soup.find_all('div', class_='gs_r gs_or gs_scl gs_fmar') + self._soup.find_all('div', class_='gsc_mpat_ttl')
61+
self._rows = self._soup.select("div.gs_r.gs_or.gs_scl") + self._soup.select("div.gs_r.gs_or.gs_scl.gs_fmar") + self._soup.select("div.gsc_mpat_ttl")
6262

6363
def _get_total_results(self):
6464
if self._soup.find("div", class_="gs_pda"):

0 commit comments

Comments
 (0)