Method for generating instruction script for visiting websites and visiting method and device
An Internet and instruction technology, applied in the Internet field, can solve cumbersome and other problems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] This embodiment provides a method for generating an instruction script for accessing an Internet site. First, obtain all the execution operations of the user, and extract the information of the website page corresponding to each execution operation, and determine whether there is a DOM item in the user's operation information. Operation, if it is judged to be yes, extract the information of the website page, obtain all operated DOM items through DOM search rules, and obtain the user's execution operation; otherwise, obtain the user's execution operation and its related parameters during execution; loop this process, Process all user operations; sequentially save all user operation information and website page information in the above process, and generate command scripts.
[0043] A method for accessing Internet sites is also provided in this embodiment. Using the above-mentioned generated instruction script, when the user needs to access the website, by directly running...
Embodiment 2
[0055] Another method for generating an instruction script for accessing an Internet site and accessing an Internet site is provided in this embodiment, which can simulate the behavior of a human being to access an Internet site. In this method, a Web browser, or a browser for short, is required. It can be replaced by any browser with a programming interface, browser controls and other programs that do not have a programming interface but implement the HTTP / HTTPS protocol and interact with the returned HTML with the user. The specific steps are as follows, see the flow chart figure 2 :
[0056] (1) Wait for the user to operate. This step is to judge whether the user still has operations and whether the operation has been completed.
[0057] (2) If the user has completed the operation, go to step (10), otherwise go to step (3);
[0058] (3) Determine whether there is an operation on the DOM item in the user operation, if there is no operation on the DOM item, go to step (6), ...
Embodiment 3
[0068] An application example is provided in this embodiment, for example: a certain user likes to read news, likes sports news, but what he pays close attention to most is news related to football in the sports news, there is no direct navigation of football news in the news website, the user needs First open the browser, and then enter the news website to go to the news homepage, select sports in the category to navigate to sports news on the news homepage, and then enter football on this page, so as to obtain football-related sports news. The process takes multiple steps, and the complex process is repeated for each visit.
[0069] The user uses the method for accessing the Internet site among the present embodiment, and the process is as follows:
[0070] First, the user opens the browser to input the URL. Since the webpage is not opened, there is no DOM item at this time, so the user's execution operation is the process of inputting the news URL. The parameter is the inp...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 