facebook、twitter、facebook 登录、whatsapp 分享、微信分享
几个概念
爬虫
所谓爬虫,是一种按照一定的规则,自动地抓取万维网信息的程序或者脚本。
html 元素图谱
对于国外第三方的分享元素图谱,是写在 html 的 head 部分,分为以下几个:
<meta property="og:url" content="http://www.nytimes.com/2015/02/19/arts/international/when-great-minds-dont-think-alike.html" />
<meta property="og:type" content="article" />
<meta property="og:title" content="When Great Minds Don’t Think Alike" />
<meta property="og:description" content="How much does culture influence creative thinking?" />
<meta property="og:image" content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg" />
Tag | Description | 备注 |
---|---|---|
og:url | The canonical URL for your page. This should be the undecorated URL, without session variables, user identifying parameters, or counters. Likes and Shares for this URL will aggregate at this URL. For example, mobile domain URLs should point to the desktop version of the URL as the canonical URL to aggregate Likes and Shares across different versions of the page. | 填写要分享的 url |
og:title | The title of your article without any branding such as your site name. | 分享时展示的卡片的标题 |
og:description | A brief description of the content, usually between 2 and 4 sentences. This will displayed below the title of the post on Facebook. | 分享时展示的卡片的此标题 |
og:image | The URL of the image that appears when someone shares the content to Facebook. See below for more info, and check out our best practices guide to learn how to specify a high |