CN104035929A - Webpage screenshot method and device - Google Patents

Webpage screenshot method and device Download PDF

Info

Publication number
CN104035929A
CN104035929A CN201310068962.6A CN201310068962A CN104035929A CN 104035929 A CN104035929 A CN 104035929A CN 201310068962 A CN201310068962 A CN 201310068962A CN 104035929 A CN104035929 A CN 104035929A
Authority
CN
China
Prior art keywords
picture
web page
webpage
address
sharing
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
CN201310068962.6A
Other languages
Chinese (zh)
Other versions
CN104035929B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310068962.6A priority Critical patent/CN104035929B/en
Publication of CN104035929A publication Critical patent/CN104035929A/en
Application granted granted Critical
Publication of CN104035929B publication Critical patent/CN104035929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention discloses a webpage screenshot method and device and belongs to the technical field of network technology. The webpage screenshot method comprises receiving a webpage sharing command, wherein the webpage sharing command carries a to-be-shared webpage address and a target sharing address; obtaining a to-be-shared webpage according to the to-be-shared webpage address; generating into a webpage screenshot picture according to the to-be-shared webpage; sending the webpage screenshot picture to a server which is corresponding to the target sharing address to enable the server to display the webpage screenshot picture when the server receives the webpage screenshot picture. According to the webpage screenshot method, the to-be-shared webpage is obtained, the webpage screenshot picture is generated and uploaded to the server which is corresponding to the target sharing address, the webpage screenshot picture is shared to the target sharing address under the condition that user traffic is not consumed, and the operation is simple and convenient.

Description

