Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Get Rankings
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dacosta
Get Rankings
Commits
1d73da2f
Commit
1d73da2f
authored
7 months ago
by
Georges Da Costa
Browse files
Options
Downloads
Patches
Plain Diff
Corrects access to scimagojr
parent
c260acea
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get_rankings/tools.py
+4
-1
4 additions, 1 deletion
get_rankings/tools.py
with
4 additions
and
1 deletion
get_rankings/tools.py
+
4
−
1
View file @
1d73da2f
...
...
@@ -40,7 +40,10 @@ def levenshtein(token1, token2):
def
download
(
url
,
filename
=
None
):
LOG
.
info
(
f
"
fetching
{
url
}
"
)
r
=
requests
.
get
(
url
,
stream
=
True
)
headers
=
{
'
upgrade-insecure-requests
'
:
'
1
'
,
}
r
=
requests
.
get
(
url
,
stream
=
True
,
headers
=
headers
)
data
=
b
""
total_size
=
int
(
r
.
headers
.
get
(
"
content-length
"
,
0
))
for
chunk
in
tqdm
(
...
...
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