pip install micawber python import micawber def get_link_preview(url): providers = micawber.bootstrap_basic() oembed = providers.request(url) title = oembed.title description = oembed.description thumbnail_url = oembed.thumbnail_url return title, description, thumbnail_url python url = 'https://example.com' title, description, thumbnail_url = get_link_preview(url)


上一篇:
下一篇:
切换中文