Webpage capture method and apparatus
Technical field
The present invention relates to networking technology area, particularly a kind of webpage capture method and apparatus.
Background technology
Along with the development of Internet technology and the communication technology, increasing user uses browser browsing page, and in browsing page process, can carry out sectional drawing to webpage according to user's request, and the picture being truncated to is shared as net dish, microblogging etc. by third party's business channel.In the prior art, user can be by using the sectional drawing function that browser client carries to intercept picture, or use sectional drawing software to intercept picture, in the time that user need to share the picture being truncated to third party's business, need to again upload the picture being truncated to corresponding third party's service server.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
When the picture being truncated to is again uploaded to third party's service server by user, not only complex operation, but also need to expend user's flow.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of webpage capture method and apparatus.Described technical scheme is as follows:
First aspect, provides a kind of webpage capture method, and described method comprises:
Receive webpage and share instruction, described webpage is shared instruction and is carried and treat that sharing web page address shares address with target;
According to the described sharing web page address for the treatment of, described in obtaining, treat sharing web page;
According to the described sharing web page for the treatment of, generating web page sectional drawing picture;
Described webpage capture picture is sent to described target and shares server corresponding to address, make described server in the time receiving described webpage capture picture, show described webpage capture picture.
In conjunction with first aspect, in the first possibility implementation of the embodiment of the present invention, according to the described sharing web page for the treatment of, generating web page sectional drawing picture, comprising:
According to default photo resolution and default picture format attribute, treat that to described sharing web page carries out sectional drawing, generate the webpage capture picture conforming to described default photo resolution and default picture format attribute.
In conjunction with the first possibility implementation of the embodiment of the present invention, in the second possibility implementation of the embodiment of the present invention, according to default photo resolution and default picture format attribute, treat that to described sharing web page carries out sectional drawing, generate the webpage capture picture conforming to described default photo resolution and default picture format attribute, comprising:
Treat that to described sharing web page carries out snapshots of web pages according to default picture format attribute, described in obtaining, treat the snapshot picture of sharing web page;
According to default photo resolution, described snapshot picture is adjusted, the picture after adjusting is retrieved as to the webpage capture picture conforming to described default photo resolution and default picture format attribute.
In conjunction with first aspect, in the third possibility implementation of the embodiment of the present invention, according to the described info web for the treatment of sharing web page, after generating web page sectional drawing picture, described method also comprises:
In the time described webpage capture picture being sent to described target and sharing server corresponding to address, described in inciting somebody to action, treat that sharing web page address is sent to described server, make described server receive described webpage capture picture and described in during until sharing web page address, show described webpage capture picture and described in treat sharing web page address.
In conjunction with above-mentioned arbitrary possible implementation, in the 4th kind of possibility implementation of the embodiment of the present invention, described target is shared address and is generated according to the definite target web of user and described user's log-on message.
Second aspect, provides a kind of webpage capture device, and described device comprises:
Command reception module, shares instruction for receiving webpage, and described webpage is shared instruction and carried and treat that sharing web page address shares address with target;
Webpage acquisition module, for treating sharing web page address described in basis, treats sharing web page described in obtaining;
Image generating module, treats sharing web page for described in basis, generating web page sectional drawing picture;
Picture sending module, shares server corresponding to address for described webpage capture picture is sent to described target, makes described server in the time receiving described webpage capture picture, shows described webpage capture picture.
In conjunction with second aspect, in the first possibility implementation of the embodiment of the present invention, described image generating module comprises:
Picture generation unit, for according to default photo resolution and default picture format attribute, treats that to described sharing web page carries out sectional drawing, generates the webpage capture picture conforming to described default photo resolution and default picture format attribute.
In conjunction with the first possibility implementation of the embodiment of the present invention, in the second possibility implementation of the embodiment of the present invention, described picture generation unit comprises:
Snapshots of web pages subelement, for treating that to described sharing web page carries out snapshots of web pages according to default picture format attribute, treats the snapshot picture of sharing web page described in obtaining;
Picture obtains subelement, for described snapshot picture being adjusted according to default photo resolution, the picture after adjusting is retrieved as to the webpage capture picture conforming to described default photo resolution and default picture format attribute.
In conjunction with second aspect, in the third possibility implementation of the embodiment of the present invention, described device also comprises:
Web page address sending module, for in the time described webpage capture picture being sent to described target and sharing server corresponding to address, described in inciting somebody to action, treat that sharing web page address is sent to described server, make described server receive described webpage capture picture and described in during until sharing web page address, show described webpage capture picture and described in treat sharing web page address.
In conjunction with above-mentioned arbitrary possible implementation, in the 4th kind of possibility implementation of the embodiment of the present invention, described target is shared address and is generated according to the definite target web of user and described user's log-on message.
The method and apparatus that the embodiment of the present invention provides, shares instruction by receiving webpage, and described webpage is shared instruction and carried and treat that sharing web page address shares address with target; According to the described sharing web page address for the treatment of, described in obtaining, treat sharing web page; According to the described sharing web page for the treatment of, generating web page sectional drawing picture; Described webpage capture picture is sent to described target and shares server corresponding to address, make described server in the time receiving described webpage capture picture, show described webpage capture picture.Adopt technical scheme of the present invention, described in obtaining, treat sharing web page, and generating web page sectional drawing picture, be uploaded to described target and share server corresponding to address, can in the situation that not expending customer flow, webpage capture picture be shared to target and share address, simple to operation.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of a kind of webpage capture method of providing of the embodiment of the present invention;
Fig. 2 is the process flow diagram of a kind of webpage capture method of providing of the embodiment of the present invention;
Fig. 3 is the schematic diagram in a kind of sharing function region of providing of the embodiment of the present invention;
Fig. 4 is a kind of sectional drawing effect schematic diagram that the embodiment of the present invention provides;
Fig. 5 is a kind of webpage capture apparatus structure schematic diagram that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of a kind of webpage capture method of providing of the embodiment of the present invention.The executive agent of this inventive embodiments is browser server, and referring to Fig. 1, described method comprises:
101: receive webpage and share instruction, described webpage is shared instruction and carried and treat that sharing web page address shares address with target;
Wherein, it is to access arbitrary webpage as user that described webpage is shared instruction, and need to described arbitrary webpage be shared to third party's business time, by clicking the instruction of specified button triggering.Described third party's business includes but not limited to the business such as net dish, microblogging, space.
Describedly treat that sharing web page address refers to that active user accesses and need to share to the address of arbitrary webpage of third party's business.
Described target share address treat described in referring to sharing web page share to destination address, this target share address can be according to user the web page address of the log-on message to third party's business and third party's business generate.
In the embodiment of the present invention, this webpage is shared instruction and can be triggered by following mode: (1) browser client can be provided for webpage to share the button of sharing to third party's business, " share to " mark as provided at browser navigation area, in order to represent sharing function region, identify when clicked when " share to ", " microblogging " is provided, " space ", " blog " grade in an imperial examination three party service selection key, select third party's business for user, in the time of user's browsing page, share instruction by triggering webpage to the click of third party's service selection button, make browser client send this webpage to browser server and share instruction, and share instruction by browser server reception webpage.Or browser client can also provide and share option in browser tools menu, and in the submenu of sharing option, provide multiple third party's business options, select third party's business and then trigger webpage and share instruction for user.(2) web page server is provided for webpage to share the button of sharing to third party's business on webpage, as the appointed area at webpage provides " share to " mark, in order to represent sharing function region, and provide " microblogging ", " space ", " blog " grade in an imperial examination three party service selection key, select third party's business for user, in the time of user's browsing page, share order by triggering webpage to the click of third party's service selection button, make browser client send this webpage to browser server and share instruction, and share instruction by browser server reception webpage.
For example, the webpage of user's current accessed is A, in the time webpage A need to being shared to user's space, user can share instruction by " space " button triggering webpage of clicking sharing function region, browser server receives webpage and shares instruction, described webpage is shared instruction and is carried the address of webpage A and user's space address, described in the address of webpage A is, treats sharing web page address, and user's space address is described target and shares address.
102: according to the described sharing web page address for the treatment of, described in obtaining, treat sharing web page;
Particularly, what browser server basis got treats sharing web page address, treat that to described server corresponding to sharing web page address sends info web request, receive after the permission response of the server corresponding until sharing web page address, described in download, treat the info web of sharing web page, described in obtaining, treat sharing web page.
It should be noted that, described in obtaining during until sharing web page, can download whole info webs that this treats sharing web page, can also not download whole info webs for the treatment of sharing web page, but download the part info web for the treatment of sharing web page, the info web type of downloading can be arranged by browser server end, browser server can configuration information template, described information model comprises need to be from the described information type for the treatment of that sharing web page is downloaded, and browser server is according to the information for the treatment of sharing web page described in described information model download.As this information model can comprise word, pictorial information, and do not comprise the links category information such as hyperlink.By set information template, avoid obtaining the unnecessary information for the treatment of in sharing web page, improve the speed that webpage is shared.
For example, in the time that sharing web page is Sina's homepage, only need obtain the Word message and the pictorial information that on Sina's homepage, show when described, the jump address of each link on Sina's homepage does not need to obtain.
103: according to the described sharing web page for the treatment of, generating web page sectional drawing picture;
Particularly, according to the described sharing web page for the treatment of, it is carried out to sectional drawing, generate and treat the webpage capture picture that sharing web page is corresponding.
Wherein, treating that to described sharing web page carries out sectional drawing, described in generation, treat in the process of the webpage capture picture that sharing web page is corresponding, can not treat that to whole sharing web page carries out sectional drawing, only the partial content for the treatment of sharing web page of choosing is carried out to sectional drawing, the selected partial content for the treatment of sharing web page can preset.For example, preset and choose the top news region for the treatment of in sharing web page, only sectional drawing is carried out in this region, generate corresponding webpage capture picture;
Wherein, described in generating during until webpage capture picture corresponding to sharing web page, the original sharing web page for the treatment of can be carried out to the classification of typesetting again according to the template setting in advance, make user very clear in the time of browsing page sectional drawing picture.
For example, according to the described sharing web page for the treatment of, when generating web page sectional drawing picture, can be according to template by the picture for the treatment of to show on sharing web page and caption typesetting again, treat in the demonstration of the left side of webpage capture picture the picture showing on sharing web page, treat in the demonstration of the right side of webpage capture picture the caption showing on sharing web page.
104: described webpage capture picture is sent to described target and shares server corresponding to address, make described server in the time receiving described webpage capture picture, show described webpage capture picture.
Particularly, described webpage capture picture is sent to described target and shares server corresponding to address, described target is shared server corresponding to address and on webpage corresponding to address, is shown described webpage capture picture by sharing in target, described target is shared webpage corresponding to address and is generally the About You of third party's business of user, as microblogging homepage of individual subscriber etc., share on webpage corresponding to address and show described webpage capture picture in target, realized webpage capture picture is shared to the function of third party's business.
The method that the embodiment of the present invention provides, shares instruction by receiving webpage, and described webpage is shared instruction and carried and treat that sharing web page address shares address with target; According to the described sharing web page address for the treatment of, described in obtaining, treat sharing web page; According to the described sharing web page for the treatment of, generating web page sectional drawing picture; Described webpage capture picture is sent to described target and shares server corresponding to address, make described server in the time receiving described webpage capture picture, show described webpage capture picture.Adopt technical scheme of the present invention, described in obtaining, treat sharing web page, and generating web page sectional drawing picture, be uploaded to described target and share server corresponding to address, can in the situation that not expending customer flow, webpage capture picture be shared to target and share address, simple to operation.
Alternatively, on the basis of technical scheme embodiment illustrated in fig. 1, this step 103 " according to the described sharing web page for the treatment of, generating web page sectional drawing picture " comprises step 103a:
103a: according to default photo resolution and default picture format attribute, treat that to described sharing web page carries out sectional drawing, generate the webpage capture picture conforming to described default photo resolution and default picture format attribute.
In the time of generating web page sectional drawing picture, according to default photo resolution and default picture format attribute, treat that to described sharing web page carries out sectional drawing, the resolution of the webpage capture picture of described generation conforms to default picture format attribute with described default photo resolution with the attribute of a configuration.
Wherein, described picture format attribute can comprise bmp form, jpg form etc.
It should be noted that, described default photo resolution and default picture format attribute can technician arrange in the time of exploitation, can also in use be arranged by user.
Alternatively, on the basis of technical scheme embodiment illustrated in fig. 1, this step 103a " according to default photo resolution and default picture format attribute; treat that to described sharing web page carries out sectional drawing, generates the webpage capture picture conforming to described default photo resolution and default picture format attribute " and comprises step 103a-1 and step 103a-2:
103a-1: treat that to described sharing web page carries out snapshots of web pages according to default picture format attribute, treat the snapshot picture of sharing web page described in obtaining;
Particularly, described in capturing according to default picture format attribute, treat sharing web page, save as the snapshot picture conforming to default picture format attribute.
Carry out snapshot by treated sharing web page by browser server, the snapshot picture that it gets can comprise the full content that this treats sharing web page demonstration, and while having avoided use sectional drawing software sectional drawing, can only intercept the web displaying region that is subject to the restriction of client device screen size, ensure the integrality of webpage capture.
103a-2: according to default photo resolution, described snapshot picture is adjusted, the picture after adjusting is retrieved as to the webpage capture picture conforming to described default photo resolution and default picture format attribute.
According to default photo resolution, described snapshot picture is adjusted into and the picture of presetting photo resolution and conforming to, the picture that described and default photo resolution is conformed to is retrieved as described webpage capture picture, and the resolution of this webpage capture picture all conforms to described default photo resolution and default picture format attribute with the attribute of a configuration.
In order to get the full picture of webpage, the adjustment described in the embodiment of the present invention refers to according to default photo resolution carries out convergent-divergent to snapshot picture.
Alternatively, on the basis of technical scheme embodiment illustrated in fig. 1, afterwards, described method also comprises step 105 to this step 103 " according to the described info web for the treatment of sharing web page, generating web page sectional drawing picture ":
105: in the time described webpage capture picture being sent to described target and sharing server corresponding to address, described in inciting somebody to action, treat that sharing web page address is sent to described server, make described server receive described webpage capture picture and described in during until sharing web page address, show described webpage capture picture and described in treat sharing web page address.
Wherein, the described form for the treatment of that sharing web page address can link is shared on webpage corresponding to address and is shown in described target, its jump target is treated sharing web page described in being, described in can jumping to the described click for the treatment of sharing web page address link by user, treat sharing web page, so that user is browsing after described sectional drawing picture further browsing page.
For example, describedly treat that sharing web page is A, it is B that described target is shared business corresponding to address, in the time that needs are shared to business B by webpage A, the address of the sectional drawing picture of the webpage A having got and webpage A is sent to the server that business B is corresponding, share the setting of server corresponding to address by target, can the sectional drawing picture of display web page A and the address of webpage A on business B, wherein, the address of webpage A with link form on the webpage of business B, show, the address of clicking this webpage A can jump to webpage A.
Alternatively, on the basis of technical scheme embodiment illustrated in fig. 1, described target is shared address and is generated according to the definite target web of user and described user's log-on message.
Particularly, determine third party's business by user's selection, as user selects space, any business in multiple third party's business such as blog, can determine target web according to definite third party's business, needing user to login described target web by being sent to until the sectional drawing picture of sharing web page when described target is shared server corresponding to address, now browser server can obtain user's log-on message, according to the definite target web of user and user's log-on message, can determine the destination address of the sectional drawing picture for the treatment of sharing web page, be target and share address.
For example, when user need to by share until sharing web page A to user space time, the definite target web of described user is the webpage in space, during by corresponding the space address that is sent to user until the sectional drawing picture of sharing web page A server, need user to login, once user logins space, described browser server can get user's log-on message, generate target according to the webpage in space and user's log-on message and share address, sharing address according to target can be sent to described target with the address for the treatment of sharing web page A by the sectional drawing picture for the treatment of sharing web page A and share server corresponding to address, so that described target share on webpage corresponding to address, show described webpage capture picture and described in treat sharing web page A address.
The method that the embodiment of the present invention provides, shares instruction by receiving webpage, and described webpage is shared instruction and carried and treat that sharing web page address shares address with target; According to the described sharing web page address for the treatment of, described in obtaining, treat sharing web page; According to the described sharing web page for the treatment of, generating web page sectional drawing picture; Described webpage capture picture is sent to described target and shares server corresponding to address, make described server in the time receiving described webpage capture picture, show described webpage capture picture.Adopt technical scheme of the present invention, described in obtaining, treat sharing web page, and generating web page sectional drawing picture, be uploaded to described target and share server corresponding to address, can in the situation that not expending customer flow, webpage capture picture be shared to target and share address, simple to operation.
Above-mentioned all optional technical schemes, can adopt any combination to form optional embodiment of the present invention, and this is no longer going to repeat them.
Fig. 2 is the process flow diagram of a kind of webpage capture method of providing of the embodiment of the present invention.The executive agent of this inventive embodiments is browser server, and referring to Fig. 2, described method comprises:
201: browser server receives webpage and shares instruction, described webpage is shared instruction and is carried and treat that sharing web page address shares address with target;
The embodiment of the present invention is to be provided for webpage to share to the button of sharing of third party's business and describe as example at browser navigation area taking browser client, and Fig. 3 is the schematic diagram in a kind of sharing function region of providing of the embodiment of the present invention.
As shown in Figure 3, browser client provides " share to " mark at browser navigation area, in order to represent sharing function region, " microblogging ", " space ", " blog " grade in an imperial examination three party service selection key are provided in sharing function region, by user, the clicking trigger webpage of arbitrary third party's service selection button is shared to instruction, make browser client send this webpage to browser server and share instruction, and share instruction by browser server reception webpage.Wherein, the webpage of current accessed is treats sharing web page, and the webpage of this third party's business is target web.User clicks log-on message after described third party's service selection button, determines that according to the definite target web of user and user's log-on message target shares address, and described webpage is shared and in instruction, carried this and treat that sharing web page address shares address with this target.
In addition, browser client can also provide at browser navigation area " share to " button to represent sharing function region, in the time that " share to " button is clicked, on browser client interface, eject and share menu, provide " microblogging ", " space ", " blog " grade in an imperial examination three party service to select option, select to trigger webpage for user and share instruction.
It should be noted that, browser client can be positioned at mobile terminal or personal computer terminal, owing to being subject to the restriction of mobile terminal or personal computer terminal screen size, the webpage of the current accessed shown in Fig. 3 is not complete webpage, and user can carry out slide by the scroll bar that browser client is provided and browse to complete webpage.
202: described in browser server basis, treat sharing web page address, described in obtaining, treat sharing web page;
Based on the example of Fig. 3, the embodiment of the present invention only describes as example to obtain the full page for the treatment of sharing web page.Browser server is treated sharing web page address according to described current accessed, obtains this and treat the full page of sharing web page.
203: browser server treats that to described sharing web page carries out snapshots of web pages according to default picture format attribute, treats the snapshot picture of sharing web page described in obtaining;
The embodiment of the present invention is to carry out snapshots of web pages as example to the described full page for the treatment of sharing web page.
204: browser server is adjusted described snapshot picture according to default photo resolution, the picture after adjusting is retrieved as to the webpage capture picture conforming to described default photo resolution and default picture format attribute.
205: browser server by described webpage capture picture with described in treat that sharing web page address is sent to described target and shares server corresponding to address, make described server receive described webpage capture picture and described in during until sharing web page address, show described webpage capture picture and described in treat sharing web page address.
The embodiment of the present invention is to be used mobile terminal to show that on microblogging interface described webpage capture picture is as example.Based on the example of Fig. 3, step 201-205 can be: browser server receives to be shared current web page to the webpage of microblogging and share instruction, obtain the sharing web page for the treatment of of current accessed in Fig. 3, and according to described default picture format attribute, this full page for the treatment of sharing web page is carried out to snapshots of web pages, obtain snapshot picture, adjust this snapshot picture according to described default photo resolution, generating web page sectional drawing picture, this webpage capture picture and this are treated to the address of sharing web page is sent to server corresponding to described microblogging webpage, make can show on user's microblogging interface described webpage capture picture and described in treat sharing web page address.
Based on the example of Fig. 3, Fig. 4 is a kind of sectional drawing effect schematic diagram that the embodiment of the present invention provides, and take third party's business as example as microblogging.When target share server corresponding to address receive described webpage capture picture and described in during until sharing web page address, show described webpage capture picture and described in treat sharing web page address, now arbitrary user can browse to this webpage capture picture and this and treat sharing web page address on target web corresponding to described microblogging.
Based on the example of Fig. 4, owing to being subject to the restriction of mobile terminal screen size of current use, user, in the time of browsing page sectional drawing picture, can not browse to complete webpage capture picture, and now user can carry out slide by the scroll bar of mobile terminal and browses to whole webpage capture picture.It should be noted that, this scroll bar is only a kind of implementation of slip, and the mechanism of the touch screen slip page can also be provided in practical application, to see full picture.
The method that the embodiment of the present invention provides, shares instruction by receiving webpage, and described webpage is shared instruction and carried and treat that sharing web page address shares address with target; According to the described sharing web page address for the treatment of, described in obtaining, treat sharing web page; According to the described sharing web page for the treatment of, generating web page sectional drawing picture; Described webpage capture picture is sent to described target and shares server corresponding to address, make described server in the time receiving described webpage capture picture, show described webpage capture picture.Adopt technical scheme of the present invention, described in obtaining, treat sharing web page, and generating web page sectional drawing picture, be uploaded to described target and share server corresponding to address, can in the situation that not expending customer flow, webpage capture picture be shared to target and share address, simple to operation.
Fig. 5 is a kind of webpage capture apparatus structure schematic diagram that the embodiment of the present invention provides.The executive agent of this inventive embodiments is browser server, and referring to Fig. 5, described device comprises:
Command reception module 51, shares instruction for receiving webpage, and described webpage is shared instruction and carried and treat that sharing web page address shares address with target;
Webpage acquisition module 52, for treating sharing web page address described in basis, treats sharing web page described in obtaining;
Image generating module 53, treats sharing web page for described in basis, generating web page sectional drawing picture;
Picture sending module 54, shares server corresponding to address for described webpage capture picture is sent to described target, makes described server in the time receiving described webpage capture picture, shows described webpage capture picture.
Alternatively, described image generating module 53 comprises:
Picture generation unit, for according to default photo resolution and default picture format attribute, treats that to described sharing web page carries out sectional drawing, generates the webpage capture picture conforming to described default photo resolution and default picture format attribute.
Alternatively, described picture generation unit comprises:
Snapshots of web pages subelement, for treating that to described sharing web page carries out snapshots of web pages according to default picture format attribute, treats the snapshot picture of sharing web page described in obtaining;
Picture obtains subelement, for described snapshot picture being adjusted according to default photo resolution, the picture after adjusting is retrieved as to the webpage capture picture conforming to described default photo resolution and default picture format attribute.
Alternatively, described device also comprises:
Web page address sending module, for in the time described webpage capture picture being sent to described target and sharing server corresponding to address, described in inciting somebody to action, treat that sharing web page address is sent to described server, make described server receive described webpage capture picture and described in during until sharing web page address, show described webpage capture picture and described in treat sharing web page address.
Alternatively, described target is shared address according to the definite target web of user and described user's log-on message generation.
The device that the embodiment of the present invention provides, shares instruction by receiving webpage, and described webpage is shared instruction and carried and treat that sharing web page address shares address with target; According to the described sharing web page address for the treatment of, described in obtaining, treat sharing web page; According to the described sharing web page for the treatment of, generating web page sectional drawing picture; Described webpage capture picture is sent to described target and shares server corresponding to address, make described server in the time receiving described webpage capture picture, show described webpage capture picture.Adopt technical scheme of the present invention, described in obtaining, treat sharing web page, and generating web page sectional drawing picture, be uploaded to described target and share server corresponding to address, can in the situation that not expending customer flow, webpage capture picture be shared to target and share address, simple to operation.
It should be noted that: the device of the webpage capture that above-described embodiment provides is in the time of webpage capture, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the inner structure of equipment, to complete all or part of function described above.In addition, the device of the webpage capture that above-described embodiment provides and the embodiment of the method for webpage capture belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a webpage capture method, is characterized in that, described method comprises:
Receive webpage and share instruction, described webpage is shared instruction and is carried and treat that sharing web page address shares address with target;
According to the described sharing web page address for the treatment of, described in obtaining, treat sharing web page;
According to the described sharing web page for the treatment of, generating web page sectional drawing picture;
Described webpage capture picture is sent to described target and shares server corresponding to address, make described server in the time receiving described webpage capture picture, show described webpage capture picture.
2. method according to claim 1, is characterized in that, according to the described sharing web page for the treatment of, generating web page sectional drawing picture, comprising:
According to default photo resolution and default picture format attribute, treat that to described sharing web page carries out sectional drawing, generate the webpage capture picture conforming to described default photo resolution and default picture format attribute.
3. method according to claim 2, it is characterized in that, according to default photo resolution and default picture format attribute, treat that to described sharing web page carries out sectional drawing, generate the webpage capture picture conforming to described default photo resolution and default picture format attribute, comprising:
Treat that to described sharing web page carries out snapshots of web pages according to default picture format attribute, described in obtaining, treat the snapshot picture of sharing web page;
According to default photo resolution, described snapshot picture is adjusted, the picture after adjusting is retrieved as to the webpage capture picture conforming to described default photo resolution and default picture format attribute.
4. method according to claim 1, is characterized in that, according to the described info web for the treatment of sharing web page, after generating web page sectional drawing picture, described method also comprises:
In the time described webpage capture picture being sent to described target and sharing server corresponding to address, described in inciting somebody to action, treat that sharing web page address is sent to described server, make described server receive described webpage capture picture and described in during until sharing web page address, show described webpage capture picture and described in treat sharing web page address.
5. according to the method described in claim 1-4 any one, it is characterized in that, described target is shared address and is generated according to the definite target web of user and described user's log-on message.
6. a webpage capture device, is characterized in that, described device comprises:
Command reception module, shares instruction for receiving webpage, and described webpage is shared instruction and carried and treat that sharing web page address shares address with target;
Webpage acquisition module, for treating sharing web page address described in basis, treats sharing web page described in obtaining;
Image generating module, treats sharing web page for described in basis, generating web page sectional drawing picture;
Picture sending module, shares server corresponding to address for described webpage capture picture is sent to described target, makes described server in the time receiving described webpage capture picture, shows described webpage capture picture.
7. device according to claim 6, is characterized in that, described image generating module comprises:
Picture generation unit, for according to default photo resolution and default picture format attribute, treats that to described sharing web page carries out sectional drawing, generates the webpage capture picture conforming to described default photo resolution and default picture format attribute.
8. device according to claim 7, is characterized in that, described picture generation unit comprises:
Snapshots of web pages subelement, for treating that to described sharing web page carries out snapshots of web pages according to default picture format attribute, treats the snapshot picture of sharing web page described in obtaining;
Picture obtains subelement, for described snapshot picture being adjusted according to default photo resolution, the picture after adjusting is retrieved as to the webpage capture picture conforming to described default photo resolution and default picture format attribute.
9. device according to claim 6, is characterized in that, described device also comprises:
Web page address sending module, for in the time described webpage capture picture being sent to described target and sharing server corresponding to address, described in inciting somebody to action, treat that sharing web page address is sent to described server, make described server receive described webpage capture picture and described in during until sharing web page address, show described webpage capture picture and described in treat sharing web page address.
10. according to the device described in claim 6-9 any one, it is characterized in that, described target is shared address and is generated according to the definite target web of user and described user's log-on message.
CN201310068962.6A 2013-03-04 2013-03-04 Webpage capture method and apparatus Active CN104035929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310068962.6A CN104035929B (en) 2013-03-04 2013-03-04 Webpage capture method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310068962.6A CN104035929B (en) 2013-03-04 2013-03-04 Webpage capture method and apparatus

