CN110807163A - Method and apparatus for facilitating content sharing - Google Patents

Method and apparatus for facilitating content sharing Download PDF

Info

Publication number
CN110807163A
CN110807163A CN201810875683.3A CN201810875683A CN110807163A CN 110807163 A CN110807163 A CN 110807163A CN 201810875683 A CN201810875683 A CN 201810875683A CN 110807163 A CN110807163 A CN 110807163A
Authority
CN
China
Prior art keywords
content
picture
key content
user
style
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810875683.3A
Other languages
Chinese (zh)
Inventor
许泽玮
宋传胜
安松松
郭洪霖
商洪亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xianzhi Chuangke Beijing Technology Co Ltd
Original Assignee
Xianzhi Chuangke Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xianzhi Chuangke Beijing Technology Co Ltd filed Critical Xianzhi Chuangke Beijing Technology Co Ltd
Priority to CN201810875683.3A priority Critical patent/CN110807163A/en
Publication of CN110807163A publication Critical patent/CN110807163A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method and a device for facilitating content sharing, wherein the method comprises the following steps: when a user wants to share article content of a certain webpage with a specific application, generating the webpage with key content according to a specified html template, wherein the key content at least comprises the article content; displaying the generated web page for review by the user, wherein the displayed web page is arranged to allow the user to change the style of the key content; after the user reviews the displayed web page, sending the key content and a style of the key content in the displayed web page to a server; when receiving an access address of a picture containing the key content from the server, sending the access address of the picture to the specific application. By the method and the device, the generation speed of the picture can be increased, and a user can be allowed to customize the style of the article content in the picture.

Description

Method and apparatus for facilitating content sharing
Technical Field
The invention relates to the field of internet, in particular to a method and a device for facilitating content sharing.
Background
When browsing a webpage, a user sometimes wants to send article content of the webpage to some applications such as a microblog and a WeChat to share with a friend.
Since the picture transmission is more convenient than the text transmission or the web page transmission, and the size of the picture is very small, some techniques for sharing by converting the article content of the web page into the picture have appeared.
These techniques, however, do not produce pictures at the desired speed and do not allow the user to customize the style of the article content in the picture.
Disclosure of Invention
In view of the above problems of the prior art, embodiments of the present invention provide a method and apparatus for facilitating content sharing, which can improve the generation speed of pictures and allow a user to customize the style of article content in the pictures.
A method for facilitating content sharing according to an embodiment of the present invention includes: when a user wants to share article content of a certain webpage with a specific application, generating the webpage with key content according to a specified html template, wherein the key content at least comprises the article content; displaying the generated web page for review by the user, wherein the displayed web page is arranged to allow the user to change the style of the key content; after the user reviews the displayed web page, sending the key content and a style of the key content in the displayed web page to a server; and when receiving an access address of a picture containing the key content from the server, transmitting the access address of the picture to the specific application.
A method for facilitating content sharing according to an embodiment of the present invention includes: when receiving key content and a style of the key content from a client, calling a PhantomJS process to generate a picture with the key content according to a specified html template and the style, wherein the key content at least comprises article content of a webpage which a user wants to share; sending the picture to a storage server for storage; and when receiving the access address of the picture from the storage server, sending the access address of the picture to the client.
An apparatus for facilitating content sharing according to an embodiment of the present invention includes: the system comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for generating a webpage with key content according to a specified html template when a user wants to share the article content of a certain webpage to a specific application, and the key content at least comprises the article content; a display module for displaying the generated web page for review by the user, wherein the displayed web page is arranged to allow the user to change the style of the key content; a first sending module, configured to send the key content and the style of the key content in the displayed webpage to a server after the user reviews the displayed webpage; and a second sending module, configured to send, to the specific application, an access address of a picture including the key content when the access address of the picture is received from the server.
An apparatus for facilitating content sharing according to an embodiment of the present invention includes: the second generation module is used for calling a PhantomJS process to generate a picture with the key content according to a specified html template and a style when the key content and the style of the key content are received from a client, wherein the key content at least comprises article content of a webpage which a user wants to share; the third sending module is used for sending the picture to a storage server for storage; and the fourth sending module is used for sending the access address of the picture to the client when the access address of the picture is received from the storage server.
An electronic device according to an embodiment of the present invention includes: a processor; and a memory having stored thereon executable instructions that, when executed, cause the processor to perform the first method above.
An image generation server according to an embodiment of the present invention includes: a processor; and a memory having stored thereon executable instructions that, when executed, cause the processor to perform the second method above.
A machine-readable storage medium according to an embodiment of the invention has stored thereon executable instructions that, when executed, cause a machine to perform the foregoing method.
The scheme of the embodiment of the invention generates the picture by using the PhantomJS process with quick picture generation capability and allows the user to change the style of the article content in the picture according to the preference of the user before generating the picture, so compared with the prior art, the scheme of the embodiment of the invention can improve the generation speed of the picture and allow the user to customize the style of the article content in the picture.
Drawings
The features, characteristics, advantages and benefits of the present invention will become apparent from the following detailed description taken in conjunction with the accompanying drawings.
FIG. 1 illustrates an architectural diagram of a system that facilitates content sharing according to one embodiment of the invention.
FIG. 2 illustrates an overall flow diagram of a method of facilitating content sharing in accordance with one embodiment of the present invention.
Fig. 3 illustrates a flow diagram of a method of facilitating content sharing in accordance with a first embodiment of the present invention.
Fig. 4 illustrates a flow diagram of a method of facilitating content sharing in accordance with a second embodiment of the present invention.
Fig. 5 illustrates a schematic diagram of an apparatus for facilitating content sharing according to a first embodiment of the present invention.
Fig. 6 illustrates a schematic diagram of an apparatus for facilitating content sharing according to a second embodiment of the present invention.
Fig. 7 shows a schematic view of an electronic device according to an embodiment of the invention.
Fig. 8 shows a schematic diagram of a picture generation server according to an embodiment of the invention.
Detailed Description
Hereinafter, various embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 illustrates an architectural diagram of a system that facilitates content sharing according to one embodiment of the invention. As shown in fig. 1, a system 10 for facilitating content sharing may include a client 20, a picture generation server 30, and a storage server 40.
The client 20 is installed on an electronic device used by a user, which may be, but is not limited to, a smart phone, a desktop computer, a notebook computer, a Personal Digital Assistant (PDA), a game console, and the like. When a user browses a webpage on an electronic device and wants to share article content of the webpage with an application such as a microblog, a wechat, etc., the user may activate the client 20, for example, but not limited to, by an icon or a menu item on the webpage, and then the client 20 sends key content including the article content, time information, and browsing times of the article content on the webpage desired to be shared and a user-defined style of the key content in a picture to the picture generation server 30 to generate a picture with the key content in the style, and sends a URL address of the generated picture to an application such as a microblog, a wechat, etc. so that the application acquires the picture for sharing.
Picture generation server 30 may communicate with client 20 by, for example, but not limited to, wireless. After receiving the key content and the style thereof from the client 20, the picture generation server 30 calls the PhantomJS process to generate a picture with the key content in accordance with the style, transmits the generated picture to the storage server 40 for storage, and transmits the URL address of the picture returned by the storage server 40 to the client 20. PhantomJS is a browser engine (Webkit) based Java script Application Programming Interface (API) that has very fast picture generation capability and supports a very wide range of content styles.
The storage server 40 may communicate with the picture creation server 30 in a wireless or wired manner. The storage server 40 is used to store pictures and allow the pictures to be downloaded.
FIG. 2 illustrates an overall flow diagram of a method of facilitating content sharing in accordance with one embodiment of the present invention. The method 200 shown in FIG. 2 is described in detail below in conjunction with the system 10 shown in FIG. 1.
As shown in fig. 2, at block 202, when a user browses a web page on an electronic device on which the client 20 is installed and wants to share article content of a certain web page W on an application AP, such as a microblog, a WeChat, etc., the user triggers the client 20, for example, but not limited to, through an icon or a menu item on the web page W.
At block 206, after being triggered by the user, the client 20 obtains the article content, the time information and the reading times of the article content from the web page W.
At block 210, the client 20 generates a web page PG1 with key content K according to a predetermined hypertext markup language (html) template MOD. The key content K includes the article content, time information, and reading times obtained at block 206. The generated web page PG1 is set to allow the user to change the style of the key content K therein. Here, the style may be, but is not limited to, font type, font size, text interval, and the like.
At block 214, the client 20 displays the web page PG1 for review by the user. During the auditing process, the user can change the style of the key content K in the web page PG1 according to the preference of the user.
At block 218, after reviewing the web page PG1, the client 20 transmits the key content K and the style S of the key content K in the web page PG1 to the picture-generating server 30.
At block 222, after receiving the key content K and the style S thereof from the client 20, the picture generation server 30 calls the PhantomJS process to generate the picture PIT having the key content K in accordance with the html template MOD and the style S. Here, when generating the picture PIT, if the style corresponding to the style S in the html template MOD is different from the style S, the style S is used.
At block 226, picture generation server 30 sends the generated picture PIT to storage server 40.
At block 230, storage server 40 stores the picture PIT after receiving the picture PIT from picture generation server 30.
At block 234, storage server 40 sends the Uniform Resource Locator (URL) address of the picture PIT to picture generation server 30. Here, the URL address of the picture PIT is used to access the picture PIT stored by the storage server 40.
At block 238, upon receiving the URL address of the picture PIT from the storage server 40, the picture generation server 30 stores the key content K and the URL address of the picture PIT.
At block 242, picture generation server 30 sends the URL address of the picture PIT to client 20.
After receiving the URL address of the picture PIT from the picture generation server 30, the client 20 sends the URL address of the picture PIT to the application AP, block 246.
After receiving the URL address of the picture PIT from the client 20, the application AP may download the picture PIT from the storage server 40 using the URL address of the picture PIT and display the picture PIT, thereby enabling the article content of the web page W to be shared in the application AP.
In the present embodiment, the picture generation server 30 generates a picture using the PhantomJS process having a fast picture generation capability, and therefore, the scheme of the present embodiment can improve the picture generation speed. In addition, in the present embodiment, before generating the picture, the client 20 allows the user to change the style of the article content in the picture according to the preference of the user, and therefore, the solution of the present embodiment can allow the user to customize the style of the article content in the picture.
Other variants
It should be understood by those skilled in the art that although the picture generation server 30 stores the URL addresses of the key contents K and the picture PIT in the above embodiment, the present invention is not limited thereto. In some other embodiments of the present invention, the picture generation server 30 may not store the URL addresses of the key content K and the picture PIT.
It should be understood by those skilled in the art that although in the above embodiments, the key content K includes the article content, the time information, and the number of readings of the article content, the present invention is not limited thereto. In some other embodiments of the present invention, the key content K may include article content, or article content and time information, or article content and the number of reads of the article content. Alternatively, the key content K may include other suitable information in addition to the article content, the time information, and the number of readings of the article content.
It should be understood by those skilled in the art that although in the above embodiments, the URL address of the picture PIT is used as the access address to access the picture PIT, the present invention is not limited thereto. In some other embodiments of the present invention, the access address of the picture PIT may be other types of addresses besides the URL address.
Fig. 3 illustrates a flow diagram of a method of facilitating content sharing in accordance with a first embodiment of the present invention. The method 300 shown in fig. 3 may be implemented, for example and without limitation, by the client 20.
As shown in fig. 3, the method 300 may include, at block 302, when a user wants to share article content of a certain web page with a specific application, generating a web page with key content according to a specified html template, where the key content at least includes the article content.
The method 300 may further include, at block 304, displaying the generated web page for review by the user, wherein the displayed web page is configured to allow the user to change the style of the key content.
The method 300 may further include, at block 306, after the user reviews the displayed web page, sending the key content and the style of the key content in the displayed web page to a server.
The method 300 may further include, at block 308, sending an access address of a picture containing the key content to the particular application when the access address of the picture is received from the server.
Fig. 4 illustrates a flow diagram of a method of facilitating content sharing in accordance with a second embodiment of the present invention. The method 400 shown in fig. 4 may be implemented, for example, but not limited to, by the picture generation server 30.
As shown in fig. 4, the method 400 may include, at block 402, when receiving key content and a style of the key content from a client, invoking a PhantomJS process to generate a picture with the key content according to a specified html template and the style, wherein the key content at least includes article content of a webpage that a user wants to share.
The method 400 may also include, at block 404, sending the picture to a storage server for storage.
The method 400 may further include, at block 406, sending the access address of the picture to the client when the access address of the picture is received from the storage server.
Fig. 5 illustrates a schematic diagram of an apparatus for facilitating content sharing according to a first embodiment of the present invention. The apparatus 500 shown in fig. 5 can be implemented by software, hardware or a combination of software and hardware. The apparatus 500 shown in fig. 5 may be installed in the client 20, for example, but not limited to.
As shown in fig. 5, the apparatus 500 may include a first generating module 502, a display module 504, a first transmitting module 506, and a second transmitting module 508. The first generating module 502 is configured to, when a user wants to share article content of a certain web page with a specific application, generate a web page with key content according to a specified html template, where the key content at least includes the article content. A display module 504 is configured to display the generated web page for review by the user, wherein the displayed web page is configured to allow the user to change the style of the key content. The first sending module 506 is configured to send the key content and the style of the key content in the displayed web page to a server after the user reviews the displayed web page. The second sending module 508 is configured to send the access address of the picture containing the key content to the specific application when the access address of the picture is received from the server.
Fig. 6 illustrates a schematic diagram of an apparatus for facilitating content sharing according to a second embodiment of the present invention. The apparatus 600 shown in fig. 6 can be implemented by software, hardware or a combination of software and hardware. The apparatus 600 shown in fig. 6 may be installed in the picture generation server 30, for example, but not limited thereto.
As shown in fig. 6, the apparatus 600 may include a second generating module 602, a third transmitting module 604, and a fourth transmitting module 606. The second generating module 602 is configured to, when receiving key content and a style of the key content from a client, invoke a PhantomJS process to generate a picture with the key content according to a specified html template and the style, where the key content at least includes article content of a webpage that a user wants to share. The third sending module 604 is configured to send the picture to a storage server for storage. The fourth sending module 606 is configured to send the access address of the picture to the client when the access address of the picture is received from the storage server.
Fig. 7 shows a schematic view of an electronic device according to an embodiment of the invention. As shown in fig. 7, the electronic device 700 includes a processor 702 and a memory 704, the memory 704 having stored thereon executable instructions that, when executed, cause the processor 702 to perform the method 300.
Fig. 8 shows a schematic diagram of a picture generation server according to an embodiment of the invention. As shown in fig. 8, picture-producing server 800 includes a processor 802 and a memory 804, memory 804 having stored thereon executable instructions that, when executed, cause processor 802 to perform method 400.
Embodiments of the present invention provide a machine-readable storage medium having stored thereon executable instructions that, when executed, cause a machine to perform the method 300 or 400.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A method of facilitating content sharing, comprising:
when a user wants to share article content of a certain webpage with a specific application, generating the webpage with key content according to a specified html template, wherein the key content at least comprises the article content;
displaying the generated web page for review by the user, wherein the displayed web page is arranged to allow the user to change the style of the key content;
after the user reviews the displayed web page, sending the key content and a style of the key content in the displayed web page to a server; and
when receiving an access address of a picture containing the key content from the server, sending the access address of the picture to the specific application.
2. The method of claim 1, wherein
The key content also comprises time information and the reading times of the article content.
3. A method of facilitating content sharing, comprising:
when receiving key content and a style of the key content from a client, calling a PhantomJS process to generate a picture with the key content according to a specified html template and the style, wherein the key content at least comprises article content of a webpage which a user wants to share;
sending the picture to a storage server for storage; and
and when receiving the access address of the picture from the storage server, sending the access address of the picture to the client.
4. The method of claim 3, further comprising:
and storing the key content and the access address of the picture.
5. The method of claim 3, wherein
The key content also comprises time information and the reading times of the article content.
6. An apparatus that facilitates content sharing, comprising:
the system comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for generating a webpage with key content according to a specified html template when a user wants to share the article content of a certain webpage to a specific application, and the key content at least comprises the article content;
a display module for displaying the generated web page for review by the user, wherein the displayed web page is arranged to allow the user to change the style of the key content;
a first sending module, configured to send the key content and the style of the key content in the displayed webpage to a server after the user reviews the displayed webpage; and
and the second sending module is used for sending the access address of the picture containing the key content to the specific application when the access address of the picture is received from the server.
7. The apparatus of claim 6, wherein
The key content also comprises time information and the reading times of the article content.
8. An apparatus that facilitates content sharing, comprising:
the second generation module is used for calling a PhantomJS process to generate a picture with the key content according to a specified html template and a style when the key content and the style of the key content are received from a client, wherein the key content at least comprises article content of a webpage which a user wants to share;
the third sending module is used for sending the picture to a storage server for storage; and
and the fourth sending module is used for sending the access address of the picture to the client when the access address of the picture is received from the storage server.
9. The apparatus of claim 8, further comprising:
and the storage module is used for storing the key content and the access address of the picture.
10. The apparatus of claim 8, wherein
The key content also comprises time information and the reading times of the article content.
11. An electronic device, comprising:
a processor; and
a memory having stored thereon executable instructions that, when executed, cause the processor to perform the method of any of claims 1-2.
12. A picture generation server comprising:
a processor; and
a memory having stored thereon executable instructions that, when executed, cause the processor to perform the method of any of claims 3-5.
13. A machine-readable storage medium having stored thereon executable instructions that, when executed, cause a machine to perform the method of any one of claims 1-5.
CN201810875683.3A 2018-08-03 2018-08-03 Method and apparatus for facilitating content sharing Pending CN110807163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810875683.3A CN110807163A (en) 2018-08-03 2018-08-03 Method and apparatus for facilitating content sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810875683.3A CN110807163A (en) 2018-08-03 2018-08-03 Method and apparatus for facilitating content sharing

Publications (1)

Publication Number Publication Date
CN110807163A true CN110807163A (en) 2020-02-18

Family

ID=69486844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810875683.3A Pending CN110807163A (en) 2018-08-03 2018-08-03 Method and apparatus for facilitating content sharing

Country Status (1)

Country Link
CN (1) CN110807163A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511405A (en) * 2020-10-30 2021-03-16 百果园技术(新加坡)有限公司 Sharing method and device for social application, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258024A (en) * 2013-05-07 2013-08-21 百度在线网络技术(北京)有限公司 Method, system and device for sharing local contents of pictures in webpage
CN106156053A (en) * 2015-03-27 2016-11-23 阿里巴巴集团控股有限公司 Webpage skin change method, Apparatus and system
CN106815316A (en) * 2016-12-23 2017-06-09 北京奇虎科技有限公司 Method, device and mobile terminal that content of pages is shared
CN107809492A (en) * 2017-12-08 2018-03-16 广东太平洋互联网信息服务有限公司 The generation method and system of sharing information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258024A (en) * 2013-05-07 2013-08-21 百度在线网络技术(北京)有限公司 Method, system and device for sharing local contents of pictures in webpage
CN106156053A (en) * 2015-03-27 2016-11-23 阿里巴巴集团控股有限公司 Webpage skin change method, Apparatus and system
CN106815316A (en) * 2016-12-23 2017-06-09 北京奇虎科技有限公司 Method, device and mobile terminal that content of pages is shared
CN107809492A (en) * 2017-12-08 2018-03-16 广东太平洋互联网信息服务有限公司 The generation method and system of sharing information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511405A (en) * 2020-10-30 2021-03-16 百果园技术(新加坡)有限公司 Sharing method and device for social application, server and storage medium

Similar Documents

Publication Publication Date Title
CN109636488B (en) Advertisement putting method and device
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US20020065910A1 (en) Method, system, and program for providing access time information when displaying network addresses
US20100324999A1 (en) Advertisement proxy service
US20130132422A1 (en) System and method for creating and controlling an application operating on a plurality of computer platform types
JP6440828B2 (en) Visibility detection of digital content
EP2962216A1 (en) Sharing application states
WO2009153392A1 (en) Method and apparatus for searching information
JP5559295B2 (en) Information providing apparatus, information providing method, information providing program, and network system
CN103970760B (en) A kind of web-page requests processing method and processing device
KR20140033094A (en) Embedded web viewer for presentation applications
CN103336794B (en) For providing the corresponding method and apparatus that information is presented in target pages
WO2015074459A1 (en) Method and apparatus for opening webpage, invoking client, and creating light app
CN106487662B (en) Information sharing method and device
US20180137546A1 (en) Systems and methods for delivering advertisements
CN113656737B (en) Webpage content display method and device, electronic equipment and storage medium
CN108319474B (en) Page information generation method, device and equipment
CN113330432A (en) Asynchronous predictive caching of content listed in search results
CN110807163A (en) Method and apparatus for facilitating content sharing
US11909701B2 (en) Dynamic content delivery via email
CN107193819B (en) Method and equipment for webpage pre-reading, browser and client equipment
CN111444448A (en) Data processing method, server and system
US8554787B2 (en) Second search engine utilizing selected results from first search engine
US20220086240A1 (en) Aggregated conversion measurement
JPWO2007013280A1 (en) Plug-in module execution method, browser execution method, mailer execution method, program, terminal device, and computer-readable recording medium on which page data is recorded

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination