Dynamic DOM Tree Detection for Web Media Download Filtering
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing browser technologies, such as 'sniffing,' are inadequate for accurately detecting and downloading media files from web pages, often missing dynamic changes, downloading irrelevant content like advertisements, and failing to provide clear file names, leading to reduced user experience and inefficient network usage.
Innovation Solution
A resource downloading method and device that performs dynamic detection on a web page's DOM tree, filters out advertisement data, and prompts users to download relevant media files with clear naming, utilizing real-time detection and advertisement intercepting data to ensure accurate and user-friendly media file acquisition.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If conventional sniffing method is used to detect media files, then downloading capability is provided, but detection accuracy is low leading to missed or false detection
Solution Approach 1:
The patent implements dynamic detection by continuously monitoring the DOM tree during page loading and execution phases. The detection mechanism transitions from static post-loading analysis to dynamic real-time monitoring, adjusting detection timing and scope based on page state changes. This resolves the contradiction by maintaining high detection accuracy while ensuring reliable download of dynamically loaded media files.
Solution Approach 2:
The system employs feedback mechanisms by monitoring detection results and adjusting detection strategies accordingly. When media files are detected during page execution, the system provides feedback to update the download list and notify users. This feedback loop ensures that detection accuracy improves over time while maintaining download reliability through continuous validation.
2Measurement precision
If conventional sniffing detects all URL resources, then comprehensive detection is achieved, but advertisement data is incorrectly included
Solution Approach 1:
The patent extracts and separates advertisement data from legitimate media files by analyzing URL patterns, domain characteristics, and content metadata. The system specifically extracts ad URLs identified through keyword matching and domain blacklisting, then excludes them from the download list. This resolves the contradiction by maintaining comprehensive detection of all media resources while removing harmful advertisement data.
Solution Approach 2:
The system applies different quality filters to different URL resources based on their characteristics. Legitimate media files receive standard detection treatment, while URLs suspicious of being advertisements undergo stricter verification including domain checking, keyword analysis, and user feedback validation. This localized quality control ensures comprehensive detection without including advertisement data.
3Adaptability or versatility
If download list includes all detected files, then user choice is provided, but file identification becomes difficult
Solution Approach 1:
The system performs preliminary file naming and organization before presenting the download list to users. Media files are pre-labeled with descriptive names extracted from page content, metadata, or URL analysis. This preliminary action ensures users have flexible selection capability while maintaining clear file identification, as files are already named meaningfully before user review.
Solution Approach 2:
The patent introduces an intermediary processing layer between detection and user presentation that enriches file information. This intermediary layer extracts meaningful names from various sources (page titles, metadata, URL paths) and attaches them as descriptors to each detected file. This resolves the contradiction by providing both user selection flexibility and clear file identification through enhanced metadata.
Data Source
AI summary
The present invention discloses a resource downloading method and device. The above method includes: performing a dynamic detection on a DOM tree of a web page where resources to be downloaded are located, acquiring a plurality of URL resources; filtering out a part of URL resources corresponding to advertisement data from the plurality of URL resources; and prompting a user to download remaining URL resources after the advertisement data are filtered out. With the technical solution provided by the present invention, a user can acquire media files which the user is interested in from web pages that provide online playing only at will, thereby greatly improving user experience.


