CN113742610A - Method, device and storage medium for positioning webpage content - Google Patents

Method, device and storage medium for positioning webpage content Download PDF

Info

Publication number
CN113742610A
CN113742610A CN202010487138.4A CN202010487138A CN113742610A CN 113742610 A CN113742610 A CN 113742610A CN 202010487138 A CN202010487138 A CN 202010487138A CN 113742610 A CN113742610 A CN 113742610A
Authority
CN
China
Prior art keywords
anchor
anchor point
webpage
document object
element label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010487138.4A
Other languages
Chinese (zh)
Inventor
姚凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010487138.4A priority Critical patent/CN113742610A/en
Publication of CN113742610A publication Critical patent/CN113742610A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device and a storage medium for positioning webpage content, and particularly relates to the steps of firstly obtaining a document object corresponding to a webpage to be positioned in real time when the webpage to be positioned is loaded, secondly traversing the document object, and searching an element label in the document object, further obtaining position information and text information of the element label when the element label is searched, and finally generating an anchor point and an anchor chain corresponding to the element label based on the position information and the text information, and positioning the element label on the webpage to be positioned based on the anchor point and the anchor chain. According to the embodiment of the application, the anchor points and the anchor chains can still be dynamically generated through the dynamically generated webpage to be positioned under the condition of uncertain titles and contents, the time input cost of manually adding the anchor points and the anchor chains by developers is reduced, the service quick online time is effectively improved, meanwhile, the convenience and operability of a user side are increased, and the user experience is improved.

Description

