Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Add instructions how to run ingestion script from command line (#4083)
Philipp90584a9a814d
diff --git a/catalog/justfile b/catalog/justfileindex 1f0f713d9..f1054d56f 100644--- a/catalog/justfile+++ b/catalog/justfile@@ -172,3 +172,7 @@ generate-docs doc="dag" fail_on_diff="false":# Generate files for a new provideradd-provider provider_name endpoint +media_types="image":python3 templates/create_provider_ingester.py "{{ provider_name }}" "{{ endpoint }}" -m {{ media_types }}++# Run bash in the container set in the SERVICE env-var+run:+ just ../run {{ SERVICE }} bashdiff --git a/documentation/catalog/guides/adding_a_new_provider.md b/documentation/catalog/guides/adding_a_new_provider.mdindex 3dc22390a..d3e8a04b8 100644--- a/documentation/catalog/guides/adding_a_new_provider.md+++ b/documentation/catalog/guides/adding_a_new_provider.md@@ -97,6 +97,19 @@ in theas well as a corresponding test file. Complete the TODOs detailed in thegenerated files to implement behavior specific to your API.+You can run the provider script directly from the command line via a just+recipe. This will open a bash shell inside the docker stack of the catalog.++```+just catalog/run+```++Now you can just run the script like so:++```+python catalog/dags/providers/provider_api_scripts/<script_you_want_to_run>.py+```+Some APIs may not fit perfectly into the established `ProviderDataIngester`pattern. For advanced use cases and examples of how to modify the ingestionflow, see the