CN107784031A - A kind of method and device of multiple web pages sectional drawing - Google Patents

A kind of method and device of multiple web pages sectional drawing Download PDF

Info

Publication number
CN107784031A
CN107784031A CN201610797551.4A CN201610797551A CN107784031A CN 107784031 A CN107784031 A CN 107784031A CN 201610797551 A CN201610797551 A CN 201610797551A CN 107784031 A CN107784031 A CN 107784031A
Authority
CN
China
Prior art keywords
screenshot
url
browser
urls
page
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
CN201610797551.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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201610797551.4A priority Critical patent/CN107784031A/en
Publication of CN107784031A publication Critical patent/CN107784031A/en
Pending legal-status Critical Current

Links

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]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

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 invention discloses a kind of method and device of multiple web pages sectional drawing, it is related to Internet technical field, solves the problems, such as that labor intensive is high during the existing progress multiple web pages sectional drawing using manual type and efficiency is low.The method of the present invention includes:Collect and treat that the URL of the sectional drawing page forms url list;URL in the url list is directed into browser successively and opened;Sectional drawing is carried out to the page corresponding to the URL that opens every time.Present invention is mainly used for carry out sectional drawing preservation to a large amount of account pages comprising business state information.

Description

Method and device for capturing multiple webpages
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for multi-webpage screenshot.
Background
In the internet era, people increasingly use the internet for office work, and when people perform various business exchanges and business contacts with customers through the network, business states in the business exchanges or business contacts are often required to be stored. Since the service is executed on a networked computer, people can save the service state by capturing the service state displayed on the computer screen. For example, when a business is processed, a person needs to log in a business account to execute a corresponding business, account information and a business state are related in an account page, and periodically capturing and storing the screenshot of the account information and the business state in the webpage becomes an important way for confirming business progress and business completion conditions of both parties. Therefore, how to open each account page at a specific moment, capture the image and store the information such as the current business state has important significance for confirming the work of both parties.
However, when the inventor captures a webpage containing account information and a business state, the inventor finds that the existing capture mode can only capture a single webpage in real time. When different state information of a service is displayed on a plurality of web pages or a plurality of services need to be processed simultaneously, a user needs to intercept pictures of the plurality of web pages. However, when capturing pictures of multiple pages, a manual mode is required, and a plurality of people manually operate the capture tool to complete the capture, so that the capturing of multiple web pages is high in labor consumption and low in efficiency.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for multi-web screenshot, and mainly aims to solve the problems of high labor consumption and low efficiency in the conventional manual multi-web screenshot.
According to a first aspect of the present invention, the present invention provides a method for multi-page screenshot, including:
collecting URLs of a page to be captured to form a URL list;
sequentially importing the URLs in the URL list into a browser to be opened;
and carrying out screenshot on the page corresponding to the opened URL each time.
Further, collecting URLs of the page to be captured to form a URL list includes:
manually adding URLs of pages to be captured by a user to form a URL list; or,
recording URLs and page types of logged pages by a browser, and selecting the URLs of pages to be captured from the recorded URLs through a selection function provided by the browser to form a URL list;
when the browser records the URL of the logged-in page, the login state information of the page is recorded at the same time.
Further, before the URLs in the URL list are sequentially imported into a browser to be opened, the method further includes:
setting screenshot starting time according to a preset first time setting rule;
and setting the time interval between screenshots after the screenshot is started according to a preset second time setting rule.
Further, sequentially importing the URLs in the URL list into a browser for opening includes:
timing according to the specified time granularity;
and when the timing reaches the screenshot starting time set by the first time setting rule, sequentially importing the URLs in the URL list into the browser for opening at the time interval set by the second time setting rule.
Further, the method further comprises:
after the screenshot is carried out on the page corresponding to the URL opened each time, naming the screenshot file by a specified number or a name in a specified naming list, and storing the named screenshot file into a specified folder;
repeatedly executing the setting operation: continuing to open the next URL in the ULR list according to a preset sequence, and storing a screenshot file into a specified folder after screenshot is performed on a page corresponding to the opened URL; and ending the operation flow until all the URLs in the URL list are opened, captured and stored with the captured file through the browser.
According to a second aspect of the present invention, the present invention provides an apparatus for multiple web page screenshots, comprising:
the collection unit is used for collecting the URL of the page to be captured to form a URL list;
the processing unit is used for sequentially importing the URLs in the URL list into a browser to be opened;
and the screenshot unit is used for screenshot of the page corresponding to the URL opened each time.
Further, the collecting unit includes:
the first collection module is used for collecting URLs of manually added pages to be captured to form a URL list;
the second collection module is used for recording the URL and the page type of the page logged by the browser; and the second collection module records the login state information of the page when recording the URL of the page logged in by the browser.
Further, the apparatus further comprises:
the first setting unit is used for setting screenshot starting time according to a preset first time setting rule;
and the second setting unit is used for setting the time interval between screenshots after the screenshot is started according to a preset second time setting rule.
Further, the processing unit includes:
the timing module is used for timing according to the specified time granularity;
and the opening module is used for sequentially importing the URLs in the URL list into a browser for opening at a time interval set by a second time setting rule after the timing reaches the screenshot starting time set by the first time setting rule.
Further, the apparatus further comprises:
the saving unit is used for naming the screenshot file by a specified number or a name in a specified naming list after screenshot is carried out on the page corresponding to the URL opened each time, and saving the named screenshot file into a specified folder;
the processing unit, the screenshot unit and the storage unit are used for repeatedly executing the setting operation: continuing to open the next URL in the ULR list according to a preset sequence, and storing a screenshot file into a specified folder after screenshot is performed on a page corresponding to the opened URL; and ending the operation flow until all the URLs in the URL list are opened, captured and stored with the captured file through the browser.
By means of the technical scheme, the method and the device for capturing the screen of the multiple webpages, provided by the embodiment of the invention, utilize the characteristic that the browser can open the URL, store the collected URLs of all pages to be captured in a list form, then sequentially import the URLs in the URL list into the browser to be automatically opened, and capture the screen of the pages after opening the URLs. Through the scheme of the embodiment of the invention, the complicated work that a large number of web pages need to be opened by a plurality of people and the screenshot needs to be performed in a manual mode when the screenshot of a large number of web pages is performed in the prior art is effectively avoided, the function that a browser can quickly open a large number of URLs is fully utilized, the automatic screenshot of the web pages is realized, and the time and the labor for performing the screenshot in a large number are saved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for multiple web page screenshots according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an implementation process of a multi-web screenshot provided in an embodiment of the present invention;
FIG. 3 is a block diagram illustrating an apparatus for multiple screenshot in accordance with an embodiment of the present invention;
fig. 4 shows a block diagram of an apparatus for multiple screenshot in a web page according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
With the popularization of electronic office, the business between people and customers is processed on a networked computer. Generally, when a service is processed, people need to log in a service account to execute a corresponding service, and account information and service state information are related in an account page, so that screenshot of the page recorded with the service state information becomes an important way for confirming service progress and service completion conditions of both parties. However, when different status information of a service is displayed on multiple web pages or multiple services need to be processed simultaneously, a user needs to manually capture pictures of multiple pages. Therefore, when too many pages are needed for screenshot, the screenshot process is labor-intensive and inefficient.
Based on the reasons, the embodiment of the invention provides a method for multi-web screenshot, which solves the problems of high labor consumption and low efficiency in multi-web screenshot. As shown in fig. 1, the method includes:
101. and collecting the URL of the page to be captured to form a URL list.
A Uniform Resource Locator (URL) is a compact representation of the location and access method of a Resource available from the internet, and is the address of a standard Resource on the internet. Each file on the internet has a unique URL that contains information indicating the location of the file and how the browser should handle it. In general, a web page corresponds to a URL, and when a screenshot is performed on the web page, the URL needs to be opened to obtain the corresponding web page, and then the screenshot operation can be completed. Therefore, when screenshot needs to be performed on a plurality of pages, a plurality of URLs need to be opened to obtain corresponding pages. For the above reasons, in the scheme of the multi-web-page screenshot provided in the embodiment of the present invention, step 101 needs to be performed to collect URLs of pages to be screenshot to form a URL list, and the URLs of the pages to be screenshot are stored in the form of a list, so that it is ensured that a large number of URLs are sequentially processed through a browser subsequently.
It should be noted that, in the embodiment of the present invention, there may be a variety of options for a collection manner of the URL of the page to be screenshot. For example, the URL of the page to be screenshot may be added or collected by the user, or may be added or collected by the browser.
102. And sequentially importing the URLs in the URL list into a browser to be opened.
When the screenshot operation is performed on the webpage, firstly, the URL needs to be opened to obtain the webpage to be screenshot. In the prior art, a URL is opened manually to obtain a corresponding page, and a user performs a screenshot operation to complete screenshot of the page. However, since a large number of URLs are collected in the embodiment of the present invention, it is not suitable to manually open a large number of URLs one by one, and it is also not possible to open a large number of URLs by many people, otherwise, the screenshot efficiency is low and the human resources are wasted. However, based on the browser having the function of opening the URL for displaying the web page, the embodiment of the present invention uses the browser to operate the URLs of a large number of pages to be captured instead of manual operation. In order to facilitate the browser to open a large number of URLs of the page to be screenshot, after the URL list of the page to be screenshot is collected, step 102 needs to be executed to sequentially import the URLs in the URL list into the browser to be opened. The frequency of sequentially importing the URLs in the URL list into the browser can be set according to requirements.
103. And carrying out screenshot on the page corresponding to the opened URL each time.
When the URLs in the URL list of the page to be screenshot are sequentially imported into the browser to be opened, the page obtained by opening the URL each time needs to be screenshot. Since the time required for the browser to perform the screenshot operation is very short, it can be considered that the browser opens a URL and performs screenshot on the page obtained by the URL at the same time. Because the operation of opening the URL and the screenshot of the page by the browser can be automatically executed, when a large number of URLs are faced, the operation efficiency and the accuracy of the browser are greatly higher than those of manual operation.
Ideally, the browser would be able to quickly open a large number of URLs and get the corresponding pages without interruption. However, in an actual situation, when a browser opens a URL to obtain a corresponding page, the browser occupies processing resources of the browser, but the performances of the browsers are different, and when the performances of the browsers are high, a large number of URLs can be quickly opened to obtain the corresponding page; when the performance of the browser is low, if a large number of URLs are opened quickly, the browser is jammed, and therefore a complete page cannot be obtained. Therefore, in step 102, the URLs in the URL list may be sequentially imported into the browser for opening according to a preset time interval. The preset time interval can be determined according to the performance of the browser, and when the performance of the browser is higher, the preset time interval can be set to be lower, so that the browser can open all URLs more quickly and capture corresponding pages of the URLs; when the performance of the browser is low, the preset time interval can be set to be high, so that the situation that the browser is blocked when the URL is opened and cannot obtain a corresponding page is avoided, and screenshot of the page cannot be conducted.
The method for capturing the screen shot of the multiple webpages provided by the embodiment of the invention utilizes the characteristic that the URL can be opened by the browser, saves the collected URLs of all pages to be captured in a list form, then sequentially introduces the URLs in the URL list into the browser to be automatically opened, and captures the pages after the URLs are opened. Through the scheme of the embodiment of the invention, the complicated work that a large number of web pages need to be opened by a plurality of people and the screenshot needs to be performed in a manual mode when the screenshot of a large number of web pages is performed in the prior art is effectively avoided, the function that a browser can quickly open a large number of URLs is fully utilized, the automatic screenshot of the web pages is realized, and the time and the labor for performing the screenshot in a large number are saved.
For better understanding of the method shown in fig. 1, as a refinement and an extension of the above embodiment, the embodiment of the present invention will be described in detail with reference to the steps of fig. 1.
The embodiment of the invention utilizes the function that the browser can quickly open the URL to capture the screenshots of the plurality of webpages. Therefore, before screenshot, the URL of the page to be screenshot needs to be collected to form a URL list. When the URL of the page to be captured is collected, different modes can be adopted for collection. As an optional implementation manner, the embodiment of the present invention may select the URL of the page to be screenshot by the user, and add the selected URL to the URL list, so that the URL of the selected page to be screenshot can be more accurate.
Or, as another optional implementation, the URL of the page to be captured may also be quickly selected from URLs recorded by the browser. In the embodiment, the browser automatically records the URL of the logged page and the page type of the logged page, wherein the page type mainly comprises a business account page and a non-business account page; when the business account page and the non-business account page are determined, judgment can be carried out according to the keyword information contained in the URL or the keyword information contained in the page content. And the browser also provides a selection function for selecting the URL of the page to be captured from the URLs recorded by the browser. In order to quickly obtain the URL of the page to be screenshot from the URL recorded by the browser, the selection function provided by the browser in the embodiment of the present invention is a one-key selection function, and after a specific page type is selected in a pull-down menu of a one-key selection function button (the pull-down menu includes a check box of a business account page and a check box of a non-business account page), the URL of the page to be screenshot can be quickly obtained from the URL recorded by the browser by clicking the one-key selection function button of the browser. For example, the URL and the page type thereof recorded by the browser are divided into a URL of a service account page and a URL of a non-service account page, and when a user selects a service account page in a pull-down menu of a one-key selection function button, the URL of the corresponding service account page can be directly obtained by clicking the one-key selection function button. It should be noted that, for some account pages, it is often necessary to input an account name and/or password to log in. Therefore, when the browser records the URL of the logged-in page, it is also required to record login status information when the page can normally log in, where the login status information includes information corresponding to an account name and/or a password, and the information corresponding to the account name and/or the password is usually information for machine identification, which is transmitted on the machine after being encrypted and converted. When the browser records the URL of the logged page, the login state information of the page is recorded at the same time, and automatic opening and screenshot can be realized on some encrypted account pages.
The existing browser is application software for enabling a user to interactively display files in a website server or a file system, and various functions in the browser are realized based on various controls installed in the browser. Controls are packages of data and methods. Therefore, in order to facilitate the browser to process the URLs of the pages to be captured in order, as an optional implementation manner, the embodiment of the present invention may input the URL data in the URL list into a specific control of the browser for storage, so that when the URL is subsequently opened, each URL in the URL list can be quickly acquired and opened by the browser control.
Although the mode of opening the URL in the URL list by using the browser and capturing the corresponding page of the opened URL is compared with the mode of manually capturing the plurality of web pages by the user, the efficiency and the accuracy of capturing the image can be greatly improved; however, in practical situations, the need for a screenshot is typically at a particular point in time or period of time. For example, the screenshot is taken at zero minutes and zero seconds of the first day of each month. In this case, if the user starts the browser, the browser executes the screen capture operation, and although the screen capture process does not require the user to participate, the start operation is executed by the user. This also causes inconvenience to the user when the start time is special (such as early morning or late night).
Based on the reason, the embodiment of the invention can also time the operation of opening the URL and capturing the image by starting the browser based on the timing function of the browser, so that the problem that the browser can automatically start the image capturing operation when the time of the image capturing operation is special is solved. As shown in fig. 2, an embodiment of the present invention further provides an implementation manner of a multi-web page timed screenshot. In this embodiment, the start time of the screenshot needs to be set before the URLs in the URL list are sequentially imported into the browser and opened. Specifically, the start time of the screenshot may be set according to a preset first time setting rule. The first time setting rule includes various time points that can be set, such as a certain time and a certain minute in a certain month of a certain year, and also includes a cycle setting, such as once per hour, once per day, once per month, and the like. Here, when the start time of the screenshot is set to 0 minute 0 second at 0 month 10 and 0 month 0 year according to the first time setting rule, the purpose of executing the screenshot once per day (starting the browser to open the URL and performing the screenshot at 10 o' clock per day) can be achieved. After the starting time of the screenshot is set, the browser can be automatically started to open the URL in the URL list and capture the screenshot of the obtained page when the browser reaches the starting time of the screenshot in a timing mode.
Although ideally, the browser can continuously open multiple URLs and obtain corresponding multiple pages at an extremely fast speed, the performance of the browser is limited, and a certain amount of time and processing resources are generally consumed when the browser opens the URLs. Although the time for opening a single URL by the browser is short enough to be ignored, if the browser performance is poor, when the browser continuously opens a plurality of URLs, the opened URL may be stuck, and a complete page may not be obtained. Therefore, in practical situations, when the URL in the URL list is opened by the browser, the embodiments of the present invention further need to open the URLs in the URL list in sequence by the browser according to a preset time interval.
Therefore, before the URLs are sequentially imported into the browser to be opened, in addition to setting the start time of the screenshot, the embodiment of the present invention needs to set the time interval between each screenshot after the screenshot is started, that is, the time interval between each URL is imported into the browser, or the time interval between each URL is sequentially opened by the browser. The setting of the time interval can be determined according to the actual performance of the browser, and when the performance of the browser is higher, the time interval can be set to be lower; when the performance of the browser is low, the time interval can be set to be high, and therefore the situation that when the browser continuously opens the URL, the webpage cannot be opened and screen capture is affected is avoided. Specifically, the time interval between screenshots after the screenshot is started can be set according to a preset second time setting rule. Wherein, the second time setting rule is usually in units of seconds, and the number of the specific time can be set to 1 to 2 bits after the decimal point. For example, the set time interval may be 0.50 seconds, that is, a URL is imported into the browser to be opened every 0.50 seconds. The setting of the time interval in the embodiment of the present invention is not particularly limited.
In order to achieve the purpose of capturing the screen at regular time of multiple webpages, the embodiment of the invention can start the screen capturing function of the browser after the starting time of the screen capturing and the time interval between each time of screen capturing after the screen capturing is started are set, the browser opens the URLs in the URL list of the page to be captured according to the preset time interval in sequence, and immediately captures the page corresponding to the opened URL after one URL is opened each time. Specifically, a timing function of the browser or a timer of the browser needs to be called, timing is performed according to the specified time granularity, the current timing time is displayed, and after the timing time reaches the set starting time, the browser is started to sequentially open the URLs in the URL list. The granularity of the time counted by the browser is usually increased by taking seconds as a unit, that is, the current time for displaying the time is increased by taking seconds as a unit; of course, the granularity of the timing time may also increase in minutes or hours.
It should be noted here that when the time granularity of timing is increased by taking seconds as a unit, the start time of the screenshot can be accurate to seconds, for example, the screenshot is started in 15 hours, 30 minutes and 25 seconds; when the granularity of the timed time increases in units of minutes or hours, the start time of the screenshot can be accurate to minutes or hours, such as starting the screenshot at 12 minutes and 20 minutes or starting the screenshot at 10 minutes.
And when the timing reaches the starting time of the screenshot, the browser opens the URLs in the URL list in sequence according to a preset time interval, and after the screenshot is carried out on the page corresponding to the opened URL each time, a large number of screenshot files can be obtained. Since these screenshot files are important files in which various information is recorded for the user, the screenshot files need to be stored properly. For the above reasons, in the embodiment of the present invention, after the browser captures the screenshot on the page to be captured, the screenshot file needs to be saved in a specific manner. Specifically, the screenshot file may be named in a specific manner, and the named screenshot file may be stored in a designated folder. The naming of the specific mode can be named according to a designated number, the number can be increased progressively by Arabic numbers, the first screenshot file is named as a screenshot file No. 1, the second screenshot file is named as a screenshot file No. 2, and the process is repeated to name the screenshot files corresponding to all URLs in the URL list; or, a naming list may be preset, the naming list has names arranged in sequence, the screenshot file is named corresponding to the names in the naming list, and the first name in the naming list is used as the name of the first screenshot file. After the screenshot file is named in the above manner, the named screenshot file can be stored in a designated folder, and the designated folder can be named according to the type of the screenshot file, for example, the name of the designated folder is named as a "business account page screenshot file", and a plurality of screenshot files recorded with business state information can be obtained from the designated folder.
In the embodiment of the present invention, for each URL in the URL list of the page to be captured, a string of continuous operations needs to be performed, that is, the setting operation in the embodiment of the present invention: namely, the URL is imported into a browser for opening and screenshot, and the screenshot file is saved. Therefore, after the multi-web-page screenshot is started, the browser is required to repeatedly execute the setting operation, the rest URLs in the URL list are respectively opened, screenshot and stored according to the preset sequence (the arrangement sequence of the URLs in the list or the random sequence), and the flow of the multi-web-page screenshot is ended after all the URLs in the URL list are screenshot and the screenshot file is stored through multiple cycles.
The embodiment of the invention carries out timed screenshot according to the set time, a browser control sequentially opens a large number of URLs at preset time intervals and stores the URLs as the picture files with designated names at designated positions, thereby realizing the timed screenshot archiving of a plurality of webpages, saving a large amount of time and manpower, and simultaneously, repeatedly carrying out the set operation (importing the URLs into the browser for opening, screenshot and storing the screenshot files) through the browser until all the URLs in a URL list are screenshot and the screenshot files are stored, and then ending the flow of multi-webpage screenshot, thereby realizing the automation of timed webpage screenshot.
As an implementation of the method shown in fig. 1, an embodiment of the present invention provides a device for multiple web page screenshots, where as shown in fig. 3, the device includes: a collecting unit 31, a processing unit 32 and a screenshot unit 33, wherein,
the collecting unit 31 is used for collecting the URLs of the pages to be captured to form a URL list;
the processing unit 32 is configured to sequentially import the URLs in the URL list into a browser to be opened;
and the screenshot unit 33 is configured to capture a screenshot of a page corresponding to each opened URL.
Further, as shown in fig. 4, the collecting unit 31 includes:
the first collecting module 311 is configured to collect URLs of manually added pages to be screenshot to form a URL list;
a second collecting module 312, configured to record a URL of a page logged in by a browser and a page type of the page; the second collecting module 312 records the login status information of the page when recording the URL of the page that the browser has logged in.
Further, as shown in fig. 4, the apparatus further includes:
a first setting unit 34, configured to set screenshot starting time according to a preset first time setting rule;
and a second setting unit 35, configured to set a time interval between screenshots each time after the screenshot is started according to a preset second time setting rule.
Further, as shown in fig. 4, the processing unit 32 includes:
a timing module 321, configured to time according to a specified time granularity;
and the opening module 322 is configured to, after the time reaches the screenshot starting time set by the first time setting rule, sequentially import the URLs in the URL list into the browser for opening at a time interval set by the second time setting rule.
Further, as shown in fig. 4, the apparatus further includes:
a saving unit 36, configured to name the screenshot file with a specified number or a name in a specified naming list after screenshot is performed on a page corresponding to each opened URL, and save the named screenshot file in a specified folder;
the processing unit, the screenshot unit and the storage unit are used for repeatedly executing the setting operation: continuing to open the next URL in the ULR list according to a preset sequence, and storing a screenshot file into a specified folder after screenshot is performed on a page corresponding to the opened URL; and ending the operation flow until all the URLs in the URL list are opened, captured and stored with the captured file through the browser.
The device for capturing the screen shot of the multiple webpages provided by the embodiment of the invention utilizes the characteristic that the URL can be opened by the browser, stores the collected URLs of all pages to be captured in a list form, then sequentially introduces the URLs in the URL list into the browser to be automatically opened, and immediately captures the pages after the URLs are opened. Through the scheme of the embodiment of the invention, the complicated work that a large number of web pages need to be opened by a plurality of people and the screenshot needs to be performed in a manual mode when the screenshot of a large number of web pages is performed in the prior art is effectively avoided, the function that a browser can quickly open a large number of URLs is fully utilized, the automatic screenshot of the web pages is realized, and the time and the labor for performing the screenshot in a large number are saved.
The device for capturing the screen of the multiple webpages can capture the screen at regular time according to set time, a large number of URLs are sequentially opened by the browser control at preset time intervals, and the URL is stored as a picture file with an appointed name at an appointed position, so that the regular screen capturing of the multiple webpages is archived, and a large amount of time and labor are saved; meanwhile, the browser repeatedly executes the setting operation (the URL is imported into the browser for opening, screenshot and storing the screenshot file) until all the URLs in the URL list are opened, screenshot and the screenshot file is stored through the browser, and then the operation flow is ended, so that the automation of timed webpage screenshot is realized.
The device for capturing the multiple webpages comprises a processor and a memory, wherein the collecting unit 31, the processing unit 32, the capturing unit 33, the first setting unit 34, the second setting unit 35 and the saving unit 36 are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. One or more than one kernel can be set, and the problems of high labor consumption and low efficiency in multi-webpage screenshot are solved by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: collecting URLs of a page to be captured to form a URL list; sequentially importing the URLs in the URL list into a browser to be opened; and carrying out screenshot on the page corresponding to the opened URL each time.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for multi-web screenshot, the method comprising:
collecting URLs of a page to be captured to form a URL list;
sequentially importing the URLs in the URL list into a browser to be opened;
and carrying out screenshot on the page corresponding to the opened URL each time.
2. The method of claim 1, wherein collecting the URLs of the pages to be screenshot to form a URL list comprises:
manually adding URLs of pages to be captured by a user to form a URL list; or,
recording URLs and page types of logged pages by a browser, and selecting the URLs of pages to be captured from the recorded URLs through a selection function provided by the browser to form a URL list;
when the browser records the URL of the logged-in page, the login state information of the page is recorded at the same time.
3. The method according to claim 1, wherein before the URLs in the URL list are sequentially imported into a browser and opened, the method further comprises:
setting screenshot starting time according to a preset first time setting rule;
and setting the time interval between screenshots after the screenshot is started according to a preset second time setting rule.
4. The method of claim 3, wherein sequentially importing the URLs in the URL list into a browser for opening comprises:
timing according to the specified time granularity;
and when the timing reaches the screenshot starting time set by the first time setting rule, sequentially importing the URLs in the URL list into the browser for opening at the time interval set by the second time setting rule.
5. The method according to any one of claims 1-4, further comprising:
after the screenshot is carried out on the page corresponding to the URL opened each time, naming the screenshot file by a specified number or a name in a specified naming list, and storing the named screenshot file into a specified folder;
repeatedly executing the setting operation: continuing to open the next URL in the ULR list according to a preset sequence, and storing a screenshot file into a specified folder after screenshot is performed on a page corresponding to the opened URL; and ending the operation flow until all the URLs in the URL list are opened, captured and stored with the captured file through the browser.
6. An apparatus for multi-page screenshot, the apparatus comprising:
the collection unit is used for collecting the URL of the page to be captured to form a URL list;
the processing unit is used for sequentially importing the URLs in the URL list into a browser to be opened;
and the screenshot unit is used for screenshot of the page corresponding to the URL opened each time.
7. The apparatus of claim 7, wherein the collection unit comprises:
the first collection module is used for collecting URLs of manually added pages to be captured to form a URL list;
the second collection module is used for recording the URL and the page type of the page logged by the browser; and the second collection module records the login state information of the page when recording the URL of the page logged in by the browser.
8. The apparatus of claim 6, further comprising:
the first setting unit is used for setting screenshot starting time according to a preset first time setting rule;
and the second setting unit is used for setting the time interval between screenshots after the screenshot is started according to a preset second time setting rule.
9. The apparatus of claim 8, wherein the processing unit comprises:
the timing module is used for timing according to the specified time granularity;
and the opening module is used for sequentially importing the URLs in the URL list into a browser for opening at a time interval set by a second time setting rule after the timing reaches the screenshot starting time set by the first time setting rule.
10. The apparatus according to any one of claims 6-9, further comprising:
the saving unit is used for naming the screenshot file by a specified number or a name in a specified naming list after screenshot is carried out on the page corresponding to the URL opened each time, and saving the named screenshot file into a specified folder;
the processing unit, the screenshot unit and the storage unit are used for repeatedly executing the setting operation: continuing to open the next URL in the ULR list according to a preset sequence, and storing a screenshot file into a specified folder after screenshot is performed on a page corresponding to the opened URL; and ending the operation flow until all the URLs in the URL list are opened, captured and stored with the captured file through the browser.
CN201610797551.4A 2016-08-31 2016-08-31 A kind of method and device of multiple web pages sectional drawing Pending CN107784031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610797551.4A CN107784031A (en) 2016-08-31 2016-08-31 A kind of method and device of multiple web pages sectional drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610797551.4A CN107784031A (en) 2016-08-31 2016-08-31 A kind of method and device of multiple web pages sectional drawing

Publications (1)

Publication Number Publication Date
CN107784031A true CN107784031A (en) 2018-03-09

Family

ID=61451771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610797551.4A Pending CN107784031A (en) 2016-08-31 2016-08-31 A kind of method and device of multiple web pages sectional drawing

Country Status (1)

Country Link
CN (1) CN107784031A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391714A (en) * 2017-07-27 2017-11-24 北京锐安科技有限公司 A kind of screenshot method, capture server, sectional drawing service system and medium
CN110618846A (en) * 2018-06-20 2019-12-27 中车株洲电力机车研究所有限公司 Screenshot device, screenshot method, screenshot system, computer-readable storage medium and computer
CN110737861A (en) * 2019-10-24 2020-01-31 北京锐安科技有限公司 webpage data processing method, device, equipment and storage medium
CN110865857A (en) * 2018-08-27 2020-03-06 北京国双科技有限公司 Screenshot method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071438A (en) * 2007-03-26 2007-11-14 腾讯科技(深圳)有限公司 Capture server, distribution server, method and system for generating webpage capture
CN102779123A (en) * 2011-05-09 2012-11-14 腾讯科技(北京)有限公司 Screenshot method and system of website displayed contents
CN103544101A (en) * 2012-07-16 2014-01-29 深圳市世纪光速信息技术有限公司 Wireless platform development automatic test system and method
US20140089108A1 (en) * 2012-05-25 2014-03-27 Brand Enforcement Services Limited Systems and methods for recommended browsing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071438A (en) * 2007-03-26 2007-11-14 腾讯科技(深圳)有限公司 Capture server, distribution server, method and system for generating webpage capture
CN102779123A (en) * 2011-05-09 2012-11-14 腾讯科技(北京)有限公司 Screenshot method and system of website displayed contents
US20140089108A1 (en) * 2012-05-25 2014-03-27 Brand Enforcement Services Limited Systems and methods for recommended browsing
CN103544101A (en) * 2012-07-16 2014-01-29 深圳市世纪光速信息技术有限公司 Wireless platform development automatic test system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391714A (en) * 2017-07-27 2017-11-24 北京锐安科技有限公司 A kind of screenshot method, capture server, sectional drawing service system and medium
CN110618846A (en) * 2018-06-20 2019-12-27 中车株洲电力机车研究所有限公司 Screenshot device, screenshot method, screenshot system, computer-readable storage medium and computer
CN110865857A (en) * 2018-08-27 2020-03-06 北京国双科技有限公司 Screenshot method and device
CN110737861A (en) * 2019-10-24 2020-01-31 北京锐安科技有限公司 webpage data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107463641B (en) System and method for improving access to search results
TWI683251B (en) Interface display method and device
EP2801943A1 (en) A system and method for generating a chronological timesheet
CN107784031A (en) A kind of method and device of multiple web pages sectional drawing
CN109561117B (en) Data acquisition method and device
US9529568B1 (en) Systems and methods for low interference logging and diagnostics
WO2017008744A1 (en) Automation script acquisition method and device, and automation script application method and device
CN114880240B (en) Automatic test system and method for equipment of Internet of things, storage medium and equipment
CN104035991A (en) Display method of news headlines and server for providing news pages
WO2017107679A1 (en) Historical information display method and apparatus
US10193989B2 (en) Visualization of user behavior
CN111258973A (en) Storage and display method, device, equipment and medium of Redis slow log
CN107798408B (en) Conference management method, conference management device, conference management terminal and computer-readable storage medium
CN110737645B (en) Data migration method and system among different systems and related equipment
CN110162563B (en) Data warehousing method and system, electronic equipment and storage medium
CN113518187B (en) Video editing method and device
US10311160B2 (en) Cloud search analytics
WO2017076027A1 (en) Wallpaper processing method and apparatus
CN112306870A (en) Data processing method and device based on live APP
CN112710300A (en) Method and device for switching dial plate of wearable device
CN107704362A (en) A kind of method and device based on Ambari monitoring big data components
CN116821493A (en) Message pushing method, device, computer equipment and storage medium
CN111104384A (en) Data preprocessing method, device, equipment and storage medium
TW201222430A (en) Method for detecting objects and a corresponding control computer
CN112579952B (en) Page display method and device, storage medium and electronic equipment

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
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20180309

RJ01 Rejection of invention patent application after publication