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 --foramt 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.4.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oembedpy-0.4.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file oEmbedPy-0.4.0.tar.gz.

File metadata

  • Download URL: oEmbedPy-0.4.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for oEmbedPy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ced752cb17ac5f636d0a5a5dec29019dc5d592bdc6adebd4f7c6d88d273ac7a6
MD5 09b55410ac83720f222e807a1cda0c4e
BLAKE2b-256 0ae3133a7f5c76b5c5c5c93419f2f7bb3444a8558292369a40907cc949e1a555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oembedpy-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for oembedpy-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f72995f549c88a9e44b64c4dfc4a07967665f6fb139ab2b6b6619f717d4a0f8
MD5 7c448b5b978e704d66e09bc90ee1c550
BLAKE2b-256 4a9d83facb3681006dfe1c30cdd2209153a44f06265e878bc7dbca25e8114bce

See more details on using hashes here.

Supported by

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