|
|
@ -10,9 +10,9 @@ from urllib.parse import urlencode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
about = {
|
|
|
|
about = {
|
|
|
|
"website": 'https://search.creativecommons.org/',
|
|
|
|
"website": 'https://wordpress.org/openverse/',
|
|
|
|
"wikidata_id": None,
|
|
|
|
"wikidata_id": None,
|
|
|
|
"official_api_documentation": 'https://api.creativecommons.engineering/v1/',
|
|
|
|
"official_api_documentation": 'https://api.openverse.engineering/v1/',
|
|
|
|
"use_official_api": True,
|
|
|
|
"use_official_api": True,
|
|
|
|
"require_api_key": False,
|
|
|
|
"require_api_key": False,
|
|
|
|
"results": 'JSON',
|
|
|
|
"results": 'JSON',
|
|
|
@ -23,7 +23,7 @@ categories = ['images']
|
|
|
|
paging = True
|
|
|
|
paging = True
|
|
|
|
nb_per_page = 20
|
|
|
|
nb_per_page = 20
|
|
|
|
|
|
|
|
|
|
|
|
base_url = 'https://api.creativecommons.engineering/v1/images?'
|
|
|
|
base_url = 'https://api.openverse.engineering/v1/images?'
|
|
|
|
search_string = '&page={page}&page_size={nb_per_page}&format=json&{query}'
|
|
|
|
search_string = '&page={page}&page_size={nb_per_page}&format=json&{query}'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|