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.6.0.tar.gz (20.7 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.6.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oembedpy-0.6.0.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for oembedpy-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d6520f194900e90e0305f7817ad4587258abf2d67d5e39717d04383fdd991836
MD5 ce1b8b407efdc57433cb0c071ba9a83c
BLAKE2b-256 4c638a521a6bb30c76aa864320ae6561be04c00bda0a98ddb9b76d3317bdc0eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oembedpy-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for oembedpy-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a756fd28d37a8a32e657ee23188e4df7af6326dbf2933b2ca29b7e93f691ed52
MD5 2bac42807951470b41768cd379096d5e
BLAKE2b-256 e23ca89b90258f360531b4dd1f42b9c03bc40b2ebd1ffebc221f4178e40f5bd5

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