This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
[API Integration - AUDIO] SoundCloud #281
Labels
✨ goal: improvement
Improvement to an existing feature
providers
🙅 status: discontinued
Not suitable for work as repo is in maintenance
Ticket will require more work prior to integration, preliminary information only at this point. This is blocked by the Catalog not currently supporting audio as a content type.
Provider API Endpoint / Documentation
https://developers.soundcloud.com/
https://developers.soundcloud.com/docs/api/reference
Provider description
SoundCloud is an online provider of audio, of varying lengths and uses. Some items on SoundCloud are CC licensed.
Licenses Provided
Provider API Technical info
Ability to filter by license is indicated in /tracks:
https://developers.soundcloud.com/docs/api/reference#tracks
General Recommendations for implementation
src/cc_catalog_airflow/dags/provider_api_scripts/
directory.ImageStore
class (Import this fromsrc/cc_catalog_airflow/dags/provider_api_scripts/common/storage/image.py
).DelayedRequester
class (Import this fromsrc/cc_catalog_airflow/dags/provider_api_scripts/common/requester.py
).src/cc_catalog_airflow/dags/provider_api_scripts/modules/etlMods.py
, sincethat module is deprecated.
the script should take a
--date
parameter when run as a script, giving thedate for which we should collect images. The form should be
YYYY-MM-DD
(so,the script can be run via
python my_favorite_provider.py --date 2018-01-01
).the CLI. In our example from above, we'd then have a main function
my_favorite_provider.main(date)
. The main should do the same thing callingfrom the CLI would do.
pycodestyle
(available viapip install pycodestyle
) to check for compliance.appropriate (e.g., long strings for testing).
Examples of other Provider API Scripts
For example Provider API Scripts and accompanying test suites, please see
src/cc_catalog_airflow/dags/provider_api_scripts/flickr.py
andsrc/cc_catalog_airflow/dags/provider_api_scripts/test_flickr.py
, orsrc/cc_catalog_airflow/dags/provider_api_scripts/wikimedia_commons.py
andsrc/cc_catalog_airflow/dags/provider_api_scripts/test_wikimedia_commons.py
.The text was updated successfully, but these errors were encountered: