Webpage crawling method and device based on multiple threads, storage medium and equipment

A multi-threading and threading technology, applied in the field of computer networks, can solve the problems of time-consuming, poor user experience, timely update of unfavorable keywords, etc., to achieve the effect of improving efficiency and reducing workload

Active Publication Date: 2020-07-28
南阳柯丽尔科技有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Keyword explanations can be manually searched through search engines, resulting in poor user experience, especially when there are multiple keywords in one piece of information, switching back and forth between the search engine and the webpage displaying the information is not conducive to user reference, and it is relatively Time-consuming; the explanation of keywords can also be provided by information-providing websites, but the explanations of keywords are maintained by professional websites. Display the explanation of the obtained keywords to the user, causing the websites that provide information to frequently visit professional websites, and it is not conducive to the timely update of the explanation of keywords

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Webpage crawling method and device based on multiple threads, storage medium and equipment
  • Webpage crawling method and device based on multiple threads, storage medium and equipment
  • Webpage crawling method and device based on multiple threads, storage medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0055] Such as figure 1 Shown, in one embodiment, propose a kind of web page crawling method based on multithreading, described method comprises:

[0056] S102. Obtain a plurality of keywords to be crawled from the keyword dictionary, the keyword dictionary includes keywords and valid information;

[0057] Wherein, all the keywords can be obtained from the keyword dictionary, and each of the obtained keywords can be used as a keyword to be crawled; the keyword dic...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a webpage crawling method and device based on multiple threads, a storage medium and equipment. The method comprises the steps of obtaining a plurality of to-be-crawled keywords from a keyword dictionary; determining a link address corresponding to the keyword to be crawled according to the keyword to be crawled; adding a link address corresponding to thekeyword to be crawled into a queue; then, obtaining a link address corresponding to the keyword to be crawled from the queue as a link address to be crawled through each thread crawler of the multi-thread crawler in a multi-thread crawler mode; and according to the to-be-crawled link address, performing webpage crawling and content analysis through each thread crawler to obtain effective information corresponding to the to-be-crawled link address, and updating the effective information of the keyword dictionary according to the effective information corresponding to the to-be-crawled link address. According to the method, manual search is not needed, the situation that the website providing the information frequently accesses the professional website in the peak period of user access is avoided, and the keywords in the webpage of the website providing the information can be updated in time.

Description

technical field [0001] The present invention relates to the technical field of computer networks, in particular to a method, device, storage medium and equipment for crawling webpages based on multithreading. Background technique [0002] With the rapid development of the Internet, more and more people are looking for the information they need on the computer network. The information they find includes many keywords. For example, keywords include professional terms. You need to read the explanation of the keywords to understand the whole information. Keyword explanations can be manually searched through search engines, resulting in poor user experience, especially when there are multiple keywords in one piece of information, switching back and forth between the search engine and the webpage displaying the information is not conducive to user reference, and it is relatively Time-consuming; the explanation of keywords can also be provided by the information-providing website,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/951
CPCG06F16/951Y02D10/00
Inventor 王家祥蓝菊芳吴桐
Owner 南阳柯丽尔科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products