Embed HTML content by URL from eEmbed consumer
Caution!
DEPRECATED
This extension is stopped developmnent. oEmbedPy contains same features of it and is more useful.
Please use oEmbedPy instead.
This is Sphinx extension to provide easy embed some third-party websites content.
Example for embed tweet from Twitter:
- In defaults, you use
raw
directive, get and paste blockquuote and script tags from Twitter Publish. - With this, you use
oembed
and paste tweet URL only!
This is registered in PyPI.
pip install sphinxcontrib-oembed
Add this extension into your conf.py
of Sphinx.
extensions = [
"sphinxcontrib.oembed",
]
# You can change User-agent
# Default is sphinxcontrib-oembed/{ext-version}
obmed_useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
- Published on PyPI
- Enable to confiugre User-agent when request oEmbed providers
Apache-2.0