Method, device and storage medium for positioning webpage content
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, and a storage medium for locating web content.
Background
With the development of modern internet technology, the content of web pages is richer and richer, and longer web pages may cause troubles for browsing of users. For the problem, a click module or a text module for returning to the top is generally arranged below the Web page, and the user can directly return to the top of the current interface after clicking. In addition, a plurality of anchor points and anchor chains can be set statically according to the length of the current page, and when the corresponding anchor chain is clicked, the anchor point is jumped to the anchor point positioning position. However, the problem of single function exists when the click module directly jumps to the top of the interface, and the use requirement cannot be met if the page is long and the elements are complex. In addition, when the number of pages is large and all the contents and titles are dynamically generated, anchor points and anchor chains set statically may not meet dynamic requirements in time. The method reduces the browsing experience of the user.
Disclosure of Invention
The embodiment of the application provides a method for positioning webpage content, which overcomes the problem that the webpage which is dynamically generated cannot be positioned, and improves the browsing experience of a user.
The method comprises the following steps:
when a webpage to be positioned is loaded, acquiring a document object corresponding to the webpage to be positioned in real time;
traversing the document object and retrieving an element tag in the document object;
when the element tag is retrieved, acquiring the position information and the text information of the element tag;
and generating an anchor point and an anchor chain corresponding to the element label based on the position information and the text information, and positioning the element label on the webpage to be positioned based on the anchor point and the anchor chain.
Optionally, the document object is traversed, the document object carrying the anchor identifier is searched for in the document object, and the document object carrying the anchor identifier is determined as the element tag.
Optionally, the anchor point corresponding to the element label is generated based on the text information of the element label, and is displayed at the front end;
generating the anchor chain corresponding to the element label based on the position information of the element label, and associating the anchor chain with the anchor point corresponding to the element label, wherein the position information comprises a horizontal coordinate and a vertical coordinate of the element label on the webpage to be positioned.
Optionally, when the user clicks the anchor point, based on a scroll position and an offset of the tag element included in the anchor chain corresponding to the anchor point on the web page to be positioned, the element tag corresponding to the anchor point is positioned on the web page to be positioned.
In another embodiment of the present invention, an apparatus for locating web page content is provided, the apparatus comprising:
the first acquisition module is used for acquiring a document object corresponding to a webpage to be positioned in real time when the webpage to be positioned is loaded;
a retrieval module for traversing the document object and retrieving an element tag in the document object;
the second acquisition module is used for acquiring the position information and the text information of the element tag when the element tag is retrieved;
and the generating module is used for generating an anchor point and an anchor chain corresponding to the element label based on the position information and the text information, and positioning the element label on the webpage to be positioned based on the anchor point and the anchor chain.
Optionally, the retrieval module is configured to:
and traversing the document object, searching the document object carrying the anchor point identification in the document object, and determining the document object carrying the anchor point identification as the element label.
Optionally, the generating module includes:
the display unit is used for generating the anchor point corresponding to the element label based on the text information of the element label and displaying the anchor point at the front end;
and the association unit is used for generating the anchor chain corresponding to the element label based on the position information of the element label and associating the anchor chain with the anchor point corresponding to the element label, wherein the position information comprises a horizontal coordinate and a vertical coordinate of the element label on the webpage to be positioned.
Optionally, the generating module further includes:
and the positioning unit is used for positioning the element label corresponding to the anchor point on the webpage to be positioned based on the rolling position and the offset of the label element contained in the anchor chain corresponding to the anchor point on the webpage to be positioned.
In another embodiment of the invention, a non-transitory computer readable storage medium is provided, storing instructions that, when executed by a processor, cause the processor to perform the steps of one of the above-described methods of locating web content.
In another embodiment of the present invention, a terminal device is provided, which includes a processor configured to execute the steps of the method for locating web page content.
Based on the embodiment, firstly, when the webpage to be positioned is loaded, the document object corresponding to the webpage to be positioned is obtained in real time, secondly, the document object is traversed, the element tag is searched in the document object, furthermore, when the element tag is searched, the position information and the text information of the element tag are obtained, finally, the anchor point and the anchor chain corresponding to the element tag are generated based on the position information and the text information, and the element tag on the webpage to be positioned is positioned based on the anchor point and the anchor chain. According to the embodiment of the application, the anchor points and the anchor chains can still be dynamically generated through the dynamically generated webpage to be positioned under the condition of uncertain titles and contents, the time input cost of manually adding the anchor points and the anchor chains by developers is reduced, the service quick online time is effectively improved, meanwhile, the convenience and operability of a user side are increased, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart illustrating a method for locating web page content according to an embodiment 100 of the present application;
fig. 2 is a schematic diagram illustrating a specific flow of a method for locating web page content according to an embodiment 200 of the present application;
fig. 3 is a schematic diagram illustrating an apparatus for locating web content according to an embodiment 300 of the present application;
fig. 4 shows a schematic diagram of a terminal device provided in embodiment 400 of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
Based on the problems in the prior art, the embodiment of the application provides a method for positioning webpage content, which is mainly applicable to the technical field of electronic commerce. The method for locating the webpage content is realized by searching element tags capable of generating anchor points and anchor chains on a webpage generated in real time, presenting the generated anchor chains in a list mode for the anchor points and anchor chains in the webpage generated dynamically, and quickly jumping to the anchor points of different modules in the webpage by clicking the anchor chains by a user. Several of the following embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Fig. 1 is a schematic flowchart of a method for locating web page content according to an embodiment 100 of the present application. The detailed steps are as follows:
and S11, acquiring the document object corresponding to the webpage to be positioned in real time when the webpage to be positioned is loaded.
In this step, the Web page to be located may be a Web page that is arbitrarily clicked by the user. And when the webpage to be positioned is loaded, acquiring the document object on the dynamically generated or displayed webpage to be positioned. When a webpage to be positioned is created and loaded to a browser, a hypertext Markup Language (HTML) or an Extensible Markup Language (XML) corresponding to the webpage to be positioned is processed, then a document object corresponding to the webpage to be positioned is generated after the HTML or the XML is analyzed, and the document object is operated to realize the operation of the webpage to be positioned.
S12, the document object is traversed and the element tags are retrieved from the document object.
In this step, the document object is traversed in the web page to be located, for example, a corresponding element tag is retrieved from the document object based on a set JavaScript function. Wherein the element tag is a document object that can subsequently generate an anchor point and an anchor chain.
S13, when the element tag is retrieved, the position information and the text information of the element tag are acquired.
In this step, when a document object that can generate an anchor point and an anchor chain is retrieved, the document object is used as an element tag, and position information and text information of the element tag in a webpage to be positioned are acquired. The position information comprises the abscissa and the ordinate of the element label in the webpage to be positioned, and the text information comprises the label information of the label object.
And S14, generating an anchor point and an anchor chain corresponding to the element label based on the position information and the text information, and positioning the element label on the web page to be positioned based on the anchor point and the anchor chain.
In this step, the anchor point is used as one of the hyperlinks in the webpage making, and the hyperlink in the page can be quickly positioned. Tags can be set in the web page using anchors and further links named with these anchors, i.e., anchor chains, can be created to quickly bring the visitor to a specified location by clicking on the anchor chain. The anchor point can be named by using the text information corresponding to the element label, and can be arranged at the position or the top of a specific theme of the webpage to be positioned. And generating a corresponding anchor chain based on the position information of the element label, and associating the anchor chain to an anchor point corresponding to the element label. And positioning the element label on the webpage to be positioned based on the anchor point and the anchor chain.
As described above, based on the above embodiment, first, when the web page to be located is loaded, the document object corresponding to the web page to be located is obtained in real time, then, the document object is traversed, and the element tag is retrieved from the document object, further, when the element tag is retrieved, the position information and the text information of the element tag are obtained, finally, the anchor point and the anchor chain corresponding to the element tag are generated based on the position information and the text information, and the element tag on the web page to be located is located based on the anchor point and the anchor chain. According to the embodiment of the application, the anchor points and the anchor chains can still be dynamically generated through the dynamically generated webpage to be positioned under the condition of uncertain titles and contents, the time input cost of manually adding the anchor points and the anchor chains by developers is reduced, the service quick online time is effectively improved, meanwhile, the convenience and operability of a user side are increased, and the user experience is improved.
Fig. 2 is a schematic diagram illustrating a specific flow of a method for locating web page content according to an embodiment 200 of the present application. Wherein, the detailed process of the specific flow is as follows:
s201, loading a webpage to be positioned.
S202, traversing the document object on the webpage to be positioned.
Here, the web page to be located may be traversed through a JavaScript function. In particular, the JavaScript function is set as a reusable piece of code that is event-driven or executed when it is called. And calling a JavaScript function when the webpage to be positioned is traversed, executing codes in the function at the moment, and executing preset operation in the JavaScript function. And traversing the Dom tree on the webpage to be positioned through a JavaScript function.
S203, determining the document object carrying the anchor point identification as an element label.
Here, the document object is traversed, the document object carrying the anchor identification is found in the document object, and the document object carrying the anchor identification is determined as the element tag. Specifically, the anchor point identifier may be H1-H6 tag information and Title information on the web page to be located, or a preset document object carrying the anchor point identifier. And when the document object carrying the anchor point identification is found, determining the document object as an element tag.
And S204, acquiring the position information and the text information of the element tag.
Here, the position information of the acquired element tag in the web page to be generated includes an abscissa and an ordinate of the element tag on the web page to be positioned. Meanwhile, when the text information of the element tag is obtained, for example, the element tag is H1-H6 tag information and Title information, the Title information of the element tag is obtained.
And S205, generating an anchor point corresponding to the element label based on the text information.
Here, an anchor corresponding to the element tag is generated based on the text information of the element tag, and the anchor is presented at the front end. Specifically, when the element tag is acquired as H1-H6 tag information and Title information, whether the anchor point identifier exists is judged based on H1-H6 tag information and Title text information, the Title information of the element tag is acquired, and generation logic is started until the anchor point is generated.
And S206, generating an anchor chain corresponding to the element label based on the position information.
And generating an anchor chain corresponding to the element label based on the position information of the element label, and associating the anchor chain with an anchor point corresponding to the element label, wherein the position information comprises an abscissa and an ordinate of the element label on the webpage to be positioned.
And S207, displaying the anchor points and the anchor chains at the front end.
Here, the anchor point may be displayed on a front page, and the user locates in the web page to be located through an anchor chain associated with the anchor point by browsing the anchor point and clicking the anchor point. Specifically, each anchor point of the page to be located may form an anchor point list, and the anchor point list may be displayed at the front end. And when the user needs to quickly locate, triggering and displaying the generated anchor chain list by clicking the anchor point. In addition, the list of anchor chains may be set to be hidden or presented in a pop-up layer. The anchor point list can be displayed at the lower right corner of the webpage to be positioned by default, and can also be dragged to a proper position at will according to the needs of a user, and the anchor point list is automatically adsorbed on the closest one of the upper side, the lower side, the left side and the right side according to the dragging of the user.
And S208, positioning the element label on the webpage to be positioned based on the anchor point and the anchor chain.
When the user clicks the anchor point, based on the rolling position and the offset of the label element contained in the anchor chain corresponding to the anchor point on the web page to be positioned, the element label corresponding to the anchor point is positioned on the web page to be positioned. Specifically, the difference between the scroll position scroll of the anchor chain and the offset of the element tag is calculated by comparing the two data to determine the distance that the element tag will slide, the part is divided into several parts according to the actual requirement under the principle that the user feels smooth scroll, and then the movement of each segment is realized by the timer of the system so as to complete the scroll.
The method for positioning the webpage content is realized based on the steps. The method comprises the steps of traversing a document object on a webpage to be positioned through an established JavaScript function after the webpage to be positioned is loaded in real time, retrieving whether the document object is H1-H6 tag information and Title information carrying an anchor point identification, storing retrieved element tags such as H1-H6 tag information and Title information in local localStorage if the document object carrying the anchor point identification is retrieved, reading position information of the element tags stored in the localStorage by establishing and generating the anchor point and an anchor chain, generating the anchor point and the anchor chain by an abscissa xpos coordinate, a text information, an offset value and a scroll value, determining a sliding direction by comparing the offset value and the scroll value, and inserting the generated anchor chain into an anchor chain list elastic layer of the page. Furthermore, based on the steps, the anchor point list floating at the lower right corner of the webpage to be positioned is displayed, the anchor point list is displayed at the lower right corner of the webpage to be positioned by default, and the anchor point list can be dragged to a proper position at will according to the needs of a user. The anchor point list is automatically adsorbed on the closest one of the upper side, the lower side, the left side and the right side according to the dragging of a user and displayed. And displaying the anchor chain list popup when the user clicks the anchor point list. By the method, the anchor points and the anchor chains can still be dynamically generated for the dynamically generated webpage to be positioned under the condition of not determining the title and the content, the time investment cost for manually adding the anchor points and the anchor chains by a developer is reduced, the quick online time of the service is effectively improved, the convenience and the operability of a user side are improved, and the user experience is improved.
Based on the same inventive concept, the embodiment 300 of the present application further provides an apparatus for locating web page content, where as shown in fig. 3, the apparatus includes:
the first obtaining module 31 is configured to obtain, in real time, a document object corresponding to a web page to be located when the web page to be located is loaded;
a retrieval module 32 for traversing the document object and retrieving the element tag in the document object;
a second obtaining module 33, configured to obtain location information and text information of the element tag when the element tag is retrieved;
and the generating module 34 is configured to generate an anchor point and an anchor chain corresponding to the element tag based on the position information and the text information, and locate the element tag on the to-be-located webpage based on the anchor point and the anchor chain.
In this embodiment, specific functions and interaction manners of the first obtaining module 31, the retrieving module 32, the second obtaining module 33 and the generating module 34 may refer to the description of the embodiment corresponding to fig. 1, and are not described herein again.
Optionally, the retrieving module 32 is configured to:
and traversing the document object, searching the document object carrying the anchor point identification in the document object, and determining the document object carrying the anchor point identification as an element label.
Optionally, the generating module 34 includes:
the display unit is used for generating the anchor points corresponding to the element labels based on the text information of the element labels and displaying the anchor points at the front end;
and the association unit is used for generating the anchor chain corresponding to the element label based on the position information of the element label and associating the anchor chain with the anchor point corresponding to the element label, wherein the position information comprises the abscissa and the ordinate of the element label on the webpage to be positioned.
Optionally, the generating module 34 further includes:
and the positioning unit is used for positioning the element label corresponding to the anchor point on the webpage to be positioned based on the rolling position and the offset of the label element contained in the anchor chain corresponding to the anchor point on the webpage to be positioned when the user clicks the anchor point.
As shown in fig. 4, another embodiment 400 of the present application further provides a terminal device, which includes a processor 401, where the processor 401 is configured to execute the steps of the method for locating web content described above. As can also be seen from fig. 4, the terminal device provided by the above embodiment further includes a non-transitory computer readable storage medium 402, the non-transitory computer readable storage medium 402 stores thereon a computer program, which when executed by the processor 401, performs the steps of the above method for locating web content. In practice, the terminal device may be one or more computers, as long as the computer-readable medium and the processor are included.
In particular, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, a FLASH, and the like, and when executed, the computer program on the storage medium can perform the steps of the method for locating web page content. In practical applications, the computer readable medium may be included in the apparatus/device/system described in the above embodiments, or may exist alone without being assembled into the apparatus/device/system. The computer readable storage medium carries one or more programs which, when executed, perform the steps of a method for locating web content as described above.
According to embodiments disclosed herein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example and without limitation: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing, without limiting the scope of the present disclosure. In the embodiments disclosed herein, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures of the present application illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments disclosed herein. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not explicitly recited in the present application. In particular, the features recited in the various embodiments and/or claims of the present application may be combined and/or coupled in various ways, all of which fall within the scope of the present disclosure, without departing from the spirit and teachings of the present application.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can still change or easily conceive of the technical solutions described in the foregoing embodiments or equivalent replacement of some technical features thereof within the technical scope disclosed in the present application; such changes, variations and substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application and are intended to be covered by the appended claims. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for locating web page content, comprising:
when a webpage to be positioned is loaded, acquiring a document object corresponding to the webpage to be positioned in real time;
traversing the document object and retrieving an element tag in the document object;
when the element tag is retrieved, acquiring the position information and the text information of the element tag;
and generating an anchor point and an anchor chain corresponding to the element label based on the position information and the text information, and positioning the element label on the webpage to be positioned based on the anchor point and the anchor chain.
2. The method of claim 1, wherein the step of retrieving the element tag in the document object comprises:
and traversing the document object, searching the document object carrying the anchor point identification in the document object, and determining the document object carrying the anchor point identification as the element label.
3. The method of claim 1, wherein the step of generating anchor points and anchor chains corresponding to the element tags comprises:
generating the anchor point corresponding to the element label based on the text information of the element label, and displaying the anchor point at the front end;
generating the anchor chain corresponding to the element label based on the position information of the element label, and associating the anchor chain with the anchor point corresponding to the element label, wherein the position information comprises a horizontal coordinate and a vertical coordinate of the element label on the webpage to be positioned.
4. The method of claim 1, wherein the step of locating the element tag on the web page to be located based on the anchor point and anchor chain comprises:
when a user clicks the anchor point, based on the scroll position and the offset of the label element contained in the anchor chain corresponding to the anchor point on the webpage to be positioned, the element label corresponding to the anchor point is positioned on the webpage to be positioned.
5. An apparatus for locating web content, the apparatus comprising:
the first acquisition module is used for acquiring a document object corresponding to a webpage to be positioned in real time when the webpage to be positioned is loaded;
a retrieval module for traversing the document object and retrieving an element tag in the document object;
the second acquisition module is used for acquiring the position information and the text information of the element tag when the element tag is retrieved;
and the generating module is used for generating an anchor point and an anchor chain corresponding to the element label based on the position information and the text information, and positioning the element label on the webpage to be positioned based on the anchor point and the anchor chain.
6. The apparatus of claim 5, wherein the retrieval module is configured to:
and traversing the document object, searching the document object carrying the anchor point identification in the document object, and determining the document object carrying the anchor point identification as the element label.
7. The apparatus of claim 5, wherein the generating module comprises:
the display unit is used for generating the anchor point corresponding to the element label based on the text information of the element label and displaying the anchor point at the front end;
and the association unit is used for generating the anchor chain corresponding to the element label based on the position information of the element label and associating the anchor chain with the anchor point corresponding to the element label, wherein the position information comprises a horizontal coordinate and a vertical coordinate of the element label on the webpage to be positioned.
8. The apparatus of claim 5, wherein the generating module further comprises:
and the positioning unit is used for positioning the element label corresponding to the anchor point on the webpage to be positioned based on the rolling position and the offset of the label element contained in the anchor chain corresponding to the anchor point on the webpage to be positioned.
9. A non-transitory computer readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the steps of a method of locating web page content as claimed in any one of claims 1 to 4.
10. A terminal device, characterized in that it comprises a processor for carrying out the steps of a method for locating web content according to any one of claims 1 to 4.
CN202010487138.4A 2020-05-29 2020-05-29 Method, device and storage medium for positioning webpage content Pending CN113742610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010487138.4A CN113742610A (en) 2020-05-29 2020-05-29 Method, device and storage medium for positioning webpage content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010487138.4A CN113742610A (en) 2020-05-29 2020-05-29 Method, device and storage medium for positioning webpage content

