Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CiS Projekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ockenden, Samuel
CiS Projekt
Commits
0cff3f23
Commit
0cff3f23
authored
3 years ago
by
Jochens, Florian
Browse files
Options
Downloads
Patches
Plain Diff
fixed bug in get_citation_info()
parent
32c54ac0
No related branches found
No related tags found
4 merge requests
!21
abstract fetch function
,
!6
Updating the input files
,
!4
fixed bug in get_citation_info()
,
!3
fixed bug in get_citation_info()
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
input/__pycache__/input_fj.cpython-39.pyc
+0
-0
0 additions, 0 deletions
input/__pycache__/input_fj.cpython-39.pyc
input/input_fj.py
+1
-0
1 addition, 0 deletions
input/input_fj.py
input/test.py
+4
-1
4 additions, 1 deletion
input/test.py
with
5 additions
and
1 deletion
input/__pycache__/input_fj.cpython-39.pyc
0 → 100644
+
0
−
0
View file @
0cff3f23
File added
This diff is collapsed.
Click to expand it.
input/input_fj.py
+
1
−
0
View file @
0cff3f23
...
...
@@ -82,6 +82,7 @@ def download(url): # Download citation and references file
print
(
"
File does not exist
"
)
def
get_citation_info
(
pub
,
num_citations
,
soup
):
pub
.
_citations
=
[]
details
=
soup
.
find
(
'
ol
'
,
class_
=
'
cited-content_cbyCitation
'
)
titles
=
[]
for
title
in
details
.
find_all
(
'
span
'
,
...
...
This diff is collapsed.
Click to expand it.
input/test.py
+
4
−
1
View file @
0cff3f23
...
...
@@ -3,10 +3,13 @@
from
input_fj
import
input
,
print_pub_info
import
sys
if
len
(
sys
.
argv
)
!=
2
:
if
len
(
sys
.
argv
)
!=
3
:
sys
.
stderr
.
write
(
'
Usage: {} <url>
\n
'
.
format
(
sys
.
argv
[
0
]))
exit
(
1
)
url
=
sys
.
argv
[
1
]
url2
=
sys
.
argv
[
2
]
pub
=
input
(
url
)
print_pub_info
(
pub
)
pub2
=
input
(
url2
)
print_pub_info
(
pub2
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment