pip install micawber
python
import micawber
python
def get_embed_data(url):
pass
python
oembed_provider = micawber.bootstrap_basic(OEmbedProviderRegistry())
python
oembed_provider.register('custom_provider', get_embed_data)
python
url = 'https://www.example.com'
oembed_data = oembed_provider.request(url)