Fix some bugs
This commit is contained in:
parent
e37374d1e2
commit
11e326ea76
@ -50,7 +50,7 @@ hrefs = []
|
||||
|
||||
# Base web urls
|
||||
current_year = datetime.datetime.now().year
|
||||
years = range(2009, 2011) # years = range(2010, current_year + 1)
|
||||
years = range(2009, current_year + 1) # years = range(2010, current_year + 1)
|
||||
|
||||
baseWeb = 'https://www.math.u-szeged.hu/ejqtde/'
|
||||
url_list = ['https://www.math.u-szeged.hu/ejqtde/periodica.html?periodica=1¶mtipus_ertek=publications¶m_ertek='
|
||||
|
||||
@ -46,8 +46,8 @@ def author_detail(Data, Year, article_id, Author_list):
|
||||
author = author.split(',')
|
||||
author = [char.replace(' ', '') for char in author]
|
||||
|
||||
Firstname = author[0]
|
||||
Lastname = author[-1]
|
||||
Firstname = author[-1]
|
||||
Lastname = author[0]
|
||||
Middlename = ''.join(author[1:-1]) if len(author[1:-1]) > 0 else None
|
||||
|
||||
# infor
|
||||
@ -59,7 +59,7 @@ def author_detail(Data, Year, article_id, Author_list):
|
||||
Affiliation = line[1].get_text()
|
||||
|
||||
# Email
|
||||
Email = line[0].find('a').get('href')
|
||||
Email = line[0].find('a').get_text()
|
||||
|
||||
author_data = {
|
||||
"author_id": str(uuid.uuid4()),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user