Skip to main content

Create embed codes from video URLs.

Project description

python python python main


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


Use the package manager pip to install videoembed.

pip install videoembed


Basic usage:

from videoembed import Embedder

embedder = Embedder()
video = embedder('')

# 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)


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.0.tar.gz (17.8 kB view hashes)

Uploaded source

Built Distribution

videoembed-1.0.0-py3-none-any.whl (19.4 kB view hashes)

Uploaded py3

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