Skip to main content

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


Download files

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

Source Distribution

oembedpy-0.7.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

oembedpy-0.7.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file oembedpy-0.7.2.tar.gz.

File metadata

  • Download URL: oembedpy-0.7.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for oembedpy-0.7.2.tar.gz
Algorithm Hash digest
SHA256 dd412a74eca8ac6e2badda59fff5444523f5a03e7e9036a0b8f5d14bb3266e37
MD5 38ad11e70391384222855f1225bb02de
BLAKE2b-256 d0606ca22a45965cdb4fe4bdbd6a78426ce9776f189b15fa9983f1b992e1a3c4

See more details on using hashes here.

File details

Details for the file oembedpy-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: oembedpy-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for oembedpy-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00870b49ca8e59a71dcbca98ff943c933ace579b5f38ba3399a43d7c0f1aea7b
MD5 f96ec6381a01f565848fc4d9b3344d33
BLAKE2b-256 b1f893495ad5c51666082c22d78fb447f32eab1a7c3917900512ea5c476ae6fc

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