Skip to main content

Library to interact with iTunes Reporter API

Project description

https://badge.fury.io/py/pytunes-reporter.svg https://travis-ci.org/gifbitjapan/pytunes-reporter.svg?branch=master https://coveralls.io/repos/github/gifbitjapan/pytunes-reporter/badge.svg?branch=master

A Python Framework for Getting Information Out Of iTunes Reporter API

Overview

The iTunes Reporter interface has a lot of very useful information in it, but unfortunately Apple only provides a Java Applet to access it, and no API.

This library lets you access that data as native Python objects so that you can display, analyze, or store it however you like.

Reporter takes your API information (either username and password or AccessKey), and then lets you request information from the API. In the case of a report, it downloads the TSV (Tab Separated Values) file, unzips it, and converts it into a native Python object.

In a coming version, you will also be able to use this via the command-line.

Basic Usage

To access the iTunes Reporter API, you must first instantiate the Reporter class, using either your username and password:

from reporter import Reporter

rep = Reporter(user_id='user@mydomain.com', password='hunter2')
print(rep.vendors)
# ['80012345', '80054321']

Or your AccessKey (obtainable via the web interface, Apple’s own Reporter tool, or using the access_token property of an already instantiated Reporter object:

from reporter import Reporter

rep = Reporter(access_token='29c656f3-2dcf-1234-5678-123456789abc')
print(rep.vendors)
# ['80012345', '80054321']

In the case of using your user_id and password, at the time of your first request, Reporter will fetch your AccessKey and use it for that request and all subsequent ones.

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

pytunes-reporter-0.3.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

pytunes_reporter-0.3.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file pytunes-reporter-0.3.1.tar.gz.

File metadata

  • Download URL: pytunes-reporter-0.3.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for pytunes-reporter-0.3.1.tar.gz
Algorithm Hash digest
SHA256 932ceae1c4915901abcf30c7aa6a116caf35d9c906709fccb562f26e877ac38c
MD5 522d3deea1c4a3e5e6c465a5ae57b1c1
BLAKE2b-256 9216efe2d19e6525f5151d6dfefef52baffc86f06b3375a82b32cb16812a2c3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytunes_reporter-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for pytunes_reporter-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 476f768932e88bb375956a7053a64df916ea3e09158e209793d29dc281734fdd
MD5 fc0ed5dfe81e3465d640659fcfd76a81
BLAKE2b-256 19aff03b217ea9d588d359ca5b78b67847081d8506fbb76a635126897df7011b

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