Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Dynamic webpage screenshot method, terminal equipment and storage medium

A technology for dynamic webpages and target webpages, applied in the computer field, can solve problems such as incomplete screenshots, inability to adapt to page height, time-consuming long page screenshots, etc., to achieve the effect of speeding up work efficiency, ensuring reliability and authenticity

Pending Publication Date: 2021-12-17
XIAMEN MEIYA PICO INFORMATION
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. For different types of web pages, the height of the page cannot be adapted
[0006] 2. Batch processing of different types of pages, there are a lot of incomplete screenshots
[0007] 3. Long page screenshots with variable heights are generally time-consuming

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Dynamic webpage screenshot method, terminal equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] When the browser renders the page, the strategy adopted for resources outside the viewport, such as pictures, is to delay loading. When the rendered content is about to enter the viewport, the rendering will be loaded in time. Therefore, it is usually necessary to scroll through the entire page to complete it. Make sure that all resources are loaded and rendered, which will bring a lot of time loss.

[0035] In order to reduce the time loss, the embodiment of the present invention provides a dynamic web page screenshot method. The simulation function of the browser supports setting the height of the viewport. In theory, as long as the height of the viewport is large enough, the content loaded in the page is fully loaded. , especially for pages that are designed to be presented as a whole, it can load and render the complete page at the fastest speed. As for the webpage that is designed to be partially rendered and scrolled to trigger loading and rendered, this embodimen...

Embodiment 2

[0065] The present invention also provides a dynamic web page screenshot terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the present invention is realized when the processor executes the computer program Steps in the above method embodiment of Embodiment 1.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a dynamic webpage screenshot method, terminal equipment and a storage medium, and the method comprises the steps: calling a simulation function interface of a browser, and setting the viewport height as the highest screenshot height of the browser; loading the target webpage until all webpage resources are loaded, and setting the viewport height as the default height of the browser page; scrolling the target webpage to an actual height by using a scroll bar, waiting for rated time until webpage resources are completely loaded, and calling a development tool protocol interface to obtain a current page height of the target webpage; when the current page height is greater than the actual height, setting the actual height as the current page height, and carrying out rolling again; otherwise, setting the viewport height as the actual height of the target webpage; and calling a development tool protocol interface to store the target webpage as a picture. Complete batch screenshot can be quickly performed on most of different webpages, the reliability and authenticity of electronic evidences are guaranteed, and the working efficiency of law enforcement officers is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a dynamic web page screenshot method, a terminal device and a storage medium. Background technique [0002] In recent years, illegal infringements involving webpages have emerged one after another, and webpage screenshots are an important piece of evidence. How to ensure the integrity of screenshots while taking into account the speed of screenshots is a pain point. For a web page, the layout forms are changeable, and the content and interaction presented by the web page are heterogeneous environments that are constantly changing and dynamically changing. The mainstream web page content presentation methods are mainly divided into overall presentation or partial presentation combined with scrolling trigger loading presentation. However, how to quickly and accurately obtain the interception height in a heterogeneous environment is a challenge. [0003] At present, in the proce...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/451G06F3/0484G06F3/0485
CPCG06F9/451G06F3/04855G06F3/0484Y02D10/00
Inventor 李栋梁杜新胜吴松洋黄志炜
Owner XIAMEN MEIYA PICO INFORMATION
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products