Briefly introduce the Baidu News Open Protocol XML document production method
黄舟
Release: 2017-03-14 16:06:16
Original
2210 people have browsed it
Open protocol overview
Using this open protocol will bring more traffic to your website!
The "Internet News Open Protocol" is a search engine news source inclusion standard formulated by Baidu NewsSearch. Websites can produce published news content into XML that follows this open protocol. Web pages in the format (independent of the original news release format) are provided for search engine indexing, and the news information released by the website is automatically and timely
Overview of the open protocolUsing this open protocol will bring more traffic to your website! The "Internet News Open Protocol" is the search engine news source inclusion standard formulated by Baidu News Search , the website can produce the published news content into an XML format web page that follows this open protocol (independent of the original news release form) for search engine indexing, and actively and timely inform the Baidu search engine of the news information published by the website. The adoption of the "Internet News Open Protocol" is equivalent to the website's news being subscribed by search engines. Through the platform of Baidu, the world's largest Chinese search engine, netizens will be able to access it in a wider range and with higher frequency. News to your website, thereby bringing potential traffic to your website. Open Protocol is very simple! You can use it easily with our help. Open protocol content The picture below shows a web page in XML format produced in compliance with the "Internet News Open Protocol". The web page lists relevant information about news published by the website in a standard format. XML web page example:
XML tag description: Those marked with an asterisk are required, and those marked without an asterisk are optional. . *<document >——Mark the beginning and end of the entire XML file content. *——Site address. *—— Email of the person in charge. We will contact you at this address when necessary. *date Peri>——Update period, in minutes. Search engines will follow this cycle to access the page, so that the news on the page will appear in Baidu News in a more timely manner. *——Mark the beginning and end of each news information. The mark contains single news information, excluding news topics. *——News title. *——The news URL address corresponds to a single news article one-to-one; if there are multiple URLs for the news in pagination , it is equivalent to multiple news articles. ——News contentIntroduction . *——Complete news text (only contains text, does not include HTML language and other other characters). The purpose of this item is to make the news appear more and more accurately in the search results. *——Relevant picture in the news text, using absolute address. If the news article has no related pictures, it can be empty; if it contains multiple pictures, please reuse this tag. The purpose of this item is to display relevant images of this news article in the search results. <head lineImg>——Headline image produced for news that may become headlines, using absolute address. <key words>——One or more keywords reflecting the subject content of the news, separated by spaces. This item is for reference only, and the search results do not entirely depend on the content in this tag. ——News classification can follow the website’s own classification system, and it is best to use the first-level classification. ——News author, which can be an institution or an individual.
The above is the detailed content of Briefly introduce the Baidu News Open Protocol XML document production method. For more information, please follow other related articles on the PHP Chinese website!
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn