Skip to main content

Create embed codes from video URLs.

Project description

python python python python python main

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.

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

videoembed-1.0.3.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

videoembed-1.0.3-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file videoembed-1.0.3.tar.gz.

File metadata

  • Download URL: videoembed-1.0.3.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for videoembed-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9109ec4d7b168a6a658db8c4c9b422294e8c3578fdb347e9902bac9b4f4f9690
MD5 9ab01d1cb3e303dad0507fe7f3cf856b
BLAKE2b-256 f28173a7c003128fe08571d64ba8d8646f127c7eacd0d1a6ac3ed5642dee6a47

See more details on using hashes here.

File details

Details for the file videoembed-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: videoembed-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for videoembed-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f39eace89cee900c7cf987cc8a52d47ce66773eaae7bf1e019a7af2a63b1b5d
MD5 11f59ca6f50ca4d4d2e6a70fdee5fd10
BLAKE2b-256 1eb08482a7b051a8b256d843218621f9283b223f8621e9e4036ff30f02b47bb4

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