Skip to content

Commit

Permalink
Add justtakeitfree as an image provider
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Aug 7, 2023
1 parent 61c7abd commit 4cda04e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions catalog/dags/common/loader/provider_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
FREESOUND_DEFAULT_PROVIDER = "freesound"
INATURALIST_DEFAULT_PROVIDER = "inaturalist"
JAMENDO_DEFAULT_PROVIDER = "jamendo"
JUSTTAKEITFREE_IMAGE_PROVIDER = "justtakeitfree"
METROPOLITAN_MUSEUM_DEFAULT_PROVIDER = "met"
NAPPY_DEFAULT_PROVIDER = "nappy"
NYPL_DEFAULT_PROVIDER = "nypl"
Expand Down
4 changes: 4 additions & 0 deletions catalog/dags/providers/provider_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from providers.provider_api_scripts.freesound import FreesoundDataIngester
from providers.provider_api_scripts.inaturalist import INaturalistDataIngester
from providers.provider_api_scripts.jamendo import JamendoDataIngester
from providers.provider_api_scripts.justtakeitfree import JusttakeitfreeDataIngester
from providers.provider_api_scripts.metropolitan_museum import MetMuseumDataIngester
from providers.provider_api_scripts.museum_victoria import VictoriaDataIngester
from providers.provider_api_scripts.nappy import NappyDataIngester
Expand Down Expand Up @@ -235,6 +236,9 @@ def __post_init__(self):
ProviderWorkflow(
ingester_class=JamendoDataIngester,
),
ProviderWorkflow(
ingester_class=JusttakeitfreeDataIngester,
),
ProviderWorkflow(
ingester_class=MetMuseumDataIngester,
start_date=datetime(2016, 9, 1),
Expand Down
1 change: 1 addition & 0 deletions catalog/env.template
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ AIRFLOW_VAR_API_KEY_EUROPEANA=not_set
AIRFLOW_VAR_API_KEY_FLICKR=not_set
AIRFLOW_VAR_API_KEY_FREESOUND=not_set
AIRFLOW_VAR_API_KEY_JAMENDO=not_set
AIRFLOW_VAR_API_KEY_JUSTTAKEITFREE=not_set
AIRFLOW_VAR_API_KEY_NYPL=not_set
AIRFLOW_VAR_API_KEY_RAWPIXEL=not_set
AIRFLOW_VAR_API_KEY_THINGIVERSE=not_set
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"credit_requirements": "This image is published under <a href=\"https://creativecommons.org/licenses/by/4.0/deed.en\" target=\"_blank\">CC BY 4.0 licence</a>.<br />Free for commercial use. Attribution required.<br />Please, credit: &copy; Justtakeitfree Free Photos (CC BY 4.0)<br />An active hyperlink to the page should be provided.",
"credit_text": "&copy; Justtakeitfree Free Photos (CC BY 4.0)",
"full_image_link": "https://justtakeitfree.com/photos/2.jpg",
"license": "(CC BY 4.0)",
"license_link": "https://creativecommons.org/licenses/by/4.0/deed.en",
"page_link": "https://justtakeitfree.com/photo/2/",
"preview_link": "https://justtakeitfree.com/photos/2_800.jpg",
"tags": ["Baturyn fortress", "Baturyn citadel", "cossack fortress"]
}

0 comments on commit 4cda04e

Please sign in to comment.