Skip to content

Commit

Permalink
Removed four more hardcoded URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Jun 8, 2024
1 parent 4749ec5 commit 64d15f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scholia/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def wb_get_venue_latest_works(q):
'type="application/rss+xml" />\n'

query = VENUE_SPARQL_QUERY.format(q=q)
url = 'https://query.wikidata.org/bigdata/namespace/wdq/sparql'
url = SPARQL_ENDPOINT
params = {'query': query, 'format': 'json'}
response = requests.get(url, params=params)
data = response.json()
Expand Down Expand Up @@ -404,7 +404,7 @@ def wb_get_topic_latest_works(q):
'type="application/rss+xml" />\n'

query = TOPIC_SPARQL_QUERY.format(q=q)
url = 'https://query.wikidata.org/bigdata/namespace/wdq/sparql'
url = SPARQL_ENDPOINT
params = {'query': query, 'format': 'json'}
response = requests.get(url, params=params)
data = response.json()
Expand Down Expand Up @@ -450,7 +450,7 @@ def wb_get_organization_latest_works(q):
'type="application/rss+xml" />\n'

query = ORGANIZATION_SPARQL_QUERY.format(q=q)
url = 'https://query.wikidata.org/bigdata/namespace/wdq/sparql'
url = SPARQL_ENDPOINT
params = {'query': query, 'format': 'json'}
response = requests.get(url, params=params)
data = response.json()
Expand Down Expand Up @@ -496,7 +496,7 @@ def wb_get_sponsor_latest_works(q):
'type="application/rss+xml" />\n'

query = SPONSOR_SPARQL_QUERY.format(q=q)
url = 'https://query.wikidata.org/bigdata/namespace/wdq/sparql'
url = SPARQL_ENDPOINT
params = {'query': query, 'format': 'json'}
response = requests.get(url, params=params)
data = response.json()
Expand Down

0 comments on commit 64d15f4

Please sign in to comment.