Metadata-Version: 2.1
Name: oEmbedPy
Version: 0.1.0
Summary: oEmbed client for Python.
Author-email: Kazuya Takei <myself@attakei.net>
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Utilities
Requires-Dist: beautifulsoup4
Requires-Dist: httpx
Requires-Dist: Click>=8 ; extra == "cli"
Project-URL: Home, https://github.com/attakei-lab/oEmbedPy
Provides-Extra: cli

========
oEmbedPy
========

.. note::

   This is yet experimental product.
   It will be implemeted needy features incrementaly.

Installation
============

Currently, this is not uploaded to PyPI.

Please clone and install.

.. code-block:: console

   git clone https://github.com/attakei-lab/oEmbedPy
   cd oEmbedPy
   pip install .

Usage
=====

Commandline
-----------

.. note:: It needs Click for using CLI. Run extra install 'cli'.

Simple usage for author's video (omitted some output).

.. code-block:: console

   $ 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 ``--json`` option.

.. code-block:: console

   $ oEmbed.py --json 'https://www.youtube.com/watch?v=Oyh8nuaLASA'
   {"title":"Yoshi (NES - Nint ..."}

License
=======

Apache License 2.0

