抖音卡片是如何生成的?其实抖音是直接抓取html页面的一些信息来生成封面图、主标题、副标题的

代码
[HTML] 纯文本查看 复制代码
|
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
|
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, viewport-fit=cover" /> <link rel="shortcut icon" type="image/x-icon" href="这是封面图URL" /> <meta name="description" content="这是副标题" /> <title>这是主标题</title> <meta property="og:title" content="这是主标题" /> <meta property="og:description" content="这是副标题" /> <meta property="og:url" content="跳转链接" /> <meta property="og:image" content="这是封面图URL" /></head><body> <h1>抖音卡片演示</h1></body></html> |
传到服务器,抖音扫码,分享出去就是卡片!
市面上的外链系统,抖音卡片就是这么生成的。
666
66666
333
6
感谢老哥分享抖音卡片代码
学习了
333
好的
技术教程