Publications (2)

Publication Number Publication Date
CN104035929A true CN104035929A (en) 2014-09-10
CN104035929B CN104035929B (en) 2018-07-06

Family

ID=51466700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310068962.6A Active CN104035929B (en) 2013-03-04 2013-03-04 Webpage capture method and apparatus

Country Status (1)

Country Link
CN (1) CN104035929B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868344A (en) * 2016-03-28 2016-08-17 联想(北京)有限公司 Information processing method and electronic equipment
CN106406851A (en) * 2016-08-24 2017-02-15 北京松鼠山科技有限公司 Webpage image capture method and system
CN106533926A (en) * 2016-12-27 2017-03-22 武汉斗鱼网络科技有限公司 Webpage information dissemination method and device
CN106547792A (en) * 2015-09-22 2017-03-29 阿里巴巴集团控股有限公司 A kind of picture sharing method and device
CN106657579A (en) * 2016-09-29 2017-05-10 努比亚技术有限公司 Content sharing method, device and terminal
CN106790202A (en) * 2017-01-03 2017-05-31 努比亚技术有限公司 A kind of multimedia file shares processing method, device and terminal
CN106899489A (en) * 2016-08-02 2017-06-27 阿里巴巴集团控股有限公司 A kind of information processing method and device
CN107454147A (en) * 2017-07-06 2017-12-08 北京潘达互娱科技有限公司 Information processing method and device
WO2018126919A1 (en) * 2017-01-06 2018-07-12 腾讯科技(深圳)有限公司 Method of cropping image on screen, terminal, and data storage medium
CN109033466A (en) * 2018-08-31 2018-12-18 掌阅科技股份有限公司 Page sharing method calculates equipment and computer storage medium
CN109033473A (en) * 2018-09-06 2018-12-18 广州酷狗计算机科技有限公司 Picture sharing method, device and computer readable storage medium
CN109697091A (en) * 2017-10-23 2019-04-30 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the electronic device of the page
CN110324488A (en) * 2019-05-31 2019-10-11 努比亚技术有限公司 A kind of contact information display methods, terminal and computer readable storage medium
CN111817944A (en) * 2020-05-28 2020-10-23 维沃移动通信有限公司 Picture sharing method and device and electronic equipment
CN114546560A (en) * 2022-02-22 2022-05-27 浙江蓝卓工业互联网信息技术有限公司 Data sharing method and device, storage medium and electronic equipment

