Page element collection method and device

The invention discloses a page element collection method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of receiving an acquisition demand for a page, and obtaining a code corresponding to the acquisition demand from a source code...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LIU SHUIQUAN, LIU QINGWEN, GAO YUANYUAN, SUN QISHUN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a page element collection method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of receiving an acquisition demand for a page, and obtaining a code corresponding to the acquisition demand from a source code of the page; starting from the position of the code, acquiring a descendant similar to the grammatical structure of the code and a first descendant of the descendant; and generating an acquisition template based on the code, the descendant and the first descendant, and performing element acquisition on the page by utilizing the acquisition template to obtain page elements. According to the embodiment, code extraction is carried out on the basis of the acquisition requirements to generate the acquisition template, so that the page elements are acquired in batches, and different from a manual one-by-one recording and acquisition mode, the acquisition speed of the page elements is increased, and the acquisition effic