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.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for oembedpy-0.7.1.tar.gz
Algorithm Hash digest
SHA256 9a22e272cd78c82f7dd5f599e0510eec2f8fd4a56f092ff5bdf7bd84e7244835
MD5 cadc600a7cfbfaf335c0ed8aea140a1a
BLAKE2b-256 225bdd48fcb28763d57da5e2fa27e3e44c52c47ee297125f2331d6900cd870b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oembedpy-0.7.1-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.6

File hashes

Hashes for oembedpy-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2fa6a0b0407e5e9ea66215a078a4e7f46bc94caef5da5941974d43c9c6aaf72
MD5 885680bf24a14eaed187646ddbafc2a7
BLAKE2b-256 3304f144dffb62a5d4dfca47d1b92c3c869625223e51cf6e60c77a6766a244c5

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