oEmbed client for Python.
Project description
Overview
This is oEmbed client for Python.
Features
Simple usage
Python 3.x native
Multiple endpoint discovery
Installation
This is uploaded on PyPI.
pip install oEmbedPy
Usage
Library
>>> from oembedpy.application import Oembed
>>> oembed = Oembed()
>>> content = oembed.fetch("https://twitter.com/attakei")
>>> print(content.type)
rich
Commandline
Simple usage for author’s video (omitted some output).
$ oEmbed.py 'https://www.youtube.com/watch?v=Oyh8nuaLASA'
title: Yoshi ( ...
author_name: attakei
thumbnail_height: 360
thumbnail_width: 400
If you want JSON, use --format option.
$ oEmbed.py --format=json 'https://www.youtube.com/watch?v=Oyh8nuaLASA'
{"title":"Yoshi (NES - Nint ..."}
Others
This has extension for easy-using. Please see documentation.
License
Apache License 2.0
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oembedpy-0.5.0.tar.gz.
File metadata
- Download URL: oembedpy-0.5.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33abb7dcbe9557ca31176deec59232d01ca35c963498f0e80d5cafe432db851a
|
|
| MD5 |
56c10eed3ff539904b52c8804f995d51
|
|
| BLAKE2b-256 |
362101e8b8c9bbe84cb65c3c3a8354c3a63f4b947357c7e0971a6f232ccc7bb5
|
File details
Details for the file oembedpy-0.5.0-py3-none-any.whl.
File metadata
- Download URL: oembedpy-0.5.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b26b0282fc9bdd01ab7735a946497434d35efc02c1c2df2ed4cd2330dce4703
|
|
| MD5 |
a5d01bee566cf6786eadca2c791d3d47
|
|
| BLAKE2b-256 |
b3f2100e8a26cc3afedce016e95a8dd316e7481a89db3c05b622770f2fa8ef2d
|