Podigee Connector for Podcast Data
Project description
Podigee Connector
This is a simple library for connecting to the Podigee API.
It can be used to export data from your dashboard at
https://app.podigee.com/analytics
Supported Endpoints
/podcasts/{podcast_id}/analytics
/podcasts/{podcast_id}/analytics/episodes
/episodes/{episode_id}/analytics
See __main.py__
for all endpoints.
Credentials
Before you can use the library, you must extract your Podigee session cookie; they are not exposed through your Podigee settings.
Alternatively, you can call the login endpoint with your username and password to get a new session cookie:
from podigeeconnector import PodigeeConnector
connector = PodigeeConnector.from_credentials(
base_url=BASE_URL,
podcast_id=PODCAST_ID,
username=USERNAME,
password=PASSWORD,
)
Installation
pip install podigeeconnector
Usage as a library
from podigeeconnector import PodigeeConnector
connector = PodigeeConnector(
base_url=BASE_URL,
podcast_id=PODCAST_ID,
podigee_session_v5=PODIGEE_SESSION_V5,
)
end = datetime.now()
start = end - timedelta(days=30)
podcast_analytics = connector.podcast_analytics(start, end)
logger.info("Podcast Analytics = {}", json.dumps(podcast_analytics, indent=4))
See __main.py__
for all endpoints.
Development
We use Pipenv for virtualenv and dev dependency management. With Pipenv installed:
- Install your locally checked out code in development mode, including its dependencies, and all dev dependencies into a virtual environment:
pipenv sync --dev
- Create an environment file and fill in the required values:
cp .env.sample .env
- Run the script in the virtual environment, which will automatically load
your
.env
:
pipenv run podigeeconnector
To add a new dependency for use during the development of this library:
pipenv install --dev $package
To add a new dependency necessary for the correct operation of this library, add
the package to the install_requires
section of ./setup.py
, then:
pipenv install
To publish the package:
python setup.py sdist bdist_wheel
twine upload dist/*
or
make publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for podigeeconnector-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5684dbc0bb1f98cd2dec8b2341e2aa76f15c50eaebbf3aa0f56d5cf69ffce4f4 |
|
MD5 | c35e3338747e86de5243f71a55e4f1d6 |
|
BLAKE2b-256 | 7afbf03966c0f140557f3aede86766b566ca087582edd97885f0725284b69f8a |