Skip to main content

Gets media info from sites like Youtube and Soundcloud

Project description

python-media-hosts gets media info from sites like Youtube and Soundcloud.

**This library is broken and unmaintained, new contributors are welcome.**

Which informations does it return ?
==============================

Depending on the queried hosting service, the returned data can contain the
following keys:

- ``authors``
- ``beats_per_minute``
- ``comment_count``
- ``coverart_url``
- ``description``
- ``downloads``
- ``duration``
- ``favorite_count``
- ``genres``
- ``license``
- ``published``
- ``purchase_url``
- ``rating``
- ``recorded``
- ``tags``
- ``thumbnails``
- ``title``
- ``view_count``
- ``waveform_url``

The following keys are always present:

- ``id``
- ``service``
- ``type`` (audio or video)

Installation
============

pip install media-hosts

media-hosts is compatible with python 2 and 3.

Dependencies:

- miss
- requests

Optional dependencies:

- python-dateutil: to parse dates returned by various APIs
- jsonpickle: for __main__.py

Usage
=====

From python::

from media_hosts import MediaHosts, MediaHostException
media_hosts = MediaHosts(_=_, settings=settings)
media_hosts.get_info_by_url(url)

From the command line::

$ python -m media_hosts 'https://www.youtube.com/watch?v=Gn3QXjNQNsk'

License
=======

`CC0 Public Domain Dedication <http://creativecommons.org/publicdomain/zero/1.0/>`_

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

media-hosts-0.5.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

media_hosts-0.5-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file media-hosts-0.5.tar.gz.

File metadata

  • Download URL: media-hosts-0.5.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for media-hosts-0.5.tar.gz
Algorithm Hash digest
SHA256 6cdf2c1b316719eb4a01494134c601f3a31826534c0b5156c3347e1489034e6e
MD5 81b6868d0ac4d66db17867c6d790f12a
BLAKE2b-256 1631e31bbf4e40fbd9923dda6ef1832378d7cd877056f9893633a47443390978

See more details on using hashes here.

File details

Details for the file media_hosts-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for media_hosts-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e1d0f9e3f1c78d2461342cab5f0ff283c9c9f6fd363a017205ad5effec5a2565
MD5 dd02f953bd1d8ce461c8a5a84c68619e
BLAKE2b-256 90366e8110435044076e5bffde88e21133862ffb846b6e56a3738f9c013e02c9

See more details on using hashes here.

Supported by

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