Publications (1)

Publication Number Publication Date
CN113742610A true CN113742610A (en) 2021-12-03

Family

ID=78727933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010487138.4A Pending CN113742610A (en) 2020-05-29 2020-05-29 Method, device and storage medium for positioning webpage content

Country Status (1)

Country Link
CN (1) CN113742610A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332965A1 (en) * 2009-06-29 2010-12-30 International Business Machines Corporation Automated configuration of location-specific page anchors
CN104111918A (en) * 2013-04-16 2014-10-22 腾讯科技(北京)有限公司 Barrier-free processing method and barrier-free web page device for web page content
CN104267871A (en) * 2014-09-10 2015-01-07 百度在线网络技术(北京)有限公司 Method for rendering pages and device thereof
CN106951495A (en) * 2017-03-15 2017-07-14 百度在线网络技术(北京)有限公司 Method and apparatus for information to be presented
CN109508438A (en) * 2018-11-23 2019-03-22 四川长虹电器股份有限公司 The implementation method of the dynamic anchor point of event is rolled based on vue
US20190384802A1 (en) * 2018-05-31 2019-12-19 Brightedge Technologies, Inc. Dynamic Configurability of Web Pages Including Anchor Text

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332965A1 (en) * 2009-06-29 2010-12-30 International Business Machines Corporation Automated configuration of location-specific page anchors
CN104111918A (en) * 2013-04-16 2014-10-22 腾讯科技(北京)有限公司 Barrier-free processing method and barrier-free web page device for web page content
CN104267871A (en) * 2014-09-10 2015-01-07 百度在线网络技术(北京)有限公司 Method for rendering pages and device thereof
CN106951495A (en) * 2017-03-15 2017-07-14 百度在线网络技术(北京)有限公司 Method and apparatus for information to be presented
US20190384802A1 (en) * 2018-05-31 2019-12-19 Brightedge Technologies, Inc. Dynamic Configurability of Web Pages Including Anchor Text
CN109508438A (en) * 2018-11-23 2019-03-22 四川长虹电器股份有限公司 The implementation method of the dynamic anchor point of event is rolled based on vue

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沈健;: "基于Chrome浏览器的HTML批注技术研究", 电脑编程技巧与维护, no. 20, 18 October 2013 (2013-10-18), pages 56 - 58 *

