CN115905762A - Webpage recording method, device, storage medium and equipment - Google Patents

Webpage recording method, device, storage medium and equipment Download PDF

Info

Publication number
CN115905762A
CN115905762A CN202211446297.5A CN202211446297A CN115905762A CN 115905762 A CN115905762 A CN 115905762A CN 202211446297 A CN202211446297 A CN 202211446297A CN 115905762 A CN115905762 A CN 115905762A
Authority
CN
China
Prior art keywords
recording
target page
webpage
page
webpage address
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
CN202211446297.5A
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.)
Guangzhou Pacific Computer Information Consulting Co ltd
Original Assignee
Guangzhou Pacific Computer Information Consulting 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 Guangzhou Pacific Computer Information Consulting Co ltd filed Critical Guangzhou Pacific Computer Information Consulting Co ltd
Priority to CN202211446297.5A priority Critical patent/CN115905762A/en
Publication of CN115905762A publication Critical patent/CN115905762A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides a webpage recording method, a webpage recording device, a storage medium and equipment, wherein the method comprises the following steps: receiving a recording request and a recorded webpage address; if the recording task is not executed currently, controlling the browser to jump to a target page corresponding to the webpage address; if the first recording element is monitored to appear on the target page, recording the target page; and if the target page recording meets a first preset condition, stopping the target page recording and generating a recording file. The remote control browser skips to a target page corresponding to the webpage address, and automatically controls the target page to start recording and stop recording by monitoring corresponding elements appearing on the target page, so that manual operation is greatly reduced, remote recording can be automatically carried out, and the efficiency of remote recording is improved.

Description

