pryanshusharma commited on
Commit
f8800b5
·
verified ·
1 Parent(s): 5cde1d2

Update degruyterscrapper.py

Browse files
Files changed (1) hide show
  1. 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