Overview
media-fetcher
performs fetching of supported media from various sources.
It gives you information on a single media coupled with its performance.
Supported sources
- googleads - fetch media performance metrics from a Google Ads account / MCC.
- youtube - fetch public videos from a YouTube channel.
- file - load media performance metrics from CSV files
- bq - load media performance metrics from BigQuery table.
- sql - load media performance metrics from SqlAlchemy supported DB.
Installation
pip install media-fetching
uv add media-fetching
Usage
Once media-fetcher
is installed you can call it:
media-fetcher \
--source <MEDIA_SOURCE> \
--media-type <MEDIA_TYPE> \
--writer <WRITER_TYPE> \
--output <OUTPUT_FILE_NAME>
<SOURCE>
- source of media data, one of supported sources.<MEDIA_TYPE>
- type of media, one of supported media.<WRITER_TYPE>
- writer identifier (check available options at garf-io library).<OUTPUT_FILE_NAME>
- where to store the fetched data (by defaultmedia_results
).