CN101021872A - Method for intercepting page content - Google Patents

Method for intercepting page content Download PDF

Info

Publication number
CN101021872A
CN101021872A CN 200710072861 CN200710072861A CN101021872A CN 101021872 A CN101021872 A CN 101021872A CN 200710072861 CN200710072861 CN 200710072861 CN 200710072861 A CN200710072861 A CN 200710072861A CN 101021872 A CN101021872 A CN 101021872A
Authority
CN
China
Prior art keywords
intercepting
target
web page
page contents
following process
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.)
Granted
Application number
CN 200710072861
Other languages
Chinese (zh)
Other versions
CN100476829C (en
Inventor
林峰
Original Assignee
Shenzhen City Guangmang Science & 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 Shenzhen City Guangmang Science & Technology Co Ltd filed Critical Shenzhen City Guangmang Science & Technology Co Ltd
Priority to CNB2007100728610A priority Critical patent/CN100476829C/en
Publication of CN101021872A publication Critical patent/CN101021872A/en
Application granted granted Critical
Publication of CN100476829C publication Critical patent/CN100476829C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention discloses a method for intercepting web page contents including the following steps: A, a user selects an interception target, B, obtaining its content based on the target, C, storing the obtained web content in a disc, and step B includes the following processes: B1, judging if the interception target in step A includes the unseen part on screen, if not, turning it to step C, otherwise, to the next step, B2, computing and obtaining the web content of the regions in the captured target then turning to step C.

Description

A kind of method for intercepting web page contents
Technical field
The present invention relates to networking technology area, relate in particular to a kind of method for intercepting web page contents.
Background technology
Resource on the network is very abundant, runs into some interested contents through regular meeting when user's browsing page, how these contents is preserved selectively, and is very practical.Now general interception way uses print screen key (print screen) to carry out full frame copy for comprising; Perhaps utilize some tool software such as instant messenger QQ, it has the instrument of intercepting page content, provide the arbitrary region in the current full frame zone is optionally intercepted, but they all can not intercept the content that does not show in the scroll through pages, promptly in the scroll through pages because screen size limitations and temporary transient sightless part can't intercept.In order to obtain the content in the roll screen, adopt repeatedly intercepting often, the method that pieces together is then operated cumbersome like this.
Summary of the invention
The present invention is exactly in order to overcome above deficiency, to have proposed a kind of method for intercepting web page contents, and this method can select be truncated to the web page contents of invisible part in the screen according to the user.
For achieving the above object, method for intercepting web page contents of the present invention comprises the steps: that A, user select to intercept target; B, according to the intercepting target obtain web page contents; C, the web page contents that obtains is saved in disk; Whether the described intercepting target that described step B comprises among following process: B1, the determining step A comprises the invisible part of screen, as not being then to change step C over to, otherwise continues next step; B2, change step C over to after calculating and obtain the web page contents of described intercepting target institute inclusion region.
Wherein, described step B2 comprises following process: B21, calculates and obtain intercepting target screen visible part image and be saved in internal memory; Thereby B22, calculate rotatable next step position of intercepting target and will intercept target and roll and obtain intercepting the invisible part of screen of target; Whether B23, judgement intercepting target can continue to roll, and then preserve image in this way and change B22 over to behind internal memory, otherwise change step C over to.
Described step B21 comprises following process: B211, obtains the area data of intercepting target; B212, the temporary realm identical with the target area, definition one position with size; B213, the screen visible part that will intercept target and temporary realm are got common factor and are upgraded the temporary realm according to the result; B214, obtain temporary realm after the renewal with respect to the position of intercepting target area; The position that corresponding image obtained by the last step in B215, the temporary realm after will upgrading deposits internal memory in.
When described steps A was unit sectional drawing mode, described step B1 also comprised following process: B11, preserves intercepting object element and positional information to an array thereof; B12, obtain intercepting target father's element and positional information thereof and be saved to described array; B13, the elements that aforementioned two steps are preserved are rolled to just in time and can show the position that intercepts object element.
Described step B213 and B22 realize by traveling through described array.
When described steps A was rolling window sectional drawing mode, it comprised following process: A1, the user sectional drawing mode of selecting to roll; A2, to the corresponding page boundary direction automatic rolling page; A3, determine the sectional drawing zone; A4, the html that obtains current web page or body.
When described steps A was rolling window sectional drawing mode, described step B1 also comprised following process: at first preserve intercepting object element and current scrolling positional information thereof; Secondly but object element is rolled to just in time display-object positions of elements.
Method for intercepting web page contents of the present invention can be truncated to the web page contents of the invisible part of screen according to user's selection, thereby has avoided needing an intercepting page content that shields, and has made things convenient for the user.
Feature of the present invention and advantage will be elaborated in conjunction with the accompanying drawings by embodiment.
Description of drawings
Fig. 1 is the process flow diagram of the unit sectional drawing mode of the embodiment of the invention one;
Fig. 2 is the process flow diagram of step S in the embodiment of the invention one flow process;
Fig. 3 is object element and a currentElement regional relation synoptic diagram in the embodiment of the invention one;
Fig. 4 is the process flow diagram of the rolling window sectional drawing mode of the embodiment of the invention two.
Embodiment
The embodiment one of method for intercepting web page contents of the present invention as shown in Figure 1, it is a unit sectional drawing mode.At first, the user selects to enter unit sectional drawing state, determines the sectional drawing unit object.The unit here refers to a specific region on the webpage, and its size does not limit.General webpage all is comprehensively to be made of multiple elements such as picture and literal, be a news column for example in a certain zone of webpage, and in this news column, comprise many headline, when we select a certain headline, the zone of this headline is called a unit, and when we select when the news column, then the zone of this news column is called a unit.Judge whether element can roll after obtaining corresponding web page element according to the residing position of mouse, judge whether promptly that also intercepting target comprises sightless zone, be example for example with above-mentioned news column, the current residing webpage of user position only comprises the part of this news column, at this moment the user has selected this news column as the intercepting target, then at first preserve the element of this news column and display part thereof with respect to the positional information of whole news column in array A, this moment, news column was called as object element.Obtain father's element afterwards, this is because employing is a kind of programming mode of stratification in the webpage programming, can understand this programming mode like this, for example above-mentioned news column is father's element of news bar with respect to the news bar of lower floor, and whole webpage is father's element of news column with respect to news column, certainly actual webpage programming is not certain so corresponding, it not is to be above-mentioned news column that the actual upper strata of possible certain bar headline is pointed to, and the implication that is clearer explanation father element here is meant the upper strata element of selected object element in webpage programming source program.In fact be not only simultaneously the such three-decker of above-mentioned such headline one news column, one webpage, therefore need cycle criterion up to the top layer element that obtains object element yet.The father's element that at every turn obtains in circulation equally also will judge whether to roll and to write down the above-mentioned steps of its element and scrolling position.Travel through array A then, element wherein is rolled to initial position, promptly just in time can the display-object positions of elements, its process as shown in Figure 2, the position by calculating the viewing area and the continuous rollover elements of side-play amount of its initial position are rolled to initial position until element.After this begin to calculate the intercepting zone and preserve image to internal memory, this is comprising following process: the area data of at first obtaining object element, then define a temporary realm B who equals the target area, it has write down the upper left corner coordinate in object element zone and the width and the height in whole zone.Travel through the element among the array A then, whenever traverse one is called currentElement with the element that operates on it.The position relation of itself and object element as shown in Figure 3, from as can be known aforementioned, these elements comprise display part and invisible part.At first get the viewing area of currentElement, this zone and area B are got common factor and the result is updated to area B, the element that at every turn traverses is carried out same renewal operation finish up to traversal.Obtain area B and be saved in the internal memory with respect to the position (can obtain the upper left coordinate conversion of carrying out of area B) in object element zone and with the image in the area B this moment.
Next step zone similarity B, define a temporary realm E, traversal array A, judge whether the element that traverses can roll, then roll in this way, after this operation of zone similarity B is equally brought in constant renewal in area E up to can not find till at least one can carry out the element of next step rolling, owing to be subjected to the restriction of the area size of area E and each currentElement of operating, for a rotatable element, may not in once rolling, finish obtaining of whole element, therefore point to the next position of this element possibly in each operation back by the element pointer F that sets in the rolling program for an element, image is also preserved to internal memory in the zone that calculating this time rolls obtains, and the operation of aforementioned continual renovation area E is carried out in recycle.When traversal array A again can not find after at least one can carry out the element of next step rolling, the image in the internal memory is saved in disk travels through array A then each element is returned to original scrolling position.
Embodiments of the invention as shown in Figure 2, it is a rolling window sectional drawing mode.When the user selects to enter this pattern, judge at first whether mouse is in the position of Webpage borderline region, afterwards to the corresponding page boundary direction automatic rolling page.Determine the sectional drawing zone then, obtain the html of current webpage or body as object element.Html or body are the order in the middle of the webpage programming, are used to define the central element of webpage, and its usage is known by the webpage programming personnel.After this step is basic similar to unit sectional drawing mode, judge at first promptly whether element can roll, preserve object element and current scrolling target position information thereof then, element is rolled to reference position, then similar with unit sectional drawing mode, temporary realm and continuous method for updating are obtained the screen visible part of object element and the position of relative object element is saved in the internal memory by setting up; Calculate then element can carry out next step level that can roll and or the vertical scrolling side-play amount, get minimum value (wide/height of object element is by the object element current display area right side/next object element overall area right side/down this calculating formula is obtained).After this judge whether object element can continue next step rolling, repeat above-mentioned rolling acquisition process in this way, otherwise then explanation has obtained the intercepting target that the user selects fully, at this moment the bitmap in the internal memory is saved on the disk, at last object element is returned to original scrolling position.
Method for intercepting web page contents of the present invention, when unit sectional drawing mode, can obtain the content of the invisible part of screen that comprises in the user selection unit automatically, when rolling window sectional drawing mode, can obtain web page contents according to the continuous roll screen of user's mouse rollovers, thereby get access to the web page contents that a screen can't show fully.Made things convenient for the intercepting of user to web page contents.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (9)

1. a method for intercepting web page contents comprises the steps: that A, user select to intercept target; B, according to the intercepting target obtain web page contents; C, the web page contents that obtains is saved in disk; It is characterized in that whether the described intercepting target that described step B comprises among following process: B1, the determining step A comprises the invisible part of screen, as not being then to change step C over to, otherwise continue next step; B2, change step C over to after calculating and obtain the web page contents of described intercepting target institute inclusion region.
2. method for intercepting web page contents as claimed in claim 1 is characterized in that, described step B2 comprises following process: B21, calculates and obtain intercepting target screen visible part image and be saved in internal memory; Thereby B22, calculate rotatable next step position of intercepting target and will intercept target and roll and obtain intercepting the invisible part of screen of target; Whether B23, judgement intercepting target can continue to roll, and then preserve image in this way and change B22 over to behind internal memory, otherwise change step C over to.
3. method for intercepting web page contents as claimed in claim 2 is characterized in that, described step B21 comprises following process: B211, obtains the area data of intercepting target; B212, the temporary realm identical with the target area, definition one position with size; B213, the screen visible part that will intercept target and temporary realm are got common factor and are upgraded the temporary realm according to the result; B214, obtain temporary realm after the renewal with respect to the position of intercepting target area; The position that corresponding image obtained by the last step in B215, the temporary realm after will upgrading deposits internal memory in.
4. method for intercepting web page contents as claimed in claim 3 is characterized in that, when described steps A was unit sectional drawing mode, described step B1 also comprised following process: B11, preserves intercepting object element and positional information to an array thereof; B12, obtain intercepting target father's element and positional information thereof and be saved to described array; B13, the elements that aforementioned two steps are preserved are rolled to just in time and can show the position that intercepts object element.
5. method for intercepting web page contents as claimed in claim 4 is characterized in that, described step B213 realizes by traveling through described array.
6. method for intercepting web page contents as claimed in claim 1 or 2 is characterized in that, when described steps A was unit sectional drawing mode, described step B1 also comprised following process: B11, preserves intercepting object element and positional information to an array thereof; B12, obtain intercepting target father's element and positional information thereof and be saved to described array; B13, the elements that aforementioned two steps are preserved are rolled to just in time and can show the position that intercepts object element.
7. method for intercepting web page contents as claimed in claim 6 is characterized in that, described step B22 realizes by traveling through described array.
8. as the arbitrary described method for intercepting web page contents of claim 1 to 3, it is characterized in that when described steps A was rolling window sectional drawing mode, it comprised following process: A1, the user sectional drawing mode of selecting to roll; A2, to the corresponding page boundary direction automatic rolling page; A3, determine the sectional drawing zone; A4, the html that obtains current web page or body.
9. method for intercepting web page contents as claimed in claim 8 is characterized in that, described step B1 also comprises following process: at first preserve intercepting object element and current scrolling positional information thereof; Secondly but object element is rolled to just in time display-object positions of elements.
CNB2007100728610A 2007-01-17 2007-01-17 Method for intercepting page content Expired - Fee Related CN100476829C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100728610A CN100476829C (en) 2007-01-17 2007-01-17 Method for intercepting page content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100728610A CN100476829C (en) 2007-01-17 2007-01-17 Method for intercepting page content

Publications (2)

Publication Number Publication Date
CN101021872A true CN101021872A (en) 2007-08-22
CN100476829C CN100476829C (en) 2009-04-08

Family

ID=38709635

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100728610A Expired - Fee Related CN100476829C (en) 2007-01-17 2007-01-17 Method for intercepting page content

Country Status (1)

Country Link
CN (1) CN100476829C (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509256A (en) * 2011-11-17 2012-06-20 厦门游家网络有限公司 Batch adding and screenshot method and device for Flash game
CN102681829A (en) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 Screenshot method, device and communication client
CN103246438A (en) * 2012-02-03 2013-08-14 宏碁股份有限公司 Selection method and system of graphical interface
CN103345506A (en) * 2013-07-03 2013-10-09 云南电网公司 Rapid enterprise-level knowledge-gathering tool based on desktop terminal
CN103365860A (en) * 2012-03-28 2013-10-23 腾讯科技(深圳)有限公司 Method, device and terminal for processing web pages
CN103425384A (en) * 2012-05-22 2013-12-04 北京神州泰岳软件股份有限公司 Method and device for capturing window in screen
CN103793932A (en) * 2014-02-18 2014-05-14 优视科技有限公司 Method and device for storing image and text in mobile terminal browser
CN103927178A (en) * 2014-04-18 2014-07-16 长沙裕邦软件开发有限公司 Picture capturing method and picture capturing device
CN104133683A (en) * 2014-07-31 2014-11-05 上海二三四五网络科技股份有限公司 Screenshot obtaining method and device
CN104461283A (en) * 2014-11-18 2015-03-25 小米科技有限责任公司 Network view screen shooting method and device and electronic device
CN104536658A (en) * 2014-12-12 2015-04-22 天津三星通信技术研究有限公司 Device and method for generating screen shot image in terminal
CN104615343A (en) * 2013-11-04 2015-05-13 中兴通讯股份有限公司 Terminal printscreen method and device
CN105278824A (en) * 2014-07-31 2016-01-27 维沃移动通信有限公司 Screen capturing method of terminal equipment and terminal equipment thereof
CN105373305A (en) * 2015-10-08 2016-03-02 广东欧珀移动通信有限公司 Image interception method and device
WO2016095342A1 (en) * 2014-12-17 2016-06-23 中兴通讯股份有限公司 Screenshot method and device for mobile terminal, and storage medium
CN106385550A (en) * 2016-09-06 2017-02-08 青岛海信移动通信技术股份有限公司 Method and terminal for capturing screen image
CN106610831A (en) * 2015-10-26 2017-05-03 北京国双科技有限公司 Webpage screenshot method and device
CN107562345A (en) * 2017-08-31 2018-01-09 维沃移动通信有限公司 A kind of information storage means and mobile terminal
CN108681428A (en) * 2018-04-04 2018-10-19 四川巧夺天工信息安全智能设备有限公司 A kind of rolling screenshotss method under windows systems
CN110244896A (en) * 2019-06-24 2019-09-17 北京向上一心科技有限公司 Screenshot method, device, controller and storage medium in webpage
CN112579947A (en) * 2019-09-29 2021-03-30 北京国双科技有限公司 Webpage element graph intercepting method and device and electronic equipment

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681829A (en) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 Screenshot method, device and communication client
CN102681829B (en) * 2011-03-16 2016-03-30 阿里巴巴集团控股有限公司 A kind of screenshot method, device and telecommunication customer end
CN102509256A (en) * 2011-11-17 2012-06-20 厦门游家网络有限公司 Batch adding and screenshot method and device for Flash game
CN102509256B (en) * 2011-11-17 2014-07-16 厦门游家网络有限公司 Batch adding and screenshot method and device for Flash game
CN103246438A (en) * 2012-02-03 2013-08-14 宏碁股份有限公司 Selection method and system of graphical interface
CN103365860A (en) * 2012-03-28 2013-10-23 腾讯科技(深圳)有限公司 Method, device and terminal for processing web pages
CN103425384A (en) * 2012-05-22 2013-12-04 北京神州泰岳软件股份有限公司 Method and device for capturing window in screen
CN103425384B (en) * 2012-05-22 2016-08-03 北京神州泰岳软件股份有限公司 The method and apparatus of window in a kind of screen printing
CN103345506A (en) * 2013-07-03 2013-10-09 云南电网公司 Rapid enterprise-level knowledge-gathering tool based on desktop terminal
CN104615343A (en) * 2013-11-04 2015-05-13 中兴通讯股份有限公司 Terminal printscreen method and device
CN103793932A (en) * 2014-02-18 2014-05-14 优视科技有限公司 Method and device for storing image and text in mobile terminal browser
CN103927178A (en) * 2014-04-18 2014-07-16 长沙裕邦软件开发有限公司 Picture capturing method and picture capturing device
CN105278824B (en) * 2014-07-31 2018-06-26 维沃移动通信有限公司 The screenshotss method and its terminal device of a kind of terminal device
CN105278824A (en) * 2014-07-31 2016-01-27 维沃移动通信有限公司 Screen capturing method of terminal equipment and terminal equipment thereof
CN104133683A (en) * 2014-07-31 2014-11-05 上海二三四五网络科技股份有限公司 Screenshot obtaining method and device
CN104461283A (en) * 2014-11-18 2015-03-25 小米科技有限责任公司 Network view screen shooting method and device and electronic device
CN104536658A (en) * 2014-12-12 2015-04-22 天津三星通信技术研究有限公司 Device and method for generating screen shot image in terminal
WO2016095342A1 (en) * 2014-12-17 2016-06-23 中兴通讯股份有限公司 Screenshot method and device for mobile terminal, and storage medium
CN105373305A (en) * 2015-10-08 2016-03-02 广东欧珀移动通信有限公司 Image interception method and device
CN106610831A (en) * 2015-10-26 2017-05-03 北京国双科技有限公司 Webpage screenshot method and device
CN106385550A (en) * 2016-09-06 2017-02-08 青岛海信移动通信技术股份有限公司 Method and terminal for capturing screen image
CN107562345A (en) * 2017-08-31 2018-01-09 维沃移动通信有限公司 A kind of information storage means and mobile terminal
CN108681428A (en) * 2018-04-04 2018-10-19 四川巧夺天工信息安全智能设备有限公司 A kind of rolling screenshotss method under windows systems
CN108681428B (en) * 2018-04-04 2021-01-29 四川巧夺天工信息安全智能设备有限公司 Scrolling screen capture method under windows system
CN110244896A (en) * 2019-06-24 2019-09-17 北京向上一心科技有限公司 Screenshot method, device, controller and storage medium in webpage
CN112579947A (en) * 2019-09-29 2021-03-30 北京国双科技有限公司 Webpage element graph intercepting method and device and electronic equipment

Also Published As

Publication number Publication date
CN100476829C (en) 2009-04-08

Similar Documents

Publication Publication Date Title
CN100476829C (en) Method for intercepting page content
CN100561415C (en) A kind of method and device of adjusting webpage intermediate hurdles frame
CN102662566B (en) Screen content amplification display method and terminal
US20150089355A1 (en) Graphical tile-based layout
US8743150B2 (en) Display processing device and display control method
WO2016150052A1 (en) Method and system for utilizing image to generate link
CN103488411B (en) The method of the switching page and device
US10126912B2 (en) Method, apparatus, and devices for displaying browser navigation page
CN101908076A (en) Page layout self-adaptive method and device
CN103853417A (en) Rolling and pagination display method and device for network dynamic picture
WO2008085799A1 (en) Selecting and manipulating web content
Szcześniak et al. A method for using street view imagery to auto-extract window-to-wall ratios and its relevance for urban-level daylighting and energy simulations
CN104317474A (en) Window switching method and device
AU2019457052B2 (en) Table processing method and apparatus, and intelligent interactive tablet and storage medium
CN110244896A (en) Screenshot method, device, controller and storage medium in webpage
AU2013222958A1 (en) Method and apparatus for object size adjustment on a screen
CN106886511B (en) Network table processing method and device
CN105528217A (en) Partial refreshing method and device based on display list
CN106547454A (en) Display packing and device
CN103176709B (en) A kind of icon file dragging method of desktop mirror image screen and system
CN103150089B (en) Large format graph image thumbnail browses the method with quickly positioning target region
JP2017515241A (en) Element deletion method and apparatus based on touch panel
CN104166741B (en) Web page browsing analysis and processing method and device
CN113204401B (en) Browser rendering method, terminal and storage medium
CN102831605A (en) Method for rapidly visualizing multi-scale image segmentation results for large images

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: JIN GUANGZHE

Free format text: FORMER OWNER: SHENZHEN GUANGMANG TECHNOLOGY SCIENCE CO., LTD.

Effective date: 20090515

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20090515

Address after: Guangdong city of Shenzhen province Futian District Che Kung Temple Tairan Industrial Zone 202 East Room 515

Patentee after: Jin Guangzhe

Address before: Guangdong city of Shenzhen province Futian District Che Kung Temple Tairan Industrial Zone 202 East Room 515

Patentee before: Shenzhen City Guangmang Science & Technology Co., Ltd.

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090408

Termination date: 20100219