Skip to content

Commit cc32e79

Browse files
author
=
committed
Included version number to license name. Ordered sources.md.
1 parent 036a1bb commit cc32e79

File tree

2 files changed

+18
-25
lines changed

2 files changed

+18
-25
lines changed

scripts/1-fetch/museums_victoria_fetch.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ def parse_arguments():
8080
return args
8181

8282

83-
def get_requests_session():
84-
"""
85-
Returns a configured requests session with retries and a User-Agent.
86-
"""
87-
return shared.get_session()
88-
89-
9083
def initialize_data_file(file_path, header):
9184
with open(file_path, "w", encoding="utf-8", newline="\n") as file_obj:
9285
writer = csv.DictWriter(file_obj, fieldnames=header, dialect="unix")
@@ -251,8 +244,7 @@ def main():
251244
shared.paths_log(LOGGER, PATHS)
252245
shared.git_fetch_and_merge(args, PATHS["repo"])
253246
initialize_all_data_files(args)
254-
session = get_requests_session()
255-
data = fetch_museums_victoria_data(args, session)
247+
data = fetch_museums_victoria_data(args, shared.get_session())
256248
write_counts_to_csv(args, data)
257249
args = shared.git_add_and_commit(
258250
args,

sources.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,23 @@ and access towards related query data using a programmable search engine.
121121
- Data available through JSON format
122122

123123

124+
## Museums Victoria
125+
126+
**Description:** Museums Victoria is Australia’s
127+
largest public museum organisation, and the principal custodian of the State’s scientific,
128+
cultural and heritage collections. Its API provides access to meta data on licenses, use rights
129+
and open access. We can also get information on article type, image license, display location,
130+
locality, museum location, etc. There are 150,000 objects available.
131+
132+
**API documentation link**
133+
- [Museum Victoria API documentation](https://collections.museumsvictoria.com.au/developers)
134+
135+
**API Information**
136+
- No API key required
137+
- No query limit
138+
- At the moment it only supports the GET verb and responses are in JSON only.
139+
140+
124141
## Openverse
125142

126143
**Description:** Openverse is a search engine for openly licensed media,
@@ -168,19 +185,3 @@ language edition of wikipedia. It runs on the Meta-Wiki API.
168185
- No API key required
169186
- Query limit: It is rate-limited only to prevent abuse
170187
- Data available through XML or JSON format
171-
172-
173-
## Museums Victoria
174-
**Description:** Museums Victoria is Australia’s
175-
largest public museum organisation, and the principal custodian of the State’s scientific,
176-
cultural and heritage collections. Its API provides access to meta data on licenses, use rights
177-
and open access. We can also get information on article type, image license, display location,
178-
locality, museum location, etc. There are 150,000 objects available.
179-
180-
**API documentation link**
181-
- [Museum Victoria API documentation](https://collections.museumsvictoria.com.au/developers)
182-
183-
**API Information**
184-
- No API key required
185-
- No query limit
186-
- At the moment it only supports the GET verb and responses are in JSON only.

0 commit comments

Comments
 (0)