videoembed
Videoembed is a tool to create embed codes from video URLs by using oembed. You are also able to get thumbnail data.
Supported platforms:
- YouTube
- Vimeo
Installation
Use the package manager pip to install videoembed.
pip install videoembed
Usage
Basic usage:
from videoembed import Embedder
embedder = Embedder()
video = embedder('https://www.youtube.com/watch?v=VIDEOID')
# get embed code
embed_code = video.embed_code
# get thumbnail data
thumbnail = video.thumbnail
You can also pass some configuration data to the embedder:
from videoembed import Embedder
config = {
'width': 600,
'height': 360,
'autoplay': True
}
embedder = Embedder(**config)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Release files for videoembed 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| videoembed-1.0.3.tar.gz | 43.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| videoembed-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.3 kB
Release files / videoembed-1.0.3.tar.gz
| Download URL | videoembed-1.0.3.tar.gz |
|---|---|
| Size | 43.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9109ec4d7b168a6a658db8c4c9b422294e8c3578fdb347e9902bac9b4f4f9690
|
|
BLAKE2b-256 checksum How to use checksums |
f28173a7c003128fe08571d64ba8d8646f127c7eacd0d1a6ac3ed5642dee6a47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / videoembed-1.0.3-py3-none-any.whl
| Download URL | videoembed-1.0.3-py3-none-any.whl |
|---|---|
| Size | 33.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f39eace89cee900c7cf987cc8a52d47ce66773eaae7bf1e019a7af2a63b1b5d
|
|
BLAKE2b-256 checksum How to use checksums |
1eb08482a7b051a8b256d843218621f9283b223f8621e9e4036ff30f02b47bb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|