The invention discloses a quick rule customization method based on python QT and intelligent
algorithm, which relates to the technical field of
web page rule customization. The invention includes inputting URL of a page to be climbed, and loading the page by the
client through the URL. extracting navigation
list items based on
selenium; extracting the body of detail page by intelligent
algorithm;obtaining page element rules from page by js technology and returning to
client; uploading the rules to the
server, and the background crawler performing
crawling according to the rules. The inventionextracts navigation
list items in the page through
selenium and filters out (a) labels whose ordinate is greater than the height of the browser and (a) labels whose abscissa is the same and whose number is less than the reference value. After that, the detailed page text is extracted by intelligent
algorithm, which avoids the problem that the customized
web page rules do not apply to many kinds of complicated
web page rules by manual analysis, and is suitable for customizing web page rules with different websites, so as to improve the efficiency of customizing web page rules.