Webpage recording method, device, storage medium and equipment
Technical Field
The invention relates to the technical field of recording, in particular to a webpage recording method, a webpage recording device, a webpage recording storage medium and webpage recording equipment.
Background
In some remote monitoring, in order to completely grasp the specific situation of a browsed webpage, it is necessary to record a screen when a target page corresponding to a specific webpage address is accessed, where recording the screen is also called screen recording or screen recording, which is a technology of acquiring image data in a screen and encoding the image data to obtain a video file.
In the existing screen recording, the recorded content is generally opened manually, then a recording tool is started, and a recording button is clicked to record. However, under the condition of remote monitoring, manual 24-hour duty monitoring cannot be achieved, and the content of a remote screen end cannot be accurately monitored, so that the remote monitoring recording effect is poor, and the method is not suitable for some scenes needing automatic recording.
Disclosure of Invention
Based on the method, the device, the storage medium and the equipment for recording the webpage, the remote recording of the webpage is automatically started or closed by automatically monitoring the corresponding conditions of the webpage, unnecessary manual operation is reduced, and the efficiency of the remote recording is improved.
In a first aspect, the present invention provides a method for recording a web page, including:
receiving a recording request and a recorded webpage address;
if the recording task is not executed currently, controlling the browser to jump to a target page corresponding to the webpage address;
if the first recording element is monitored to appear on the target page, recording the target page;
and if the target page recording meets a first preset condition, stopping the target page recording and generating a recording file.
In a second aspect, the present invention provides a web page recording apparatus, including:
the recording request module is used for receiving a recording request and a recorded webpage address;
the webpage skipping module is used for controlling the browser to skip to a target page corresponding to the webpage address if the recording task is not executed currently;
the recording starting module is used for recording the target page if the situation that a first recording element appears on the target page is monitored;
and the recording ending module is used for stopping the recording of the target page and generating a recording file if the recording of the target page meets a first preset condition.
In a third aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for recording a web page according to any one of the first aspect.
In a fourth aspect, the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to execute any one of the web page recording methods in the first aspect.
The beneficial effects of adopting the above technical scheme are: after receiving the recording request and the webpage address, the remote control browser jumps to a target page corresponding to the webpage address, and automatically controls the target page to start recording and stop recording by monitoring corresponding elements appearing on the target page, so that manual operation is greatly reduced, remote recording can be automatically carried out, and the efficiency of remote recording is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic diagram of a web page recording method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a web page recording apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention. In order to explain the present invention in more detail, the following describes a method, an apparatus, a storage medium, and a device for recording a web page according to the present invention in detail with reference to the accompanying drawings.
In remote monitoring, in order to completely grasp the specific situation of a browsed webpage, screen recording needs to be performed when a target page corresponding to a specific webpage address is accessed. For example, according to some self-media monitoring service requirements, a certain live broadcast room needs to be monitored, and live broadcast contents and barrage comments during main broadcast playing are recorded in an all-around manner; or when some Html 5 animation special effect pages need to be converted into videos, animation effects can be displayed through the Html 5 pages of the remotely recorded web pages.
The embodiment of the application provides a specific application scene of a webpage recording method. The application scenario includes the terminal device provided by the embodiment, the terminal device includes, but is not limited to, a smart phone and a computer device, wherein the computer device may be at least one of a desktop computer, a portable computer, a laptop computer, a tablet computer, and the like. The user operates the terminal device, and the terminal device executes the web page recording method of the present invention, referring to the embodiment of the web page recording method in conjunction with fig. 1.
Step S101: and receiving a recording request and a recorded webpage address.
Specifically, a recording request sent by a service request end and a webpage address required to be recorded are received. The service request terminal can be a live background monitoring terminal or a webpage safety monitoring terminal, and only needs to send out a recording request and a corresponding webpage address.
Step S102: and if the recording task is not executed currently, controlling the browser to jump to a target page corresponding to the webpage address.
Specifically, if the recording task is not executed currently, there is enough space to process the received recording request, so as to control the browser to jump to a target page corresponding to the web page address.
Step S103: and if the first recording element is monitored to appear on the target page, recording the target page.
Wherein the first recording element comprises a start playing element or a continue playing element.
When the monitored target page is a live broadcast page, the element for starting playing can be a character sample in 'live broadcast', and a selenium tool is used for identifying whether the character sample in 'live broadcast' appears in the live broadcast page. And if the fact that the live broadcast page has a 'live broadcast' word is identified, recording the live broadcast page.
Further, when the monitored target page is a non-video page, namely a common browsing page, the first recording element further comprises a loading completion element, and if all elements of the common browsing page are identified to be loaded, the common browsing page is recorded.
Step S104: and if the target page recording meets a first preset condition, stopping the target page recording and generating a recording file.
Wherein, monitoring that the browser picture recording meets a first preset condition comprises: monitoring that the recording time of the target page exceeds a first set threshold; or monitoring that a second recording element appears on the target page, wherein the second recording element comprises a play pause element or a play stop element.
When the monitored target page is a live broadcast page, because live broadcast generally has time regulation, a corresponding first preset threshold value is set according to the time regulation, the live broadcast page is recorded from the beginning of live broadcast, and the recording of the target page is stopped when the recording time exceeds the first preset threshold value, so that a recording file corresponding to the live broadcast page can be generated.
In addition, in order to avoid the situation that the live broadcast page ends in advance, the recording stop of the target page can be controlled by monitoring the second recording element, for example, whether a pause playing element or a stop playing element appears on the live broadcast page or not, specifically, whether a playing button of the live broadcast page is a pause playing attribute or whether a "live broadcast end" appears on the live broadcast page or not is identified, and if the elements are identified, the recording of the target page is stopped, and a recording file is generated. Further, the second recording element further includes a browsing completion element, when the monitored target page is a non-video page, that is, a common browsing page, recording of the target page is stopped when the browsing completion element is monitored, specifically, when the scroll bar of the monitored target page is dragged to reach the bottom, recording of the target page is stopped, and the recording file is generated.
Further, since the present embodiment records the target page corresponding to the web page address, in order to reduce the influence of other factors, before recording the target page, the method further includes:
and judging whether the target page is in a full-screen state or not, and if the target page is not in the full-screen state, starting a full-screen mode of the browser.
In addition, in order to ensure the accuracy of recording the target page in the recording process, after controlling the browser to jump to the target page corresponding to the webpage address, the method further comprises the following steps:
step S201: and judging whether the target page corresponding to the webpage address is empty or not.
Step S202: and if the target page corresponding to the webpage address is empty, returning prompt information of webpage address jump failure to the user.
Step S203: and if the target page corresponding to the webpage address is not empty, monitoring the target page at preset time.
According to the webpage recording method disclosed by the embodiment of the application, after the recording request and the webpage address are received, the remote control browser jumps to the target page corresponding to the webpage address, and automatically controls the target page to start recording and stop recording by monitoring the corresponding elements appearing on the target page, so that manual operation is greatly reduced, the remote recording can be automatically carried out, and the efficiency of the remote recording is improved.
It should be understood that although the various steps in the flowchart of fig. 1 are shown in order, as indicated by the nominal arrows, the steps are not necessarily performed in order, as indicated by the arrows. The steps are not limited to being performed in the exact order described, and may be performed in other orders, unless otherwise indicated herein. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or sub-stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
The above embodiments of the present disclosure describe a web page recording method in detail, and the above method of the present disclosure can be implemented by various types of devices, so the present disclosure also discloses a web page recording apparatus corresponding to the above method, and a detailed description is given below of specific embodiments with reference to fig. 2.
The recording request module 301 is configured to receive a recording request and a recorded web page address.
And the web page skipping module 302 is configured to control the browser to skip to a target page corresponding to the web page address if the recording task is not currently executed.
And a recording starting module 303, configured to record the target page if it is monitored that the first recording element appears in the target page.
And a recording ending module 304, configured to stop recording the target page and generate a recording file if the target page recording meets a first preset condition.
For the specific definition of the web page recording device, reference may be made to the above definition of the method, which is not described herein again. The various modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or be independent from a processor of the terminal device, and can also be stored in a memory of the terminal device in a software form, so that the processor calls and executes operations corresponding to the modules.
In one embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the above-mentioned first aspect web page recording method.
The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable and programmable read only memory), an EPROM (erasable and programmable read only memory), a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer readable storage medium has a storage space for program code for performing any of the method steps of the above-described method. These program codes can be read from or written to one or more computer program products, which can be compressed in a suitable form.
In one embodiment, the present invention provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the web page recording method when executing the computer program.
The computer device includes a memory, a processor, and one or more computer programs, wherein the one or more computer programs may be stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to perform the web page recording method described above.
A processor may include one or more processing cores. The processor, using the various interfaces and lines to connect the various parts throughout the computer device, performs the various functions of the computer device and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in memory, and calling data stored in memory. Alternatively, the processor may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor can integrate one or a combination of a Central Processing Unit (CPU), a Graphic Processing Unit (GPU), a modem and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the above modem may be implemented by a communication chip without being integrated into the processor.
The Memory may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the terminal device in use, and the like.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A webpage recording method is characterized by comprising the following steps:
receiving a recording request and a recorded webpage address;
if the recording task is not executed currently, controlling the browser to jump to a target page corresponding to the webpage address;
if the first recording element is monitored to appear on the target page, recording the target page;
and if the target page recording meets a first preset condition, stopping the target page recording and generating a recording file.
2. The method of claim 1, wherein the first recording element comprises a start playing element or a continue playing element.
3. The method as claimed in claim 1, wherein the step of monitoring that the recording of the browser frame meets a first predetermined condition comprises:
monitoring that the recording time of the target page exceeds a first set threshold;
or monitoring that a second recording element appears on the target page.
4. The method of claim 3, wherein the second recording element comprises a pause element or a stop element.
5. The method for recording a web page according to claim 1, wherein before recording the target page, the method further comprises:
and if the target page is not in the full-screen mode, starting the full-screen mode of the browser.
6. The method for recording web pages according to claim 1, wherein after the controlling the browser jumps to the target page corresponding to the web page address, the method further comprises:
judging whether a target page corresponding to the webpage address is empty or not;
if the target page corresponding to the webpage address is empty, returning prompt information of webpage address jump failure to the user;
and if the target page corresponding to the webpage address is not empty, monitoring the target page at preset time.
7. A web page recording apparatus, comprising:
the recording request module is used for receiving a recording request and a recorded webpage address;
the webpage skipping module is used for controlling the browser to skip to a target page corresponding to the webpage address if the recording task is not executed currently;
the recording starting module is used for recording the target page if the first recording element is monitored to appear on the target page;
and the recording ending module is used for stopping the recording of the target page and generating a recording file if the recording of the target page meets a first preset condition.
8. The web page recording apparatus of claim 7, wherein the first recording element comprises a start play element or a continue play element.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for recording a web page according to any one of claims 1 to 6.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, performs the method of recording a web page according to any one of claims 1 to 6.
CN202211446297.5A 2022-11-18 2022-11-18 Webpage recording method, device, storage medium and equipment Pending CN115905762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211446297.5A CN115905762A (en) 2022-11-18 2022-11-18 Webpage recording method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211446297.5A CN115905762A (en) 2022-11-18 2022-11-18 Webpage recording method, device, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN115905762A true CN115905762A (en) 2023-04-04

