A method for obtaining specific information
By establishing a data source judgment system and using image recognition technology, we have solved the difficulty in obtaining information caused by the prohibition of crawling and linking in the existing technology, achieved the acquisition of high-quality information without violating the agreement, and avoided legal disputes.
Patent Information
- Application Number
- CN202111399144.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-11-19
AI Technical Summary
When obtaining information, existing information platforms are faced with the problem of prohibiting crawling and prohibiting third-party links, making it difficult to obtain effective information.
By establishing a data source judgment system, the data source status is dynamically recorded to determine whether crawlers are allowed to obtain or browsers are allowed to view information, and image recognition technology and search engines are used to obtain and provide information without violating the agreement.
It achieves the acquisition and provision of high-quality information content without violating network agreements or copyright agreements, and resolves legal disputes caused by copyright issues on traditional information platforms.
Smart Images

Figure CN114117301B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information integration, and mainly to a method for obtaining specific information. Background Art
[0002] When obtaining information sources, the existing information platforms follow the principle of complying with the website's robots protocol, user agreement, anti-crawling status related statements and requirements. For information platforms, it is necessary to increase the attractiveness of information and user stickiness. Many good articles have anti-crawling settings, or prohibit crawlers from crawling or prohibiting links to website information in the user agreement, which poses a challenge to information platforms in obtaining good information. Summary of the invention
[0003] Purpose of the invention: The present invention provides a method for obtaining specific information, which solves the problem of how to obtain valid information when the information data source is prohibited from crawling or third-party links.
[0004] Technical solution: To achieve the above purpose, the technical solution adopted by the present invention is:
[0005] A method for obtaining specific information comprises the following steps:
[0006] Step S1, the system platform establishes a data source judgment system;
[0007] The data source judgment system includes a data source status table, in which each source of information to be obtained is dynamically recorded, and the recorded information includes the data robots protocol, whether the data source is anti-crawling, whether the "spider" program is prohibited in the user agreement, and whether the data source prohibits third-party links; when the system platform obtains a piece of information, it first obtains the information source information, and judges through the data source judgment system to confirm the data source status;
[0008] Step S2: When the data source judgment system judges that the data source allows the crawler to be used directly to obtain information, the crawler code is written to obtain relevant target information in the data source; when the data source does not allow the crawler to be used directly to obtain information, the data source judgment system continues to judge whether the data source allows the relevant information to be viewed through the browser;
[0009] Step S3, when the data source judgment system determines that the data source allows the relevant information to be viewed through the browser, a key-press wizard-like program is written to use the browser to browse the relevant information, and a screenshot tool is used to take screenshots of the required information; all screenshots are submitted to a third-party interface for identification, and the identification results are used as the final required information; when the data source judgment system determines that the data source does not allow the relevant information to be viewed through the browser, the data source is placed in a backup data source library, and the data source status is dynamically monitored and determined;
[0010] Step S4: When the data source determination system determines that the data source allows third-party links, the system platform will directly provide the data source to the user in the form of third-party links; when the data source determination system determines that the data source does not allow third-party links, the system platform operates as follows:
[0011] Step S4.1: When the same information as the information to be linked already exists in the database of the system platform and the information supports third-party links, the system platform directly links the information as a new replacement link;
[0012] Step S4.2: When the information identical to the information to be linked does not exist in the database of the system platform, the information title is input into the search engine to find the information identical to the information title; when the identical information is found, the data source status table is queried to check whether the data source of the identical information prohibits third-party links; when the identical information is found and the information data source does not prohibit third-party links; the system platform uses the link as a new replacement link.
[0013] Beneficial effects:
[0014] The present invention aims to obtain and provide high-quality information content without violating the network conventions or related agreements of other platforms by building a system platform including a data source judgment system, after fully reading the various agreements of the data source website, combining existing crawler crawling technology, third-party link technology, image recognition technology and search engines, without violating copyright or other agreements. Compared with the traditional "spider" program that violently obtains content from the network, the method provided by the present invention makes the gray part behind the crawler crawling transparent and reasonable and legal, solving the problem of a series of legal disputes caused by copyright issues of information on traditional information platforms. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flow chart of the specific information acquisition method provided by the present invention. DETAILED DESCRIPTION
[0016] The present invention will be further described below in conjunction with the accompanying drawings.
[0017] The specific information acquisition method provided by the present invention comprises the following steps:
[0018] Step S1, the system platform establishes a data source judgment system;
[0019] The data source judgment system includes a data source status table, in which each source of information to be obtained is dynamically recorded, and the recorded information includes the data robots protocol, whether the data source is anti-crawl, whether the "spider" program is prohibited in the user agreement, and whether the data source prohibits third-party links; when the system platform obtains a certain information, it first obtains the information source information, and judges through the data source judgment system to confirm the data source status.
[0020] Step S2, when the data source judgment system determines that the data source allows the direct use of crawlers to obtain information, write crawler code to obtain relevant target information in the data source; when the data source does not allow the direct use of crawlers to obtain information, the data source judgment system continues to determine whether the data source allows viewing relevant information through a browser. The present invention uses a method of simulating human use of a browser to access articles. The specific operation is to use a tool similar to a key wizard to drive the browser to access information on the website, and when accessing, take screenshots of some information. After the screenshot, the text in the picture needs to be recognized, so with the help of a third-party picture recognition interface, the pictures are sent to the interface in sequence, and the interface will return the recognition result of the picture, and return the recognition result to the database of the system platform.
[0021] Step S3: When the data source judgment system judges that the data source does not allow the relevant information to be viewed through the browser, the data source is placed in the backup data source library and the data source status is dynamically monitored and judged. When the data source status meets the above conditions, the above judgment operation is performed on the data source.
[0022] This patent achieves the acquisition of information without the use of a "spider" program by simulating browser access. However, some websites also prohibit links to information on this website. For some system platforms, the system logic is an information distribution service, and the information details are not saved to Aladdin's server. Therefore, it is necessary to access the link to the original server of the information when browsing the text, that is, to establish a link. For these information, it is also hoped that a certain solution can be used to preserve them.
[0023] In the current Internet environment, a piece of high-quality information is rarely published and disseminated on only one platform. Based on this premise, you can find the information article on some websites that do not prohibit other platforms from linking, and then link the information on the system platform. Specifically,
[0024] Step S4: When the data source determination system determines that the data source allows third-party links, the system platform will directly provide the data source to the user in the form of third-party links; when the data source determination system determines that the data source does not allow third-party links, the system platform operates as follows:
[0025] Step S4.1: When the same information as the information to be linked already exists in the database of the system platform and the information supports third-party links, the system platform directly links the information as a new replacement link;
[0026] Step S4.2: When the information identical to the information to be linked does not exist in the database of the system platform, the information title is input into the search engine to find the information identical to the information title; when the identical information is found, the data source status table is queried to check whether the data source of the identical information prohibits third-party links; when the identical information is found and the information data source does not prohibit third-party links; the system platform uses the link as a new replacement link.
[0027] Through the above steps, the present invention realizes the acquisition of information on the prohibition of using "spider" programs in the network, and prohibits third-party links in certain platforms through search engines.
[0028] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for obtaining specific information, characterized in that: The following steps are involved: Step S1, the system platform establishes a data source judgment system; The data source judgment system includes a data source status table, in which each source of information to be acquired is dynamically recorded, and the recorded information includes data robots protocol, whether the data source is anti-crawling, whether the "spider" program is prohibited in the user agreement, and whether the data source prohibits third-party links; When the system platform obtains a piece of information, it first obtains the information of the data source of the information, and then uses the data source judgment system to determine the status of the data source; Step S2: When the data source determination system determines that the data source allows the crawler to be used directly to obtain information, a crawler code is written to obtain relevant target information in the data source; When the data source does not allow the use of a crawler to directly obtain information, the data source determination system continues to determine whether the data source allows the relevant information to be viewed through a browser; Step S3, when the data source determination system determines that the data source allows the relevant information to be viewed through the browser, a keystroke wizard-like program is written to use the browser to browse the relevant information, and a screenshot tool is used to take screenshots of the required information; all screenshots are submitted to a third-party interface for recognition, and the recognition results are used as the final required information; When the data source judgment system judges that the data source does not allow the relevant information to be viewed through the browser, the data source is placed in the backup data source library, and the data source status is dynamically monitored and judged; Step S4: When the data source determination system determines that the data source allows third-party links, the system platform will directly provide the data source to the user in the form of third-party links; when the data source determination system determines that the data source does not allow third-party links, the system platform operates as follows: Step S4.1: When the same information as the information to be linked already exists in the database of the system platform and the information supports third-party links, the system platform directly links the information as a new replacement link; Step S4.2: When the information identical to the information to be linked does not exist in the database of the system platform, the title of the information is input into the search engine to find the information identical to the title of the information; when the identical information is found, the data source status table is queried to check whether the data source of the identical information prohibits third-party linking; When the same information is found and the information data source does not prohibit third-party links, the system platform will use the link as a new replacement link.
