The invention relates to the technical field of webpage advertisement filtering methods, in particular to a webpage advertisement filtering method and device and a storage medium, and the method comprises the following steps: 1, webpage content acquisition and
preliminary analysis: firstly, sending an HTTP request to a target webpage by utilizing a network request
library, acquiring
HTML content of the webpage, and analyzing the
HTML content into a DOM
tree structure; 2,
feature extraction and data preprocessing: firstly performing definition
feature extraction and link
feature extraction, and then preprocessing the data; and step 3, constructing an advertisement feature
library: collecting advertisement samples through multiple channels, wherein the advertisement samples comprise advertisements marked from common advertisement alliance websites, various commercial advertisement putting platforms and
user feedback. After advertisement samples are collected, detailed feature extraction is carried out on each advertisement sample, and the features comprise picture features, link features and text features; according to the invention, the problem that the built-in rule is relatively fixed and cannot be accurately identified and intercepted in the existing advertisement interception method is solved.