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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: oembedpy-0.7.0.tar.gz
  • Upload date:
  • Size: 11.0 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.0.tar.gz
Algorithm Hash digest
SHA256 35d99adc1709e0f91aad983afdb8661e1373a8fc6e78d6cdd8c33cbffb763989
MD5 4cd9a041b48d9cbf56f3207b136d2ed2
BLAKE2b-256 79a607a736a786299690d0a11740ed5e1ee788dc73154a4c719e4acf28b9153a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oembedpy-0.7.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81b6dff92883542dd570a44d8132cb6c3c55e03fdc6c1861819a70613aecdfe6
MD5 bb634b10aca2e3f00d9e0fa860e9528a
BLAKE2b-256 f549417c219187d7e5126682d542a118803eec5aaf079d418df9e1a0575d4f29

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