Family

ID=86481027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211446297.5A Pending CN115905762A (en) 2022-11-18 2022-11-18 Webpage recording method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN115905762A (en)

Similar Documents

Publication Publication Date Title
US20170366832A1 (en) Video reproduction apparatus, control method thereof, and computer-readable storage medium storing program
CN110704202B (en) Multimedia recording data sharing method and terminal equipment
CN104899039A (en) Method and device for providing screen shooting service in terminal device
CN106131470A (en) A kind of method of video record and mobile terminal
US9374413B2 (en) Client terminal, server, and distributed processing method
WO2020224215A1 (en) Artificial intelligence-based image compression method and apparatus, device, and storage medium
CN109274912B (en) Video recording method, device, medium and computing equipment
CN113207028B (en) History record management method
CN115905762A (en) Webpage recording method, device, storage medium and equipment
CN106470351B (en) Page display method and page display device
CN110798521B (en) File sharing method and device, electronic equipment and storage medium
CN112052146A (en) Page frame rate testing method, application installation file generating method and device
CN102881303A (en) Play method and play device of multimedia file
CN108304169B (en) Implementation method, device and equipment for HTML5 application
CN115952491A (en) Method, device, electronic equipment and medium for hook target function
CN111400137B (en) Storage method and device of monitoring event, mobile terminal and storage medium
CN113535029A (en) Operation recording method, terminal, computer device and computer-readable storage medium
CN108563485B (en) Input panel display method and device
CN113709447A (en) Method and device for detecting playing performance of terminal equipment
CN111093116A (en) Video loading information processing method and device and storage medium
CN111949300A (en) Method and device for upgrading splice plate supported by set top box and set top box
CN111294641B (en) Video playing method, system, device, electronic equipment and readable storage medium
CN112509608B (en) Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
US11907599B2 (en) Information processing method, apparatus, electronic device, and storage medium
CN114599003B (en) Method, device, medium and program product for hot spot connection

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