Similar Documents

Publication Publication Date Title
TWI454941B (en) Automatically instrumenting a set of web documents
US9703462B2 (en) Display-independent recognition of graphical user interface control
CN103810089B (en) Automatically testing gesture-based applications
US8266524B2 (en) Editing a document using a transitory editing surface
KR102047568B1 (en) Measuring web page rendering time
US9600456B2 (en) Automatically performing a web service operation
US9959361B2 (en) Direct navigation through browser address bar
US8281246B2 (en) Travelogue-based contextual map generation
CN103635901A (en) Method for presenting documents using reading list panel
US9405558B2 (en) Display-independent computerized guidance
CN108595697B (en) Webpage integration method, device and system
CN110968822B (en) Page detection method and device, electronic equipment and storage medium
CN105868096A (en) Methods and apparatuses used for displaying web page test result in browser and device
CN111367595B (en) Data processing method, program running method, device and processing equipment
CN105243058A (en) Webpage content translation method and electronic apparatus
CN104077273A (en) Method and device for extracting webpage contents
US9294538B1 (en) Dynamic content injection
US11223663B1 (en) Providing personalized chat communications within portable document format documents
CN107391534B (en) Page display method, page file return method, page display device, page file return device and computer storage medium
CN102902784A (en) Web page classification storage system and method
CN112130908B (en) Method and device for setting user guidance
CN113742610A (en) Method, device and storage medium for positioning webpage content
CN107807993B (en) Method and device for realizing webpage history recording function
JP2012145970A (en) Portlet support system, apparatus, method and program
EP3852032A1 (en) Machine first approach for identifying accessibility, non-compliances, remediation techniques and fixing at run-time

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination