我需要使用 API 密钥来实现和编写脚本。
有谁知道我可以在哪里获得 API 密钥来实现丰富的摘要评级和评论?
您不需要任何 API 密钥即可创建和启用丰富的摘要。只要按照官方指南,一切都应该没问题!
这是网站上每个页面的默认架构。您可以要求某人编写一个 Python 代码来解析您所有页面的数据。解析是这样的:
1。将以下代码复制到之前的所有页面中
2。编写一个Python代码,它将:
从
<title>
标签检索数据并放在下面的模式中
从
<description>
标签检索数据并放在下面的模式中
从
<canonical>
标签检索数据并将架构放在 URL 下方
将路径更改为
logo2.png
(同时更改徽标)
每个 html 页面的架构代码:
<!-- Schema Org Start -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://Your-Website.com/name-of-article.html"
},
"headline": NAME OF THE ARTICLE",
"description": "PUT HERE THE DESCRIPTION OF YOUR ARTICLE.",
"image": "https://Your-Website.com/icon-facebook.jpg",
"author": {
"@type": "Person",
"name": "THE NAME OF THE WEBSITE",
"url": "https://Your-Website.com/despre.html"
},
"publisher": {
"@type": "Organization",
"name": "THE NAME OF THE WEBSITE",
"logo": {
"@type": "ImageObject",
"url": "https://Your-Website.com/creative-studio/img/logo2.png"
}
},
"datePublished": "2022-02-15",
"dateModified": "2022-02-17"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": NAME OF THE ARTICLE",
"image": "https://Your-Website.com/icon-facebook.jpg",
"description": "PUT HERE THE DESCRIPTION OF YOUR ARTICLE.",
"brand": {
"@type": "Brand",
"name": "THE NAME OF THE WEBSITE"
},
"sku": "NFL",
"gtin8": "NFL",
"offers": {
"@type": "Offer",
"url": "https://Your-Website.com/name-of-article.html",
"priceCurrency": "RON",
"price": "0",
"priceValidUntil": "2022-02-15",
"availability": "https://schema.org/OnlineOnly"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"bestRating": "5",
"ratingCount": "55"
},
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": "5",
"bestRating": "5"
},
"author": {"@type": "Person", "name": "THE NAME OF THE WEBSITE"},
"publisher": {"@type": "Organization", "name": "THE NAME OF THE WEBSITE"}
}
}
</script>
<!-- Schema Org Final -->