Citations (8)

* 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
US20110126130A1 (en) * 2009-11-24 2011-05-26 Adam Michael Lieb Method and system for browser-based screen sharing
US20110154219A1 (en) * 2009-12-18 2011-06-23 Livelook, Inc. Co-browsing Systems and Methods
CN102508843A (en) * 2011-09-23 2012-06-20 上海量明科技发展有限公司 Screen capture method and system with microblogging function
CN102521284A (en) * 2011-11-28 2012-06-27 优视科技有限公司 Page screenshot processing method and device based on mobile terminal browser
CN102681829A (en) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 Screenshot method, device and communication client
CN102779123A (en) * 2011-05-09 2012-11-14 腾讯科技(北京)有限公司 Screenshot method and system of website displayed contents
CN102929604A (en) * 2012-09-29 2013-02-13 北京奇虎科技有限公司 Screen capturing apparatus and method

Patent Citations (8)

* 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
US20110126130A1 (en) * 2009-11-24 2011-05-26 Adam Michael Lieb Method and system for browser-based screen sharing
US20110154219A1 (en) * 2009-12-18 2011-06-23 Livelook, Inc. Co-browsing Systems and Methods
CN102681829A (en) * 2011-03-16 2012-09-19 阿里巴巴集团控股有限公司 Screenshot method, device and communication client
CN102779123A (en) * 2011-05-09 2012-11-14 腾讯科技(北京)有限公司 Screenshot method and system of website displayed contents
CN102508843A (en) * 2011-09-23 2012-06-20 上海量明科技发展有限公司 Screen capture method and system with microblogging function
CN102521284A (en) * 2011-11-28 2012-06-27 优视科技有限公司 Page screenshot processing method and device based on mobile terminal browser
CN102929604A (en) * 2012-09-29 2013-02-13 北京奇虎科技有限公司 Screen capturing apparatus and method

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547792A (en) * 2015-09-22 2017-03-29 阿里巴巴集团控股有限公司 A kind of picture sharing method and device
CN106547792B (en) * 2015-09-22 2020-08-25 阿里巴巴集团控股有限公司 Picture sharing method and device
CN105868344A (en) * 2016-03-28 2016-08-17 联想(北京)有限公司 Information processing method and electronic equipment
CN106899489A (en) * 2016-08-02 2017-06-27 阿里巴巴集团控股有限公司 A kind of information processing method and device
CN106406851A (en) * 2016-08-24 2017-02-15 北京松鼠山科技有限公司 Webpage image capture method and system
CN106657579A (en) * 2016-09-29 2017-05-10 努比亚技术有限公司 Content sharing method, device and terminal
CN106533926A (en) * 2016-12-27 2017-03-22 武汉斗鱼网络科技有限公司 Webpage information dissemination method and device
CN106790202A (en) * 2017-01-03 2017-05-31 努比亚技术有限公司 A kind of multimedia file shares processing method, device and terminal
WO2018126919A1 (en) * 2017-01-06 2018-07-12 腾讯科技(深圳)有限公司 Method of cropping image on screen, terminal, and data storage medium
US10929942B2 (en) 2017-01-06 2021-02-23 Tencent Technology (Shenzhen) Company Limited Screen capture method, terminal, and storage medium employing both parent application program and sub-application program
US11164278B2 (en) 2017-01-06 2021-11-02 Tencent Technology (Shenzhen) Company Limited Screen capture method, terminal, and storage medium employing both parent application program and sub-application program
CN107454147A (en) * 2017-07-06 2017-12-08 北京潘达互娱科技有限公司 Information processing method and device
CN107454147B (en) * 2017-07-06 2021-04-23 北京龙之心科技有限公司 Information processing method and device
CN109697091A (en) * 2017-10-23 2019-04-30 腾讯科技(深圳)有限公司 Processing method, device, storage medium and the electronic device of the page
CN109033466A (en) * 2018-08-31 2018-12-18 掌阅科技股份有限公司 Page sharing method calculates equipment and computer storage medium
CN109033466B (en) * 2018-08-31 2019-12-03 掌阅科技股份有限公司 Page sharing method calculates equipment and computer storage medium
CN109033473A (en) * 2018-09-06 2018-12-18 广州酷狗计算机科技有限公司 Picture sharing method, device and computer readable storage medium
CN109033473B (en) * 2018-09-06 2022-02-11 广州酷狗计算机科技有限公司 Picture sharing method and device and computer readable storage medium
CN110324488A (en) * 2019-05-31 2019-10-11 努比亚技术有限公司 A kind of contact information display methods, terminal and computer readable storage medium
CN111817944A (en) * 2020-05-28 2020-10-23 维沃移动通信有限公司 Picture sharing method and device and electronic equipment
CN114546560A (en) * 2022-02-22 2022-05-27 浙江蓝卓工业互联网信息技术有限公司 Data sharing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN104035929B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN104035929A (en) Webpage screenshot method and device
CN103246678B (en) A kind of web page content preview method and apparatus
CN103685440B (en) Method for the shared file between multiple mobile electronic devices
CN103944944B (en) Method, electronic equipment and the system of sharing web page link
CN102508843A (en) Screen capture method and system with microblogging function
CN103997452A (en) Information sharing method and apparatus among multiple platforms
CN102215215A (en) Method for recovering page and electronic terminal
CN105205072B (en) The methods of exhibiting and system of webpage information
CN102130952B (en) Method and device for forwarding hyper text transport protocol (HPPT) request message of mobile terminal
CN102789351A (en) Method and device for switching browsed interfaces
US9041955B2 (en) Printing system and methods using a printer server homepage from a print server
JP6093449B2 (en) Homepage forming method, peripheral device, and homepage forming system
CN104333598A (en) Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
CN107920103A (en) A kind of method and system and client and server of information push
US8631236B2 (en) Auto file locker
EP2641144A1 (en) Web browser toolbar
CN105812563A (en) Picture sending method and device
CN108345606A (en) The acquisition methods and device of web page resources
CN105653526A (en) Page access method and device
CN104378428A (en) Method and device for downloading files
CN103905477B (en) A kind of method and server for handling HTTP request
CN108363749B (en) Method and apparatus for information processing
US7640498B2 (en) Method and system for maintaining font sizes on different platforms
JP2006004136A (en) Html file processing method and program
CN104978207A (en) Method for uploading file, browser and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant