Method for capturing details of title with script function as link
A function and detail technology, applied in the field of JAVA platform, can solve the problem that details cannot be directly captured
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0015] Such as figure 1 Shown, the present invention adopts following steps:
[0016] Step 1. Use the crawler tool to load the URL where the title is located, and obtain the content of the title tag that needs to be crawled on the current page; for example:
[0017] String INFO_URL = "http: / / www.***.com";
[0018] Document doc = JSoupUtil.getConn(INFO_URL).get();
[0019] / / All title element information in the titles tag
[0020] Elements elementsMenu = doc. select("#titles");
[0021] Elements elementsClick = elementsMenu.get(0).getElementsByAttribute("onclick");
[0022] Step 2. Traverse all tags to obtain the JS function in the onclick tag; for example:
[0023] for (Element e : elementsClick) {
[0024] String mainTitle = e. text();
[0025] / / Get the js function content
[0026] String jsClick = e.attr("onclick");
[0027]}
[0028] Step 3: Analyze the source code of the web page where the title is located, obtain the path of the file where the script function i...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com