Automatic webpage collection task sorting method based on URL rule matching
A technology for collecting tasks and rules, applied in the field of big data, can solve problems such as increasing the difficulty of data collection, analysis and statistics, and achieve the effects of improving management capabilities, enhancing throughput and efficiency, and enhancing throughput
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] combined with figure 1 , the present embodiment proposes an automatic sorting method for web page collection tasks based on URL rule matching, which includes three stages: 1) matching rule configuration, 2) task scheduling and arrangement, and 3) hierarchical topic model construction.
[0030] 1) Matching rule configuration stage:
[0031] In the collection task, formulate regular rules for url pattern matching of web page collection tasks, and configure regular rules to be downloaded, regular rules for parsing and regular rules for content extraction according to the stage to which the task belongs.
[0032] At this stage,
[0033] 1.1) When configuring regular rules to be downloaded according to the stage to which the task belongs, use a regular expression to set the url of the link to be downloaded in the matching task queue. The regular download rule takes the task entry url address link as the rule matching mode and formulates according to the entry url link The ...
Embodiment 2
[0049] Based on Embodiment 1, this embodiment proposes an automatic sorting method for webpage collection tasks based on URL rule matching. This method can also set the collection task cycle configuration time, and the collection tasks after startup are sent to the corresponding website task queue in redis , the task scheduling node pulls the collection task from the task queue for segmentation and analysis, writes the task into the kafka download topic, and the collection node downloader obtains the task download link from kafka and downloads the link according to the url of the task website entry. After the download is successful task.
[0050] To sum up, it can be seen that the automatic sorting method of webpage collection tasks based on URL rule matching of the present invention can effectively reduce the scheduling time of collection tasks, realize fully automatic task flow and processing of collection tasks without manual intervention, and enhance task processing at the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
