Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alessandra Gorla
dblp-retriever
Commits
38aac0b7
Unverified
Commit
38aac0b7
authored
Jun 10, 2020
by
Gustavo Pinto
Committed by
GitHub
Jun 10, 2020
Browse files
The missing items are back
parent
89681ae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dblp/venue.py
View file @
38aac0b7
...
...
@@ -55,13 +55,13 @@ class Venue(object):
# year = ""
continue
title
=
item
.
xpath
(
'
div
[@class="data"]/span[@itemprop="name"]/descendant-or-self::*/text()'
)
title
=
item
.
xpath
(
'
cite
[@class="data"]/span[@itemprop="name"]/descendant-or-self::*/text()'
)
if
len
(
title
)
>
0
:
title
=
str
(
" "
.
join
(
str
(
element
).
strip
()
for
element
in
title
))
else
:
title
=
""
pages
=
item
.
xpath
(
'
div
[@class="data"]/span[@itemprop="pagination"]/text()'
)
pages
=
item
.
xpath
(
'
cite
[@class="data"]/span[@itemprop="pagination"]/text()'
)
if
len
(
pages
)
>
0
:
pages
=
str
(
pages
[
0
])
else
:
...
...
@@ -79,7 +79,7 @@ class Venue(object):
else
:
ee
=
""
authors
=
item
.
xpath
(
'
div
[@class="data"]/span[@itemprop="author"]/a/span[@itemprop="name"]'
authors
=
item
.
xpath
(
'
cite
[@class="data"]/span[@itemprop="author"]/a/span[@itemprop="name"]'
'/text()'
)
if
len
(
authors
)
==
1
:
authors
=
str
(
authors
[
0
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment