CN104035929B - Webpage capture method and apparatus - Google Patents

Webpage capture method and apparatus Download PDF

Info

Publication number
CN104035929B
CN104035929B CN201310068962.6A CN201310068962A CN104035929B CN 104035929 B CN104035929 B CN 104035929B CN 201310068962 A CN201310068962 A CN 201310068962A CN 104035929 B CN104035929 B CN 104035929B
Authority
CN
China
Prior art keywords
picture
webpage
web page
address
sharing web
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.)
Active
Application number
CN201310068962.6A
Other languages
Chinese (zh)
Other versions
CN104035929A (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 kind of webpage capture method and apparatus, belong to network technique field.The method includes:It receives webpage and shares instruction, the webpage shares instruction carrying and treats that address is shared in sharing web page address with target;It treats sharing web page address, sharing web page to be treated described in acquisition according to described;Sharing web page is treated according to described, generates webpage capture picture;The webpage capture picture is sent to the target and shares the corresponding server in address so that the server shows the webpage capture picture when receiving the webpage capture picture.The present invention generates webpage capture picture by treating sharing web page described in acquisition, is uploaded to the target and shares the corresponding server in address, can share webpage capture picture to target in the case where not expending customer flow and share address, simple to operate.

Description

Webpage capture method and apparatus
Technical field
The present invention relates to network technique field, more particularly to a kind of webpage capture method and apparatus.
Background technology
With the development of Internet technology and the communication technology, more and more users using browser browse webpage, and During browsing webpage, can sectional drawing be carried out, and the picture being truncated to is passed through third party's business to webpage according to user demand Channel such as Dropbox, microblogging etc. are shared.In the prior art, the sectional drawing that user can be carried by using browser client Function intercepts picture or intercepts picture using sectional drawing softwares, when user needs to share the picture being truncated to third party's industry During business, need to upload the picture that is truncated to again to corresponding third party's service server.
In the implementation of the present invention, inventor has found that the prior art has at least the following problems:
It is not only cumbersome when the picture being truncated to is uploaded to third party's service server by user again, but also need Expend the flow of user.
Invention content
In order to solve problem of the prior art, an embodiment of the present invention provides a kind of webpage capture method and apparatus.It is described Technical solution is as follows:
In a first aspect, a kind of webpage capture method is provided, the method includes:
It receives webpage and shares instruction, the webpage shares instruction carrying and treats that address is shared in sharing web page address with target;
It treats sharing web page address, sharing web page to be treated described in acquisition according to described;
Sharing web page is treated according to described, generates webpage capture picture;
The webpage capture picture is sent to the target and shares the corresponding server in address so that the server exists When receiving the webpage capture picture, the webpage capture picture is shown.
With reference to first aspect, in the first possible realization method of the embodiment of the present invention, sharing web page, life are treated according to described Into webpage capture picture, including:
According to default photo resolution and default picture format attribute, treat that sharing web page carries out sectional drawing, generation to described The webpage capture picture being consistent with the default photo resolution and default picture format attribute.
With reference to the first possible realization method of the embodiment of the present invention, second of the embodiment of the present invention may realization method In, according to default photo resolution and default picture format attribute, treat that sharing web page carries out sectional drawing to described, generation with it is described The webpage capture picture that default photo resolution and default picture format attribute are consistent, including:
It treats that sharing web page carries out snapshots of web pages to described according to default picture format attribute, obtains described treating sharing web page Snapshot picture;
The snapshot picture is adjusted according to default photo resolution, by the picture after adjustment be retrieved as with it is described pre- If the webpage capture picture that photo resolution and default picture format attribute are consistent.
With reference to first aspect, in the third possible realization method of the embodiment of the present invention, according to the sharing web page for the treatment of Webpage information, after generating webpage capture picture, the method further includes:
When the webpage capture picture being sent to the target sharing the corresponding server in address, wait to share by described Web page address is sent to the server so that the server is receiving the webpage capture picture and the net to be shared During page address, show the webpage capture picture and described treat sharing web page address.
With reference to any of the above-described possible realization method, in the 4th kind of possible realization method of the embodiment of the present invention, the mesh Mark shares the target webpage that address determined according to user and the log-on message of the user generates.
Second aspect, provides a kind of webpage capture device, and described device includes:
Command reception module shares instruction for receiving webpage, and the webpage shares instruction carrying and treats sharing web page address Share address with target;
Webpage acquisition module, for treating sharing web page address, sharing web page to be treated described in acquisition according to;
Image generating module for treating sharing web page according to, generates webpage capture picture;
Picture sending module shares the corresponding service in address for the webpage capture picture to be sent to the target Device so that the server shows the webpage capture picture when receiving the webpage capture picture.
With reference to second aspect, in the first possible realization method of the embodiment of the present invention, the image generating module includes:
Picture generation unit, for according to default photo resolution and default picture format attribute, waiting to share to described Webpage carries out sectional drawing, generates the webpage capture picture being consistent with the default photo resolution and default picture format attribute.
With reference to the first possible realization method of the embodiment of the present invention, second of the embodiment of the present invention may realization method In, the picture generation unit includes:
Snapshots of web pages subelement, for treating that sharing web page carries out snapshots of web pages to described according to default picture format attribute, Obtain the snapshot picture for treating sharing web page;
Picture obtains subelement, for being adjusted according to default photo resolution to the snapshot picture, after adjustment Picture be retrieved as the webpage capture picture being consistent with the default photo resolution and default picture format attribute.
With reference to second aspect, in the third possible realization method of the embodiment of the present invention, described device further includes:
Web page address sending module, for share address corresponding when the webpage capture picture is sent to the target During server, treat that sharing web page address is sent to the server by described so that the server is receiving the webpage Sectional drawing picture and described when sharing web page address shows the webpage capture picture and described treats sharing web page address.
With reference to any of the above-described possible realization method, in the 4th kind of possible realization method of the embodiment of the present invention, the mesh Mark shares the target webpage that address determined according to user and the log-on message of the user generates.
Method and apparatus provided in an embodiment of the present invention share instruction by receiving webpage, and the webpage is shared instruction and taken Band treats that address is shared in sharing web page address with target;It treats sharing web page address, sharing web page to be treated described in acquisition according to described;According to It is described to treat sharing web page, generate webpage capture picture;The webpage capture picture is sent to the target and shares address correspondence Server so that the server shows the webpage capture picture when receiving the webpage capture picture.Using this The technical solution of invention by treating sharing web page described in acquisition, and generates webpage capture picture, is uploaded to the target and shares with ground Webpage capture picture in the case where not expending customer flow can be shared to target and share address by the corresponding server in location, It is simple to operate.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of flow chart of webpage capture method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of webpage capture method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram in sharing function region provided in an embodiment of the present invention;
Fig. 4 is a kind of sectional drawing effect diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of webpage capture apparatus structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work Example, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of webpage capture method provided in an embodiment of the present invention.The execution master of the inventive embodiments Body is browser server, referring to Fig. 1, the method includes:
101:It receives webpage and shares instruction, the webpage shares instruction carrying and treats that ground is shared in sharing web page address with target Location;
Wherein, the webpage share instruction be when user accesses any webpage, and need by any webpage share to During third party's business, by the instruction for clicking specified button triggering.Third party's business include but not limited to Dropbox, microblogging, The business such as space.
It is described to treat that sharing web page address refers to that active user accesses and needs to share to any webpage of third party's business Address.
The target share address refer to it is described treat sharing web page share to destination address, which shares address can be with The log-on message of third party's business and the web page address of third party's business are generated according to user.
In the embodiment of the present invention, which, which shares instruction, to be triggered by the following manner:(1)Browser client can carry For for sharing webpage to the button of sharing of third party's business, " share to " mark is such as provided in browser navigation area, is used To represent sharing function region, when " share to " mark is clicked, third parties' industry such as " microblogging ", " space ", " blog " are provided It is engaged in selection key, third party's business for selection by the user, then when user browses webpage, by third party's service selection button Click can trigger webpage and share instruction so that browser client sends the webpage to browser server and shares instruction, And webpage is received by browser server and shares instruction.Alternatively, browser client can also carry in browser tools menu For sharing option, and multiple third party's business options are provided in the submenu for sharing option, third party's business is selected for user And then it triggers webpage and shares instruction.(2)Web page server provides to share webpage to point of third party's business on webpage Enjoy button, " share to " mark be such as provided in the specified region of webpage, to represent sharing function region, and provide " microblogging ", Third parties' service selection button such as " space ", " blog ", third party's business for selection by the user, then when user browses webpage, Share order by the way that webpage can be triggered to the click of third party's service selection button so that browser client takes to browser Business device sends the webpage and shares instruction, and receive webpage by browser server and share instruction.
For example, the webpage of user's current accessed is A, when needing webpage A sharing the space of user, user can lead to " space " button triggering webpage for crossing click sharing function region shares instruction, and browser server receives webpage and shares instruction, The webpage shares instruction and carries the address of webpage A and the space address of user, and the address of webpage A is as described to treat sharing web page Address, the space address of user is that the target shares address.
102:It treats sharing web page address, sharing web page to be treated described in acquisition according to described;
Specifically, browser server treats sharing web page address according to what is got, and sharing web page address pair is treated to described The server answered sends webpage information request, receive after the corresponding server in sharing web page address allow response after, download The webpage information for treating sharing web page, to treat sharing web page described in acquisition.
It should be noted that when described in acquisition when sharing web page, the whole webpages for treating sharing web page letter can be downloaded Breath can not also download the whole webpage informations for treating sharing web page, but download the part webpage information for treating sharing web page, download Webpage information type can be set by browser server end, browser server can be with setting information template, described information Template includes needing from the information type treated sharing web page and downloaded, and browser server downloads institute according to described information template State the information for treating sharing web page.Such as the information model can include word, pictorial information, without including the links categories such as hyperlink letter Breath.By set information template, the unnecessary information for obtaining and treating in sharing web page is avoided, improves the speed that webpage is shared Degree.
For example, only the text information shown on Sina's homepage need to be obtained when sharing web page is Sina's homepage when described And pictorial information, the jump address of each link on Sina's homepage do not need to then obtain.
103:Sharing web page is treated according to described, generates webpage capture picture;
Specifically, it treats sharing web page according to described, sectional drawing is carried out to it, the corresponding webpage capture figure of sharing web page is treated in generation Piece.
Wherein, it is treating that sharing web page carries out sectional drawing to described, the corresponding webpage capture picture of sharing web page is treated described in generation During, only the partial content for treating sharing web page of selection can not be cut to entirely treating that sharing web page carries out sectional drawing Figure, the selected partial content for treating sharing web page can be preset.For example, preset the head chosen and treated in sharing web page News region only carries out sectional drawing to the region, generates corresponding webpage capture picture;
Wherein, when described in generation when sharing web page corresponding webpage capture picture, original can be treated sharing web page Typesetting again is carried out according to pre-set template to classify so that user is very clear when browsing webpage capture picture.
For example, treating sharing web page according to described, when generating webpage capture picture, can will be treated on sharing web page according to template Picture and the caption typesetting again of display, the picture for treating to show on sharing web page is shown in the left side of webpage capture picture, The caption for treating to show on sharing web page is shown on the right side of webpage capture picture.
104:The webpage capture picture is sent to the target and shares the corresponding server in address so that the service Device shows the webpage capture picture when receiving the webpage capture picture.
Specifically, the webpage capture picture is sent to the target and shares the corresponding server in address, the target Share the corresponding server in address and will share in target and the webpage capture picture, the target are shown on the corresponding webpage in address Share the About You that the corresponding webpage in address is generally third party's business of user, such as the microblogging homepage of individual subscriber, Target, which is shared, shows the webpage capture picture on the corresponding webpage in address, realize and share webpage capture picture to third party The function of business.
Method provided in an embodiment of the present invention shares instruction by receiving webpage, and the webpage, which is shared instruction and carried, to be treated point It enjoys web page address and shares address with target;It treats sharing web page address, sharing web page to be treated described in acquisition according to described;It is treated according to described Sharing web page generates webpage capture picture;The webpage capture picture is sent to the target and shares the corresponding service in address Device so that the server shows the webpage capture picture when receiving the webpage capture picture.It is using the present invention Technical solution by treating sharing web page described in acquisition, and generates webpage capture picture, is uploaded to the target and shares address correspondence Server, webpage capture picture can be shared to target in the case where not expending customer flow and share address, operation letter Folk prescription is just.
Optionally, on the basis of embodiment technical solution shown in Fig. 1, the step 103 " treat sharing web page according to described, Generate webpage capture picture " including step 103a:
103a:According to default photo resolution and default picture format attribute, treat that sharing web page carries out sectional drawing to described, Generate the webpage capture picture being consistent with the default photo resolution and default picture format attribute.
When generating webpage capture picture, according to default photo resolution and default picture format attribute, treated point to described Enjoy webpage and carry out sectional drawing, the resolution ratio and the attribute of a configuration of the webpage capture picture of the generation and the default photo resolution and Default picture format attribute is consistent.
Wherein, the picture format attribute can include bmp forms, jpg forms etc..
It should be noted that the default photo resolution and default picture format attribute can be with technical staff in exploitation Setting, can also in use be set by user.
Optionally, on the basis of embodiment technical solution shown in Fig. 1, step 103a is " according to default photo resolution And default picture format attribute, treat that sharing web page carries out sectional drawing to described, generation is with the default photo resolution and in advance If the webpage capture picture that picture format attribute is consistent " is including step 103a-1 and step 103a-2:
103a-1:It treats that sharing web page carries out snapshots of web pages to described according to default picture format attribute, obtains described treat point Enjoy the snapshot picture of webpage;
Specifically, it treats sharing web page according to the crawl of default picture format attribute, saves as and default picture format category The snapshot picture that property is consistent.
Snapshot is carried out by treating sharing web page by browser server, the snapshot picture got can be treated including this The full content that sharing web page is shown, and when avoiding using sectional drawing softwares sectional drawing, it can only intercept by client device screen The web page display area of size limitation, ensure that the integrality of webpage capture.
103a-2:The snapshot picture is adjusted according to default photo resolution, the picture after adjustment is retrieved as The webpage capture picture being consistent with the default photo resolution and default picture format attribute.
According to default photo resolution, the picture that the snapshot picture is adjusted to be consistent with presetting photo resolution will The picture being consistent with default photo resolution is retrieved as the webpage capture picture, the resolution ratio of the webpage capture picture and The attribute of a configuration is consistent with the default photo resolution and default picture format attribute.
In order to get the full picture of webpage, the adjustment described in the embodiment of the present invention refers to according to default picture point Resolution zooms in and out snapshot picture.
Optionally, on the basis of embodiment technical solution shown in Fig. 1, the step 103 is " according to the sharing web page for the treatment of After webpage information, generation webpage capture picture ", the method further includes step 105:
105:When the webpage capture picture being sent to the target sharing the corresponding server in address, treated described Sharing web page address is sent to the server so that the server is receiving the webpage capture picture and described treating point When enjoying web page address, show the webpage capture picture and described treat sharing web page address.
Wherein, it is described treat sharing web page address can in the form of a link the target share on the corresponding webpage in address show Show, jump target treats sharing web page to be described, and the click for treating that sharing web page address links can be redirected by user Sharing web page is treated to described, so that user can further browse webpage after the sectional drawing picture is browsed.
For example, described treat sharing web page as A, the target shares the corresponding business in address for B, when needing A points of webpage When enjoying to business B, the address of the sectional drawing picture of the webpage A got and webpage A is sent to the corresponding servers of business B, Share the setting of the corresponding server in address by target, the sectional drawing picture of webpage A and webpage A can be shown on business B Address, wherein, the address of webpage A is shown on the webpage of business B in the form of a link, is clicked the address of webpage A and can be jumped Go to webpage A.
Optionally, on the basis of embodiment technical solution shown in Fig. 1, the target shares what address was determined according to user The log-on message of target webpage and the user generate.
Specifically, determine that third party's business, such as user select space, a variety of third party's industry of blog by the selection of user Any one of business business, can determine target webpage, in the sectional drawing figure that will treat sharing web page according to determining third party's business Piece, which is sent to when the target shares the corresponding server in address, needs user to log in the target webpage, at this time browser service Device can obtain the log-on message of user, the target webpage and the log-on message of user determined according to user, it may be determined that treat point The destination address of the sectional drawing picture of webpage is enjoyed, as target shares address.
For example, when user is needed target webpage that when sharing web page A shares to the space of user, the user determines The as webpage in space, when server that the space address that user is sent to when the sectional drawing picture of sharing web page A is corresponding, need User logs in, once user logs in space, the browser server can get the log-on message of user, according to space The log-on message generation target of webpage and user share address, share the sectional drawing that address can will treat sharing web page A according to target Picture is sent to the target with the address for treating sharing web page A and shares the corresponding server in address, to share in the target The webpage capture picture and the address for treating sharing web page A are shown on the corresponding webpage in address.
Method provided in an embodiment of the present invention shares instruction by receiving webpage, and the webpage, which is shared instruction and carried, to be treated point It enjoys web page address and shares address with target;It treats sharing web page address, sharing web page to be treated described in acquisition according to described;It is treated according to described Sharing web page generates webpage capture picture;The webpage capture picture is sent to the target and shares the corresponding service in address Device so that the server shows the webpage capture picture when receiving the webpage capture picture.It is using the present invention Technical solution by treating sharing web page described in acquisition, and generates webpage capture picture, is uploaded to the target and shares address correspondence Server, webpage capture picture can be shared to target in the case where not expending customer flow and share address, operation letter Folk prescription is just.
The alternative embodiment that any combination forms the present invention may be used, herein no longer in above-mentioned all optional technical solutions It repeats one by one.
Fig. 2 is a kind of flow chart of webpage capture method provided in an embodiment of the present invention.The execution master of the inventive embodiments Body is browser server, referring to Fig. 2, the method includes:
201:Browser server receives webpage and shares instruction, the webpage share instruction carry treat sharing web page address with Target shares address;
The embodiment of the present invention is to provide to share webpage to third in browser navigation area with browser client Sharing for square business is illustrated for button, and Fig. 3 is a kind of schematic diagram in sharing function region provided in an embodiment of the present invention.
As shown in figure 3, browser client provides " share to " mark in browser navigation area, to represent to share work( Energy region provides third parties' service selection buttons such as " microblogging ", " space ", " blog " in sharing function region, passes through user couple The clicking trigger webpage of any third party's service selection button shares instruction so that browser client is sent out to browser server The webpage is given to share instruction, and webpage is received by browser server and shares instruction.Wherein, the webpage of current accessed is and treats point Webpage is enjoyed, the webpage of third party's business is target webpage.User logs in letter after clicking third party's service selection button Breath, determines that target shares address, the webpage is shared in instruction according to the target webpage that user determines with the log-on message of user It carries this and treats that address is shared in sharing web page address with the target.
In addition, browser client can also provide " share to " button in browser navigation area represents sharing function area Domain, when " share to " button is clicked, on browser client interface pop-up share menu, provide " microblogging ", " space ", The third parties such as " blog " service selection option selects triggering webpage to share instruction for user.
It should be noted that browser client can be located at mobile terminal or personal computer terminal, due to being moved The limitation of dynamic terminal or personal computer terminal screen size, the webpage of current accessed shown in Fig. 3 is not complete webpage, is used Family can carry out slide by the scroll bar provided browser client and browse to complete webpage.
202:Browser server is treated sharing web page address, sharing web page to be treated described in acquisition according to;
Example based on Fig. 3, the embodiment of the present invention illustrate for the full page of sharing web page is only treated to obtain.It is clear Device server of looking at treats sharing web page address according to the current accessed, obtains the full page for treating sharing web page.
203:Browser server treats that sharing web page carries out snapshots of web pages according to default picture format attribute to described, obtains The snapshot picture for treating sharing web page;
The embodiment of the present invention to the full page for treating sharing web page for carrying out snapshots of web pages.
204:Browser server is adjusted the snapshot picture according to default photo resolution, by the figure after adjustment Piece is retrieved as the webpage capture picture being consistent with the default photo resolution and default picture format attribute.
205:Browser server is by the webpage capture picture and described treats that sharing web page address is sent to the target Share the corresponding server in address so that the server receive the webpage capture picture and it is described with treating sharing web page During location, show the webpage capture picture and described treat sharing web page address.
The embodiment of the present invention is for using mobile terminal to show the webpage capture picture on microblogging interface.Based on figure 3 example, step 201-205 can be:Browser server is received shares finger by the webpage that current web page is shared to microblogging It enables, current accessed treats sharing web page, and treat the whole of sharing web page to this according to the default picture format attribute in acquisition Fig. 3 A page carries out snapshots of web pages, obtains snapshot picture, adjusts the snapshot picture according to the default photo resolution, generates webpage The webpage capture picture is treated that the address of sharing web page is sent to the corresponding server of the microblogging webpage by sectional drawing picture with this, So that the webpage capture picture can be shown on the microblogging interface of user and described treats sharing web page address.
Example based on Fig. 3, Fig. 4 is a kind of sectional drawing effect diagram provided in an embodiment of the present invention, with third party's business For microblogging.Share the corresponding server in address when target receiving the webpage capture picture and described treating sharing web page During address, show the webpage capture picture and it is described treat sharing web page address, any user can be in the microblogging pair at this time The webpage capture picture is browsed on the target webpage answered and this treats sharing web page address.
Example based on Fig. 4, due to being limited by currently used mobile terminal screen size, user is in browsing webpage During sectional drawing picture, it is impossible to browse to complete webpage capture picture, user can be carried out by the scroll bar of mobile terminal at this time Slide browses to entire webpage capture picture.It should be noted that the scroll bar is only a kind of realization method of slip, it is real The mechanism that touch screen slides the page can also be provided in the application of border, to see full picture.
Method provided in an embodiment of the present invention shares instruction by receiving webpage, and the webpage, which is shared instruction and carried, to be treated point It enjoys web page address and shares address with target;It treats sharing web page address, sharing web page to be treated described in acquisition according to described;It is treated according to described Sharing web page generates webpage capture picture;The webpage capture picture is sent to the target and shares the corresponding service in address Device so that the server shows the webpage capture picture when receiving the webpage capture picture.It is using the present invention Technical solution by treating sharing web page described in acquisition, and generates webpage capture picture, is uploaded to the target and shares address correspondence Server, webpage capture picture can be shared to target in the case where not expending customer flow and share address, operation letter Folk prescription is just.
Fig. 5 is a kind of webpage capture apparatus structure schematic diagram provided in an embodiment of the present invention.The execution of the inventive embodiments Main body is browser server, and referring to Fig. 5, described device includes:
Command reception module 51 shares instruction for receiving webpage, and the webpage is shared instruction and carried with treating sharing web page Share address with target in location;
Webpage acquisition module 52, for treating sharing web page address, sharing web page to be treated described in acquisition according to;
Image generating module 53 for treating sharing web page according to, generates webpage capture picture;
Picture sending module 54 shares the corresponding service in address for the webpage capture picture to be sent to the target Device so that the server shows the webpage capture picture when receiving the webpage capture picture.
Optionally, the image generating module 53 includes:
Picture generation unit, for according to default photo resolution and default picture format attribute, waiting to share to described Webpage carries out sectional drawing, generates the webpage capture picture being consistent with the default photo resolution and default picture format attribute.
Optionally, the picture generation unit includes:
Snapshots of web pages subelement, for treating that sharing web page carries out snapshots of web pages to described according to default picture format attribute, Obtain the snapshot picture for treating sharing web page;
Picture obtains subelement, for being adjusted according to default photo resolution to the snapshot picture, after adjustment Picture be retrieved as the webpage capture picture being consistent with the default photo resolution and default picture format attribute.
Optionally, described device further includes:
Web page address sending module, for share address corresponding when the webpage capture picture is sent to the target During server, treat that sharing web page address is sent to the server by described so that the server is receiving the webpage Sectional drawing picture and described when sharing web page address shows the webpage capture picture and described treats sharing web page address.
Optionally, the target shares target webpage that address determined according to user and the log-on message of the user is given birth to Into.
Device provided in an embodiment of the present invention shares instruction by receiving webpage, and the webpage, which is shared instruction and carried, to be treated point It enjoys web page address and shares address with target;It treats sharing web page address, sharing web page to be treated described in acquisition according to described;It is treated according to described Sharing web page generates webpage capture picture;The webpage capture picture is sent to the target and shares the corresponding service in address Device so that the server shows the webpage capture picture when receiving the webpage capture picture.It is using the present invention Technical solution by treating sharing web page described in acquisition, and generates webpage capture picture, is uploaded to the target and shares address correspondence Server, webpage capture picture can be shared to target in the case where not expending customer flow and share address, operation letter Folk prescription is just.
It should be noted that:The device for the webpage capture that above-described embodiment provides is in webpage capture, only with above-mentioned each work( Can module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different functions Module is completed, i.e., the internal structure of equipment is divided into different function modules, described above all or part of to complete Function.In addition, the device of webpage capture and the embodiment of the method for webpage capture that above-described embodiment provides belong to same design, Specific implementation process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (11)

  1. A kind of 1. webpage capture method, which is characterized in that in browser server, the method includes:
    It receives webpage and shares instruction, the webpage shares instruction carrying and treats that address is shared in sharing web page address with target;
    It treats sharing web page address, sharing web page to be treated described in acquisition according to described;
    Sharing web page is treated according to described, generates webpage capture picture;
    The webpage capture picture is sent to the target and shares the corresponding server in address so that the target shares address Corresponding server shows the webpage capture picture when receiving the webpage capture picture.
  2. 2. according to the method described in claim 1, it is characterized in that, treat sharing web page according to described, webpage capture picture is generated, Including:
    According to default photo resolution and default picture format attribute, treat that sharing web page carries out sectional drawing, generation and institute to described State default photo resolution and webpage capture picture that default picture format attribute is consistent.
  3. 3. according to the method described in claim 2, it is characterized in that, according to default photo resolution and default picture format category Property, treat that sharing web page carries out sectional drawing to described, generation is consistent with the default photo resolution and default picture format attribute Webpage capture picture, including:
    It treats that sharing web page carries out snapshots of web pages to described according to default picture format attribute, obtains the snapshot for treating sharing web page Picture;
    The snapshot picture is adjusted according to default photo resolution, the picture after adjustment is retrieved as and the default figure The webpage capture picture that chip resolution and default picture format attribute are consistent.
  4. 4. according to the method described in claim 1, it is characterized in that, according to the webpage information for treating sharing web page, net is generated After page sectional drawing picture, the method further includes:
    When the webpage capture picture being sent to the target sharing the corresponding server in address, sharing web page is treated by described Address is sent to the target and shares the corresponding server in address so that the target is shared the corresponding server in address and received To the webpage capture picture and described when the sharing web page address, show the webpage capture picture and described treat sharing web page Address.
  5. 5. according to claim 1-4 any one of them methods, which is characterized in that the target is shared address and determined according to user Target webpage and the user log-on message generation.
  6. 6. a kind of webpage capture device, which is characterized in that in browser server, described device to include:
    Command reception module shares instruction for receiving webpage, and the webpage shares instruction carrying and treats sharing web page address and mesh Mark shares address;
    Webpage acquisition module, for treating sharing web page address, sharing web page to be treated described in acquisition according to;
    Image generating module for treating sharing web page according to, generates webpage capture picture;
    Picture sending module is shared the corresponding server in address for the webpage capture picture to be sent to the target, is made It obtains the target and shares the corresponding server in address when receiving the webpage capture picture, show the webpage capture figure Piece.
  7. 7. device according to claim 6, which is characterized in that the image generating module includes:
    Picture generation unit, for according to default photo resolution and default picture format attribute, sharing web page to be treated to described Sectional drawing is carried out, generates the webpage capture picture being consistent with the default photo resolution and default picture format attribute.
  8. 8. device according to claim 7, which is characterized in that the picture generation unit includes:
    Snapshots of web pages subelement for treating that sharing web page carries out snapshots of web pages to described according to default picture format attribute, obtains The snapshot picture for treating sharing web page;
    Picture obtains subelement, for being adjusted according to default photo resolution to the snapshot picture, by the figure after adjustment Piece is retrieved as the webpage capture picture being consistent with the default photo resolution and default picture format attribute.
  9. 9. device according to claim 6, which is characterized in that described device further includes:
    Web page address sending module shares the corresponding service in address for ought the webpage capture picture be sent to the target During device, treat that sharing web page address is sent to the target and shares the corresponding server in address by described so that the target is shared The corresponding server in address receive the webpage capture picture and it is described when sharing web page address when, show the webpage cut Figure picture and described treat sharing web page address.
  10. 10. according to claim 6-9 any one of them devices, which is characterized in that it is true according to user that the target shares address Fixed target webpage and the log-on message generation of the user.
  11. 11. a kind of computer readable storage medium, which is characterized in that in the computer readable storage medium storage there are one or The multiple programs of person, one or more of programs are performed by processor, to realize the net as described in claim 1 to 5 is any Page screenshot method.
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 CN104035929A (en) 2014-09-10
CN104035929B true 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)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106657579B (en) * 2016-09-29 2020-12-11 泾县谷声信息科技有限公司 Content sharing method and device and terminal
CN106533926B (en) * 2016-12-27 2020-06-12 武汉斗鱼网络科技有限公司 Webpage information spreading method and device
CN106790202A (en) * 2017-01-03 2017-05-31 努比亚技术有限公司 A kind of multimedia file shares processing method, device and terminal
CN106873871B (en) * 2017-01-06 2018-09-11 腾讯科技(深圳)有限公司 Page screenshot method and apparatus
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
CN109033466B (en) * 2018-08-31 2019-12-03 掌阅科技股份有限公司 Page sharing method calculates equipment and computer 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

Citations (6)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9733886B2 (en) * 2009-11-24 2017-08-15 Clearslide, Inc. Method and system for browser-based screen sharing
US9535651B2 (en) * 2009-12-18 2017-01-03 Oracle International Corporation Co-browsing systems and methods

Patent Citations (6)

* 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
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

Also Published As

Publication number Publication date
CN104035929A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN104035929B (en) Webpage capture method and apparatus
CN103246678B (en) A kind of web page content preview method and apparatus
KR20120079416A (en) Method and apparatus for sharing contents service of web page and thereof system
US20110320957A1 (en) Method and apparatus for analyzing usage patterns and customizing a graphic interface for individual users
US20140282069A1 (en) System and Method of Storing, Editing and Sharing Selected Regions of Digital Content
US20100235750A1 (en) System, method and program product for a graphical interface
CN107229760B (en) Storage medium, electronic device, the display methods of web page contents and device
CN106406851A (en) Webpage image capture method and system
US9619847B2 (en) Method, device and terminal for acting on graphical objects displayed in a mobile application
JP6675502B2 (en) System, control method, program
CN108363749B (en) Method and apparatus for information processing
JP2006004136A (en) Html file processing method and program
CN104580298B (en) File upload process method and device
US11307911B2 (en) File upload modifications for client side applications
CN107358095A (en) A kind of threat detection method, device and network system
JP4938589B2 (en) Web page browsing device and web page browsing server
US11507731B2 (en) Systems and methods of generating a website
US10664538B1 (en) Data security and data access auditing for network accessible content
JP2005165872A (en) Content display system and method of portable terminal, program and program recording medium
CN106156253A (en) Obtain and the partial content of shared webpage the method and apparatus that generates Web page bookmark
Xiao et al. A dynamic web page adaptation for mobile device based on web2. 0
KR101662816B1 (en) System and method for providng rink information, and apparatus applied to the same
CN107409327B (en) Processing operation method and equipment
JP2018169925A (en) Information processing system, information processing method, and information processing device
CN104063118B (en) A kind of the click display methods and device of web page contents

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