**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/>`_
Metadata
Release files for media-hosts 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| media-hosts-0.5.tar.gz | 13.4 kB | Without provenance | Details for media-hosts-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| media_hosts-0.5-py3-none-any.whl | Python 3 | none | any | Details for media_hosts-0.5-py3-none-any.whl |
Total release size: 33.9 kB
Release files / media-hosts-0.5.tar.gz
| Download URL | media-hosts-0.5.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cdf2c1b316719eb4a01494134c601f3a31826534c0b5156c3347e1489034e6e
|
|
BLAKE2b-256 checksum How to use checksums |
1631e31bbf4e40fbd9923dda6ef1832378d7cd877056f9893633a47443390978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / media_hosts-0.5-py3-none-any.whl
| Download URL | media_hosts-0.5-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1d0f9e3f1c78d2461342cab5f0ff283c9c9f6fd363a017205ad5effec5a2565
|
|
BLAKE2b-256 checksum How to use checksums |
90366e8110435044076e5bffde88e21133862ffb846b6e56a3738f9c013e02c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for media-hosts 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.