Skip to main content

Apple Connector for Podcast Data

Project description

Apple Connector

This is a simple library for connecting to the inofficial Apple podcast API.
It can be used to export data from your dashboard at https://podcastsconnect.apple.com.

Supported Data

  • Podcast Overview
  • Trends
  • Episodes Overview
  • Episode Details

Credentials

We need the myacinfo and itctx cookies from your browser to authenticate. They can be found through the network tab in your browser's developer tools. Add them to .env as MYACINFO and ITCTX. (You need to quote the values, as they may contain |.)

Installation

pip install appleconnector

Usage as a library

from appleconnector import AppleConnector

# Set up the connector
connector = AppleConnector(
    showId='1642486726',
    myacinfo="your_myacinfo_cookie",
    itctx="your_itctx_cookie"
)

# Get Podcast overview data
connector.overview()

# ...

See __main.py__ for all endpoints.

Development

We use [Pipenv] for virtualenv and dev dependency management. With Pipenv installed:

  1. Install your locally checked out code in [development mode], including its dependencies, and all dev dependencies into a virtual environment:
pipenv sync --dev
  1. Create an environment file and fill in the required values:
cp .env.example .env
  1. Run the script in the virtual environment, which will [automatically load your .env][env]:
pipenv run appleconnector

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appleconnector-0.3.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

appleconnector-0.3.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file appleconnector-0.3.1.tar.gz.

File metadata

  • Download URL: appleconnector-0.3.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for appleconnector-0.3.1.tar.gz
Algorithm Hash digest
SHA256 27d1bfcc785fbde0b0ae6a451b29f532cd3ebfb253f9a1ea802ba573c7b1a4da
MD5 c53e52a2eaa35e559d6fc1e62bed0be9
BLAKE2b-256 1c786c6bd891c5317106214399330e1f383a6f62202cc4667ba55dbf068e00aa

See more details on using hashes here.

File details

Details for the file appleconnector-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for appleconnector-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce023b544baeb3b74657b6267d0396ae0338eabab0bc56413c1f7482f4f247ff
MD5 5f0db5a48400af1b2c70cb9aaf8269c7
BLAKE2b-256 3adcbd8c64cc7af1b4864a36b5d3294bf0ce9eaaf1e8674f1d7e82699641bf51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page