Spaces:
Sleeping
Sleeping
Update degruyterscrapper.py
Browse files- degruyterscrapper.py +2 -0
degruyterscrapper.py
CHANGED
@@ -48,6 +48,8 @@ def get_author_details(url: str) -> list:
|
|
48 |
for author in authors.findAll("span", {"class" : "contributor"}):
|
49 |
author_name = author.text.strip()
|
50 |
author_address = author.find("contributor-popdown").get("affiliations").strip()
|
|
|
|
|
51 |
email = author.find("contributor-popdown").get("email").strip()
|
52 |
if len(email.strip()) < 1:
|
53 |
continue
|
|
|
48 |
for author in authors.findAll("span", {"class" : "contributor"}):
|
49 |
author_name = author.text.strip()
|
50 |
author_address = author.find("contributor-popdown").get("affiliations").strip()
|
51 |
+
# if ";" in author_address:
|
52 |
+
# author_address = author_address.split(";")[0]
|
53 |
email = author.find("contributor-popdown").get("email").strip()
|
54 |
if len(email.strip()) < 1:
|
55 |
continue
|