CN113542335A - Information sharing method and device, electronic equipment and storage medium - Google Patents

Information sharing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113542335A
CN113542335A CN202010365389.5A CN202010365389A CN113542335A CN 113542335 A CN113542335 A CN 113542335A CN 202010365389 A CN202010365389 A CN 202010365389A CN 113542335 A CN113542335 A CN 113542335A
Authority
CN
China
Prior art keywords
webpage
client
sharing
element information
shared
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
CN202010365389.5A
Other languages
Chinese (zh)
Inventor
喻宙
徐倩怡
哈志辉
聂小涛
李海栋
吴宇涛
史寅
朱斌
卢姝含
周敏明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010365389.5A priority Critical patent/CN113542335A/en
Publication of CN113542335A publication Critical patent/CN113542335A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The embodiment of the disclosure discloses an information sharing method, an information sharing device, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to the received sharing request, and analyzing webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser; and transmitting the webpage element information to the shared person client so that the shared person client renders and displays the second webpage according to the webpage element information. According to the technical scheme of the embodiment, the first page accessed by the sharer client is analyzed, and the webpage element information obtained through analysis is transmitted to the sharer client, so that the second webpage displayed by the sharer client and the first webpage displayed by the sharer client have the same webpage element information, the webpage information sharing of the sharer client and the shared client is realized, and the webpage information interaction efficiency and the sharing experience of users are improved.

Description

Information sharing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and in particular, to an information sharing method and apparatus, an electronic device, and a storage medium.
Background
With the continuous development of the internet and communication technology, information communication through communication applications has become one of the important ways for users to communicate information. At present, in the process of sharing webpage information based on real-time interactive application, if the access permissions of a sharer client and a shared user client are different, the webpage contents displayed when the clients access the same website may be different, so that the interaction efficiency of the webpage information is reduced to a certain extent, and the webpage information sharing experience of the sharer and the shared user is influenced.
Disclosure of Invention
The embodiment of the disclosure provides an information sharing method and device, electronic equipment and a storage medium, which are used for realizing webpage information sharing of a sharer client and a shared client, and improving interaction efficiency of webpage information and sharing experience of users.
In a first aspect, an embodiment of the present disclosure provides an information sharing method, applied to a sharer client, including:
responding to a received sharing request, and analyzing webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser;
and transmitting the webpage element information to a shared client side so that the shared client side renders and displays a second webpage according to the webpage element information.
In a second aspect, an embodiment of the present disclosure further provides an information sharing method, applied to a shared person client, including:
receiving webpage element information transmitted by a sharer client, wherein the webpage element information is obtained by analyzing a first webpage requested to be shared by a sharing request in response to the received sharing request by the sharer client, and the first webpage is a webpage accessed based on a preset browser;
and rendering and displaying a second webpage according to the received webpage element information.
In a third aspect, an embodiment of the present disclosure further provides an information sharing apparatus, applied to a sharer client, including:
the system comprises an analysis module, a sharing module and a display module, wherein the analysis module is used for responding to a received sharing request and analyzing webpage element information in a first webpage requested to be shared by the sharing request, and the first webpage is a webpage accessed based on a preset browser;
and the transmission module is used for transmitting the webpage element information to the shared person client so as to render and display a second webpage according to the webpage element information by the shared person client.
In a fourth aspect, an embodiment of the present disclosure further provides an information sharing apparatus, applied to a shared person client, including:
the system comprises a receiving module, a sharing module and a sharing module, wherein the receiving module is used for receiving webpage element information transmitted by a sharer client, and the webpage element information is obtained by the sharer client responding to a received sharing request and analyzing a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser;
and the rendering display module is used for rendering and displaying a second webpage according to the received webpage element information.
In a fifth aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the information sharing method according to any one of the embodiments of the present disclosure.
In a sixth aspect, the disclosed embodiments also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the information sharing method according to any one of the disclosed embodiments.
According to the technical scheme of the embodiment of the disclosure, a sharer client responds to a received sharing request and analyzes webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser; and the sharer client transmits the webpage element information to the shared client so that the shared client renders and displays a second webpage according to the webpage element information. The first page accessed by the sharer client is analyzed, and the webpage element information obtained through analysis is transmitted to the sharer client, so that the second webpage displayed by the sharer client and the first webpage displayed by the sharer client have the same webpage element information, the condition that the contents of the displayed webpages are different when the sharer client and the sharer client respectively access the first webpage is avoided, the webpage information sharing of the sharer client and the sharer client is realized, and the interaction efficiency of the webpage information and the sharing experience of users are improved. In addition, through the existing screen sharing technology, that is, capturing a screen interface video stream of a sharer client, and transmitting the video stream to a shared client through a network bandwidth, although the content of a displayed webpage can be the same when the shared client and the shared client access a first webpage respectively, various problems such as network delay, video decompression distortion and the like easily occur in the video stream transmission process due to high requirements on the network and the video compression, so that a shared picture is not smooth and clear. The webpage sharing method disclosed by the embodiment of the disclosure not only can realize that the contents of the displayed webpage are consistent when the shared client and the sharer client access the first webpage respectively, but also can realize high-fidelity and smooth webpage information sharing, and overcomes the defects of the existing screen sharing technology.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flowchart of an information sharing method according to a first embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an information sharing method according to a second embodiment of the disclosure;
fig. 3 is a schematic flowchart of an information sharing method according to a third embodiment of the present disclosure;
fig. 4 is a schematic flowchart of an information sharing method according to a fourth embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an information sharing apparatus according to a fifth embodiment of the disclosure;
fig. 6 is a schematic structural diagram of an information sharing apparatus according to a sixth embodiment of the disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
Example one
Fig. 1 is a schematic flow chart of an information sharing method according to an embodiment of the present disclosure, which is particularly suitable for a situation where multiple clients share and display the same web page, and the method may be executed by an information sharing apparatus, which may be implemented in a form of software and/or hardware, and the apparatus may be configured in an electronic device, such as an electronic device such as a smart phone, a tablet computer, a notebook computer, or a desktop computer.
As shown in fig. 1, the information sharing method provided in this embodiment is applied to a sharer client, and includes:
s110, responding to the received sharing request, and analyzing webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser.
In the embodiment of the disclosure, when a certain client sends information to other clients so that the other clients share the information, the client can be regarded as a sharer client; the client is also the client, and when the client receives the information shared by other clients, the client is used as the client of the sharee. That is, the same client may serve as a sharer client or a sharee client.
When a client serves as a sharer client to share a webpage with other clients, the sharer client can start a preset browser and access the webpage (namely a first webpage) to be shared through the preset browser; then, a sharing request of the first webpage can be received, for example, a click operation of a webpage sharing control acted on a preset browser interface by a user is received to request to share the currently accessed first webpage; in response to the sharing request, a web page element in the first web page may be parsed.
In another embodiment, the sharing request is generated by: presenting a candidate sharing webpage input interface in response to the received sharing triggering operation of the user; and generating a sharing request based on the website input by the user on the sharing webpage input interface.
Illustratively, when the clients interact with each other in real time, such as during a chat or an audio-video conference, the interactive interface may be configured with a sharing control of a web page. The sharer client can receive trigger operations of a user on the shared control, such as single click, double click or long press, and the trigger operations are shared trigger operations; the candidate shared webpage input interface can be further presented in response to the sharing triggering operation, and the website of the first webpage requested to be shared can be input through the shared webpage interface, for example, the website of the first webpage is edited and input in a text bar control, or the website of the first webpage is input in a mode of clicking a history or collected website; the sharer client can carry the website of the first webpage input by the user on the shared webpage input interface to the sharing request, respond to the sharing request, access the first webpage through the preset browser, and analyze webpage element information in the first webpage requested to be shared by the sharing request.
That is to say, in the process of browsing a webpage through a preset browser, if a first webpage browsed at present is to be shared, a sharer client may receive a sharing request of the first webpage, and analyze webpage element information in the first webpage in response to the sharing request; in the real-time interaction process, if the first webpage is required to be shared, the sharing triggering operation of the user can be received, a sharing request is generated according to the website input by the presented candidate shared webpage input interface and the website, the first webpage is accessed based on the sharing request, and webpage element information in the first webpage is analyzed. By configuring various sharing inlets, the method is beneficial to more flexible and various sharing forms of the webpage information, is convenient for users to share the information under various operation scenes of the client, and improves the sharing efficiency and the sharing experience.
In this embodiment, the analyzing the web page element information in the first web page may be downloading and analyzing an HTML document of the first web page, acquiring the web page element information based on a tag in the HTML document, for example, acquiring a title element of the document based on a < title > </title > tag, acquiring a body element of the document based on a < body > </body > tag, acquiring a paragraph layout of a web page element based on a < p > </p > tag, or acquiring a hypertext link element based on a < a href ═ URL > tag, and the like.
And S120, transmitting the webpage element information to the shared client so that the shared client renders and displays a second webpage according to the webpage element information.
In the embodiment of the disclosure, the sharer client can transmit the webpage element information to the sharee client through the server corresponding to the client. When the shared person client receives the webpage element information sent by the shared person client, the browser can be started, and rendering and displaying are carried out on the browser interface based on the received webpage element information, so that the webpage content of a second webpage displayed by the shared person client is the same as that of a first webpage currently visited by the shared person client, the webpage information sharing of the shared person client and the shared person client is realized, and the interaction efficiency of the webpage information and the sharing experience of a user are improved.
The browser started by the shared person client and the preset browser can be the same browser or different browsers; preferably, the browser for rendering the second webpage by the sharer client and the preset browser for accessing the first webpage by the sharer client are the same browser, so as to ensure that webpage contents of the first webpage and the second webpage rendered and displayed based on the same webpage element information are consistent.
Optionally, the sharing request includes the identity information of the shared person client; correspondingly, the method for transmitting the webpage element information to the shared person client comprises the following steps: and transmitting the webpage element information to the shared person client corresponding to the identity identification information.
In this embodiment, the sharing request may also carry the identity of the client of the shared person. For example, when the sharer client shares the currently accessed first webpage, after clicking a webpage sharing control of a preset browser interface, the candidate sharer client input interface can be presented; based on the identity identification information of the shared person client input by the user on the input interface of the shared person client; and then the analyzed webpage element information can be transmitted to the shared person client corresponding to the identity identification information. For another example, after the sharer client shares the website input by the web page input interface, the identity information of the shared person client may be further input, so that after the sharer client accesses and analyzes the first web page, the analyzed web page element information is transmitted to the shared person client corresponding to the identity information.
The identity of the client of the sharee may be, for example, an account number, a nickname, a remark name, an account avatar, or the like of the client of the sharee, which is not limited herein. By carrying the identity identification information of the shared client in the sharing request, selective webpage sharing can be realized, namely the first webpage is shared only by the client which wants to share, and the experience of the user for sharing the webpage is further improved.
Optionally, the information sharing method provided by the embodiment of the present disclosure is applied to a real-time interactive application, where the real-time interactive application includes at least one of an instant messaging application, a multimedia conference application, a video live broadcast application, and a group chat interactive application; correspondingly, the preset browser is integrated in the real-time interactive application.
In the embodiment, the sharer client and the shared client are clients of real-time interactive application, and the preset browser can be embedded in the clients, so that webpage information can be shared in the real-time interactive process between the clients, the interactive form of real-time interaction is enriched, and the interactive experience of users is improved.
According to the technical scheme of the embodiment of the disclosure, a sharer client responds to a received sharing request and analyzes webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser; and the sharer client transmits the webpage element information to the shared client so that the shared client renders and displays a second webpage according to the webpage element information. The first page accessed by the sharer client is analyzed, and the webpage element information obtained through analysis is transmitted to the sharer client, so that the second webpage displayed by the sharer client and the first webpage displayed by the sharer client have the same webpage element information, the condition that the contents of the displayed webpages are different when the sharer client and the sharer client respectively access the first webpage is avoided, the webpage information sharing of the sharer client and the sharer client is realized, and the interaction efficiency of the webpage information and the sharing experience of users are improved. In addition, through the existing screen sharing technology, that is, capturing a screen interface video stream of a sharer client, and transmitting the video stream to a shared client through a network bandwidth, although the content of a displayed webpage can be the same when the shared client and the shared client access a first webpage respectively, various problems such as network delay, video decompression distortion and the like easily occur in the video stream transmission process due to high requirements on the network and the video compression, so that a shared picture is not smooth and clear. The webpage sharing method disclosed by the embodiment of the disclosure not only can realize that the contents of the displayed webpage are consistent when the shared client and the sharer client access the first webpage respectively, but also can realize high-fidelity and smooth webpage information sharing, and overcomes the defects of the existing screen sharing technology.
Example two
Fig. 2 is a flowchart illustrating an information sharing method according to a second embodiment of the disclosure. This embodiment may be combined with various alternatives of the above-described embodiments. The information sharing method provided by this embodiment optimizes the webpage parsing process, can parse the webpage structure of the first webpage to obtain the webpage elements and the rendering mode thereof, and sends the webpage elements and the rendering mode thereof as the webpage element information to the shared client, so that the shared client can render and display the second webpage according to the webpage elements and the rendering mode thereof.
As shown in fig. 2, the information sharing method provided in this embodiment includes:
s210, responding to the received sharing request, analyzing the webpage structure of the first webpage, and obtaining webpage elements and rendering modes corresponding to the webpage elements.
In the embodiment of the disclosure, the webpage elements and the rendering modes corresponding to the webpage elements are used as the webpage element information. And the first webpage is still a webpage accessed by the sharer client based on a preset browser. Specifically, the analyzing the web page structure of the first web page to obtain the web page elements and the rendering modes corresponding to the web page elements may be: downloading a Hyper Text Markup Language (HTML) document of a first webpage; analyzing the tags of the HTML Document to generate a Document Object Model (DOM), wherein the DOM provides an access Model for the whole Document, the Document is used as a tree structure, each node of the tree represents an HTML tag or a text item in the tag, and the DOM can be used as a webpage element of the first webpage; meanwhile, the Style tag of the HTML document is analyzed, a rendering Style sheet (CSS) of each webpage element in the document is determined, and the CSS can be used as a rendering mode of the webpage elements.
Optionally, analyzing the web page structure of the first web page includes: and analyzing a webpage structure rendered by the first webpage in a preset browser interface.
In this embodiment, in the process of rendering and displaying the first webpage through the preset browser, in order to optimize the rendering policy and improve the rendering display rate, the sharer client may only render the portion of the first webpage within the browser interface, and the webpage structure of the first webpage hidden outside the browser interface may not be rendered. Under the condition, the webpage structure of the first webpage is analyzed, and only the webpage structure of the first webpage which is rendered in the preset browser interface can be analyzed, so that the analysis content of the webpage structure is reduced, and the webpage analysis efficiency is improved to a certain extent.
And S220, transmitting the webpage elements and the rendering modes corresponding to the webpage elements to the shared client, so that the shared client renders the webpage elements by using the corresponding rendering modes based on the same rendering algorithm as that of a preset browser, and displays a rendered second webpage.
In this embodiment, the sharer client may transmit the web page element DOM and the rendering style CSS corresponding to the web page element to the sharee client. After receiving the DOM and the CSS, the shared client can load and analyze the CSS style sheet to generate a CSS object model; merging the DOM object model and the CSS object model to obtain a Render Tree consisting of the webpage elements to be rendered; calculating layout information of each webpage element to be rendered in a Render Tree; and rendering the webpage elements in the Render Tree in a corresponding rendering mode based on the same rendering algorithm as that of a preset browser, and drawing the rendered webpage elements on a browser interface according to the layout information so as to display a second webpage.
According to the technical scheme of the embodiment, the webpage elements obtained by analyzing the webpage structure of the first webpage and the rendering mode of the webpage elements are sent to the shared client as the webpage element information, so that the shared client can render the webpage elements by using the corresponding rendering mode based on the same rendering algorithm as that of the preset browser, and display the rendered second webpage. In addition, the sharer client can only analyze the webpage structure rendered by the first webpage in the preset browser interface, and the webpage analysis efficiency is improved.
EXAMPLE III
Fig. 3 is a schematic flowchart of an information sharing method according to a third embodiment of the present disclosure. This embodiment may be combined with various alternatives of the above-described embodiments. The information sharing method provided by the embodiment optimizes the information sharing process, and can realize that webpage element information is sent to the shared person when the shared person client agrees to receive the shared information, so that the shared person client agreeing to receive the shared information renders and displays the second webpage according to the webpage element information.
As shown in fig. 3, the information sharing method provided in this embodiment includes:
s310, responding to the received sharing request, and analyzing webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser.
S320, sending the sharing link of the first webpage to the client of the shared person, so that the client of the shared person feeds back the sharing agreement message when detecting the click operation acting on the sharing link.
In the embodiment of the disclosure, the sharer client may generate the shared link of the first webpage during or after the webpage element information is analyzed. The method comprises the steps that as webpage element information can be transmitted between clients through a server corresponding to the clients, a sharer client applies for a resource storage space from the server in a process of generating a shared link of a first webpage; the server allocates a resource storage space and feeds back the address of the resource storage space; and the sharer client takes the address of the resource storage space fed back by the server as a sharing link, and then sends the sharing link to the sharee client through the server, or instructs the server to directly send the sharing link to the sharee client.
When the shared link is received by the shared person client, the user can select to click the shared link to generate sharing agreement information to indicate that the shared webpage element information of the shared person client is accepted to be received; the user can also choose not to click the sharing link and not to receive the webpage information shared by the client of the sharer, so that the situation that other operations are interrupted when webpage element information is automatically received and a second webpage is rendered and displayed in the process of other operations is avoided, and the information sharing experience is further improved.
S330, when the sharing agreement message is received, the webpage element information is transmitted to the shared person client side, so that the shared person client side renders and displays a second webpage according to the webpage element information.
In this embodiment, when receiving the sharing agreement message, the sharer client may upload the parsed web page element information of the first web page to a storage space corresponding to the resource storage address, so that the sharer client may obtain the web page element information from the storage space, and transmit the web page element information when the sharer client agrees to receive the web page element information. In another embodiment, the sharer client may upload the web page element information of the first web page to a storage space corresponding to the resource storage address, and instruct the server to send the web page element information to the sharee client when receiving the sharing agreement message fed back by the sharee client, which is beneficial to transmitting the web page element information when the number of the sharee clients is multiple and the time for feeding back the sharing agreement message is different.
In a specific embodiment, the transmitting the web page element information to the shared person client, so that the shared person client renders and displays the second web page according to the web page element information includes: serializing the webpage element information to obtain a webpage element character string; and transmitting the webpage element character strings to the shared person client so that the shared person client deserializes the webpage element character strings, and rendering and displaying a second webpage according to webpage element information obtained by deserialization.
In this embodiment, the process of converting the webpage element information into the byte sequence by the sharer client is serialization processing; the process of the shared person client-side restoring the byte sequence into the webpage element is deserialization. By serializing the webpage element information into the webpage element character string, the webpage element information can be transmitted on the network in the form of the character string by using the socket, and the transmission efficiency of the webpage element information is improved.
According to the technical scheme of the embodiment of the disclosure, when the shared person client agrees to receive the shared information, the shared person client sends the webpage element information of the first webpage to the shared person, so that the shared person client agreeing to receive the shared information renders and displays the second webpage according to the webpage element information. In addition, the webpage element information is serialized into the webpage element character string, so that the transmission efficiency of the webpage element information is improved.
Example four
Fig. 4 is a flowchart illustrating an information sharing method according to a fourth embodiment of the disclosure. The embodiment of the present disclosure is particularly applicable to a situation where multiple user clients share and display the same webpage, and the method may be executed by an information sharing apparatus, which may be implemented in the form of software and/or hardware, and the apparatus may be configured in an electronic device, for example, an electronic device such as a smart phone, a tablet computer, a notebook computer, or a desktop computer.
As shown in fig. 4, the information sharing method provided in this embodiment is applied to a shared person client, and includes:
s410, receiving webpage element information transmitted by the sharer client, wherein the webpage element information is obtained by the sharer client responding to the received sharing request and analyzing a first webpage requested to be shared by the sharing request.
And S420, rendering and displaying the second webpage according to the received webpage element information.
Optionally, before receiving the webpage element information transmitted by the sharer client, the method includes: receiving a sharing link of a first webpage sent by a sharer client; and when the click operation acting on the sharing link is detected, feeding back a sharing agreement message to the sharer client so as to enable the sharer client to transmit the webpage element information.
Optionally, the webpage element information is a webpage structure of a first webpage analyzed by the sharer client to obtain webpage elements and rendering modes corresponding to the webpage elements; correspondingly, rendering and displaying the second webpage according to the received webpage element information includes: and rendering the webpage elements by using a corresponding rendering mode based on the same rendering algorithm as that of the preset browser, and displaying a rendered second webpage.
Optionally, the web page element information is obtained by analyzing a web page structure rendered by the first web page in the preset browser interface by the sharer client.
Optionally, the webpage element information is a webpage element character string obtained by performing serialization processing on the webpage element information by the sharer client; correspondingly, receiving webpage element information, including: and deserializing the received webpage element character strings to obtain webpage element information.
Optionally, displaying a second webpage, including: and performing adaptive display on the second webpage according to the size of the display screen corresponding to the client of the shared person.
In this embodiment, the display screens of the terminals where the shared user clients are located are different in size, for example, the display screen of a laptop is usually a horizontal screen, the display screen of a keyboard-less touch mobile phone is usually a vertical screen, and the maximized sizes of browsers that render and display the second web page by the shared user clients are also different. Therefore, the shared person client can interact with a hardware information interface of a terminal where the client is located to acquire the display size in the process of rendering and displaying the second webpage; and then the second webpage can be subjected to adaptive rendering display according to the acquired size of the display screen, so that the displayed second webpage is suitable for the user to watch, and the webpage information sharing experience of the user can be improved to a certain extent.
Optionally, the information sharing method provided by the embodiment of the present disclosure is applied to a real-time interactive application, where the real-time interactive application includes at least one of an instant messaging application, a multimedia conference application, a video live broadcast application, and a group chat interactive application; correspondingly, the method for rendering and displaying the second webpage comprises the following steps: rendering and displaying the second webpage based on a preset browser integrated in the real-time interactive application.
According to the technical scheme of the embodiment, the shared person client receives the webpage element information in the first webpage analyzed by the shared person client, and renders and displays the second webpage according to the webpage element information, so that the second webpage displayed by the shared person client and the first webpage displayed by the shared person client have the same webpage element information, the situation that the contents of the displayed webpages are different when the shared person client and the shared person client access the first webpage respectively is avoided, the webpage information sharing of the shared person client and the shared person client is realized, and the interaction efficiency of the webpage information and the sharing experience of users are improved.
It should be noted that implementation manners of the technical features described in any one of the embodiments of the present disclosure can be applied to the embodiment without departing from the scope of the present embodiment, and have the same or corresponding beneficial effects as the technical features, and are not described herein again.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an information sharing apparatus according to a fifth embodiment of the disclosure. The information sharing device provided by the embodiment is applied to a shared client, and is suitable for the situation that multiple clients share and display the same webpage.
As shown in fig. 5, the information sharing apparatus includes:
the parsing module 510 is configured to parse, in response to the received sharing request, webpage element information in a first webpage requested to be shared by the sharing request, where the first webpage is a webpage accessed based on a preset browser;
and a transmission module 520, configured to transmit the webpage element information to the shared client, so that the shared client renders and displays a second webpage according to the webpage element information.
According to the technical scheme of the embodiment, the first page accessed by the sharer client is analyzed, the webpage element information obtained through analysis is transmitted to the sharer client, so that the second webpage displayed by the sharer client and the first webpage displayed by the sharer client have the same webpage element information, the situation that the contents of the displayed webpages are different when the sharer client and the sharer client access the first webpage respectively is avoided, the webpage information sharing of the sharer client and the sharer client is realized, and the interaction efficiency of the webpage information and the sharing experience of users are improved.
On the basis of the above technical solutions, the apparatus may further include:
the sharing request generation module is used for responding to the received sharing triggering operation of the user and presenting a candidate sharing webpage input interface; and generating a sharing request based on the website input by the user on the sharing webpage input interface.
On the basis of the technical schemes, the sharing request comprises the identity identification information of the shared person client;
correspondingly, the transmission module is specifically configured to: and transmitting the webpage element information to the shared person client corresponding to the identity identification information.
On the basis of the above technical solutions, the parsing module may be configured to:
analyzing the webpage structure of the first webpage to obtain webpage elements and rendering modes corresponding to the webpage elements, and taking the webpage elements and the rendering modes corresponding to the webpage elements as webpage element information.
On the basis of the above technical solutions, the transmission device may be configured to:
and transmitting the webpage elements and the rendering modes corresponding to the webpage elements to the shared person client, so that the shared person client renders the webpage elements by using the corresponding rendering modes based on the same rendering algorithm as that of a preset browser, and displays a second webpage obtained by rendering.
On the basis of the above technical solutions, the analysis device may be configured to:
and analyzing a webpage structure rendered by the first webpage in a preset browser interface.
On the basis of the above technical solutions, the information sharing apparatus further includes:
the sharing link sending module is used for sending the sharing link of the first webpage to the client of the shared person before transmitting the webpage element information to the client of the shared person, so that the client of the shared person feeds back the sharing agreement message when detecting the clicking operation acted on the sharing link;
accordingly, the transmission module may be configured to: and transmitting the webpage element information to the client of the shared person when the sharing agreement message is received.
On the basis of the above technical solutions, the transmission module may be configured to:
serializing the webpage element information to obtain a webpage element character string;
and transmitting the webpage element character strings to the shared person client so that the shared person client deserializes the webpage element character strings, and rendering and displaying a second webpage according to webpage element information obtained by deserialization.
On the basis of the technical schemes, the information sharing device can be applied to real-time interactive application, wherein the real-time interactive application comprises at least one of instant messaging application, multimedia conference application, video live broadcast application and group chat interactive application; correspondingly, the preset browser is integrated in the real-time interactive application.
The information sharing device provided by the embodiment of the disclosure can execute the information sharing method applied to the sharer client terminal provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an information sharing device according to a sixth embodiment of the present disclosure. The information sharing device provided by the embodiment is applied to shared client sides, and is suitable for the situation that multiple client sides share and display the same webpage.
As shown in fig. 6, the information sharing apparatus includes:
the receiving module 610 is configured to receive webpage element information transmitted by a sharer client, where the webpage element information is obtained by the sharer client responding to a received sharing request and analyzing a first webpage requested to be shared by the sharing request, where the first webpage is a webpage accessed based on a preset browser;
and a rendering and displaying module 620, configured to render and display the second webpage according to the received webpage element information.
According to the technical scheme of the embodiment, the shared person client receives the webpage element information obtained by analyzing the first page by the shared person client, the second webpage is rendered and displayed according to the received webpage element information, the second webpage displayed by the shared person client and the first webpage displayed by the shared person client are the same in webpage element information, the situation that the contents of the displayed webpages are different when the shared person client and the shared person client access the first webpage respectively is avoided, the webpage information sharing of the shared person client and the shared person client is realized, and the interaction efficiency of the webpage information and the sharing experience of users are improved.
On the basis of the above technical solutions, the information sharing module may further include:
the shared link receiving module is used for receiving a shared link of a first webpage sent by a sharer client before receiving webpage element information transmitted by the sharer client;
and the sharing consent feedback module is used for feeding back sharing consent information to the sharer client when the click operation acting on the sharing link is detected, so that the sharer client transmits the webpage element information.
On the basis of the technical schemes, webpage element information is the webpage structure of a first webpage analyzed by a sharer client, and webpage elements and rendering modes corresponding to the webpage elements are obtained;
accordingly, the rendering display module may be operable to:
and rendering the webpage elements by using a corresponding rendering mode based on the same rendering algorithm as that of the preset browser, and displaying a rendered second webpage.
On the basis of the technical schemes, the webpage element information is obtained by analyzing a webpage structure rendered by the first webpage in a preset browser interface by the sharer client.
On the basis of the technical schemes, the webpage element information is the webpage element character string obtained by the sharer client side by carrying out serialization processing on the webpage element information;
accordingly, the receiving module may be configured to: and deserializing the received webpage element character strings to obtain webpage element information.
On the basis of the above technical solutions, the rendering display module may be configured to: and performing adaptive display on the second webpage according to the size of the display screen corresponding to the client of the shared person.
On the basis of the technical schemes, the information sharing device is applied to real-time interactive application, and the real-time interactive application comprises at least one of instant messaging application, multimedia conference application, video live broadcast application and group chat interactive application;
accordingly, the rendering display module may be operable to: rendering and displaying the second webpage based on a preset browser integrated in the real-time interactive application.
The information sharing device provided by the embodiment of the disclosure can execute the information sharing method applied to the shared person client terminal provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
EXAMPLE seven
Referring now to fig. 7, a schematic diagram of an electronic device (e.g., the terminal device or server of fig. 7) 700 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 702 or a program loaded from a storage means 706 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM702, and the RAM703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 706, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the embodiment of the present disclosure and the information sharing method provided by the above embodiment belong to the same disclosure concept, and technical details that are not described in detail in the embodiment can be referred to the above embodiment, and the embodiment has the same beneficial effects as the above embodiment.
Example eight
The disclosed embodiments provide a computer storage medium on which a computer program is stored, which when executed by a processor implements the information sharing method provided by the above embodiments.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or FLASH Memory (FLASH), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (Hyper Text Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
responding to the received sharing request, and analyzing webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser;
transmitting the webpage element information to the shared person client so that the shared person client renders and displays a second webpage according to the webpage element information;
or, causing the electronic device to:
receiving webpage element information transmitted by a sharer client, wherein the webpage element information is obtained by analyzing a first webpage requested to be shared by a sharing request in response to the received sharing request by the sharer client, and the first webpage is a webpage accessed based on a preset browser;
and rendering and displaying the second webpage according to the received webpage element information.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The names of the units and modules do not limit the units and modules in some cases, and for example, the parsing module may also be described as a "web page parsing module".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Part (ASSP), a System On Chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example one ] there is provided an information sharing method applied to a sharer client, the method including:
responding to a received sharing request, and analyzing webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser;
and transmitting the webpage element information to a shared client side so that the shared client side renders and displays a second webpage according to the webpage element information.
According to one or more embodiments of the present disclosure, [ example two ] there is provided an information sharing method, further comprising:
optionally, the sharing request is generated by:
presenting a candidate sharing webpage input interface in response to the received sharing triggering operation of the user;
and generating the sharing request based on the website input by the user on the sharing webpage input interface.
According to one or more embodiments of the present disclosure, [ example three ] there is provided an information sharing method, further comprising:
optionally, the sharing request includes identification information of the shared person client;
correspondingly, the transmitting the webpage element information to the shared person client includes:
and transmitting the webpage element information to the shared person client corresponding to the identity identification information.
Optionally, according to one or more embodiments of the present disclosure, [ example four ] there is provided an information sharing method, further comprising:
optionally, parsing the web page element information in the first web page includes:
analyzing the webpage structure of the first webpage to obtain webpage elements and rendering modes corresponding to the webpage elements, and taking the webpage elements and the rendering modes corresponding to the webpage elements as the webpage element information.
According to one or more embodiments of the present disclosure, [ example five ] there is provided an information sharing method, further comprising:
optionally, the transmitting the webpage element information to the shared client, so that the shared client renders and displays a second webpage according to the webpage element information, includes:
and transmitting the webpage elements and the rendering modes corresponding to the webpage elements to a shared client, so that the shared client renders the webpage elements by using the corresponding rendering modes based on the same rendering algorithm as the preset browser, and displays a rendered second webpage.
According to one or more embodiments of the present disclosure, [ example six ] there is provided an information sharing method, further comprising:
optionally, the analyzing the web page structure of the first web page includes:
and analyzing the webpage structure rendered by the first webpage in a preset browser interface.
According to one or more embodiments of the present disclosure, [ example seven ] there is provided an information sharing method, further comprising:
optionally, before the transmitting the webpage element information to the shared person client, the method includes:
sending the sharing link of the first webpage to a client of the shared person, so that the client of the shared person feeds back sharing agreement information when detecting clicking operation acting on the sharing link;
correspondingly, the transmitting the webpage element information to the shared person client includes:
and transmitting the webpage element information to the client of the shared person when the sharing agreement message is received.
According to one or more embodiments of the present disclosure, [ example eight ] there is provided an information sharing method, further comprising:
optionally, the transmitting the webpage element information to the shared client, so that the shared client renders and displays a second webpage according to the webpage element information, includes:
serializing the webpage element information to obtain a webpage element character string;
and transmitting the webpage element character string to a shared client so that the shared client deserializes the webpage element character string, and rendering and displaying a second webpage according to webpage element information obtained by deserialization.
According to one or more embodiments of the present disclosure, [ example nine ] there is provided an information sharing method, further comprising:
optionally, the method is applied to a real-time interactive application, where the real-time interactive application includes at least one of an instant messaging application, a multimedia conference application, a live video application, and a group chat interactive application; correspondingly, the preset browser is integrated in the real-time interactive application.
According to one or more embodiments of the present disclosure, [ example ten ] there is provided an information sharing method applied to a sharee client, including:
receiving webpage element information transmitted by a sharer client, wherein the webpage element information is obtained by analyzing a first webpage requested to be shared by a sharing request in response to the received sharing request by the sharer client, and the first webpage is a webpage accessed based on a preset browser;
and rendering and displaying a second webpage according to the received webpage element information.
According to one or more embodiments of the present disclosure, [ example eleven ] there is provided an information sharing method, further comprising:
optionally, before the receiving the web page element information transmitted by the sharer client, the method includes:
receiving a sharing link of the first webpage sent by the sharer client;
and when the click operation acting on the sharing link is detected, feeding back a sharing agreement message to the sharer client so as to enable the sharer client to transmit the webpage element information.
According to one or more embodiments of the present disclosure, [ example twelve ] there is provided an information sharing method, further comprising:
optionally, the webpage element information is a webpage element obtained by analyzing the webpage structure of the first webpage by the sharer client and a rendering mode corresponding to the webpage element;
correspondingly, the rendering and displaying the second webpage according to the received webpage element information includes:
and rendering the webpage elements by using a corresponding rendering mode based on the same rendering algorithm as the preset browser, and displaying a rendered second webpage.
According to one or more embodiments of the present disclosure, [ example thirteen ] provides an information sharing method, further comprising:
optionally, the webpage element information is obtained by analyzing, by the sharer client, a webpage structure rendered by the first webpage in a preset browser interface.
According to one or more embodiments of the present disclosure, [ example fourteen ] there is provided an information sharing method, further comprising:
optionally, the webpage element information is a webpage element character string obtained by the sharer client side performing serialization processing on the webpage element information;
correspondingly, receiving webpage element information, including:
and deserializing the received webpage element character strings to obtain webpage element information.
According to one or more embodiments of the present disclosure, [ example fifteen ] there is provided an information sharing method, comprising:
optionally, the displaying the second webpage includes:
and performing adaptive display on the second webpage according to the size of the display screen corresponding to the shared person client.
According to one or more embodiments of the present disclosure, [ example sixteen ] there is provided an information sharing method, further comprising:
optionally, the method is applied to a real-time interactive application, where the real-time interactive application includes at least one of an instant messaging application, a multimedia conference application, a live video application, and a group chat interactive application;
correspondingly, the rendering and displaying the second webpage comprises:
rendering and displaying a second webpage based on a preset browser integrated in the real-time interactive application.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (20)

1. An information sharing method is applied to a sharer client, and comprises the following steps:
responding to a received sharing request, and analyzing webpage element information in a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser;
and transmitting the webpage element information to a shared client side so that the shared client side renders and displays a second webpage according to the webpage element information.
2. The method of claim 1, wherein the request to share is generated by:
presenting a candidate sharing webpage input interface in response to the received sharing triggering operation of the user;
and generating the sharing request based on the website input by the user on the sharing webpage input interface.
3. The method of claim 1, wherein the sharing request includes identification information of the client of the sharee;
correspondingly, the transmitting the webpage element information to the shared person client includes:
and transmitting the webpage element information to the shared person client corresponding to the identity identification information.
4. The method of claim 1, wherein parsing web page element information in the first web page comprises:
analyzing the webpage structure of the first webpage to obtain webpage elements and rendering modes corresponding to the webpage elements, and taking the webpage elements and the rendering modes corresponding to the webpage elements as the webpage element information.
5. The method of claim 4, wherein transmitting the web page element information to the sharee client to cause the sharee client to render and display a second web page according to the web page element information comprises:
and transmitting the webpage elements and the rendering modes corresponding to the webpage elements to a shared client, so that the shared client renders the webpage elements by using the corresponding rendering modes based on the same rendering algorithm as the preset browser, and displays a rendered second webpage.
6. The method of claim 4, wherein parsing the web page structure of the first web page comprises:
and analyzing the webpage structure rendered by the first webpage in a preset browser interface.
7. The method of claim 1, prior to said transmitting said web page element information to a sharee client, comprising:
sending the sharing link of the first webpage to a client of the shared person, so that the client of the shared person feeds back sharing agreement information when detecting clicking operation acting on the sharing link;
correspondingly, the transmitting the webpage element information to the shared person client includes:
and transmitting the webpage element information to the client of the shared person when the sharing agreement message is received.
8. The method of claim 1, wherein transmitting the web page element information to a sharee client to cause the sharee client to render and display a second web page according to the web page element information comprises:
serializing the webpage element information to obtain a webpage element character string;
and transmitting the webpage element character string to a shared client so that the shared client deserializes the webpage element character string, and rendering and displaying a second webpage according to webpage element information obtained by deserialization.
9. The method of any one of claims 1-8, being applied in a real-time interactive application, the real-time interactive application comprising at least one of an instant messaging application, a multimedia conferencing application, a live video application, and a group chat interactive application; correspondingly, the preset browser is integrated in the real-time interactive application.
10. An information sharing method is applied to a shared person client, and comprises the following steps:
receiving webpage element information transmitted by a sharer client, wherein the webpage element information is obtained by analyzing a first webpage requested to be shared by a sharing request in response to the received sharing request by the sharer client, and the first webpage is a webpage accessed based on a preset browser;
and rendering and displaying a second webpage according to the received webpage element information.
11. The method of claim 10, prior to receiving the web page element information transmitted by the sharer client, comprising:
receiving a sharing link of the first webpage sent by the sharer client;
and when the click operation acting on the sharing link is detected, feeding back a sharing agreement message to the sharer client so as to enable the sharer client to transmit the webpage element information.
12. The method according to claim 10, wherein the web page element information is obtained by analyzing the web page structure of the first web page by the sharer client, and the web page elements and rendering modes corresponding to the web page elements;
correspondingly, the rendering and displaying the second webpage according to the received webpage element information includes:
and rendering the webpage elements by using a corresponding rendering mode based on the same rendering algorithm as the preset browser, and displaying a rendered second webpage.
13. The method of claim 12, wherein the web page element information is obtained by parsing, by the sharer client, a web page structure rendered in a preset browser interface of the first web page.
14. The method according to claim 10, wherein the web page element information is a web page element character string obtained by the sharer client serializing the web page element information;
correspondingly, receiving webpage element information, including:
and deserializing the received webpage element character strings to obtain webpage element information.
15. The method of any of claims 10-14, wherein displaying the second web page comprises:
and performing adaptive display on the second webpage according to the size of the display screen corresponding to the shared person client.
16. The method of any one of claims 10-14, applied to a real-time interactive application, wherein the real-time interactive application comprises at least one of an instant messaging application, a multimedia conference application, a video live application and a group chat interactive application;
correspondingly, the rendering and displaying the second webpage comprises:
rendering and displaying a second webpage based on a preset browser integrated in the real-time interactive application.
17. An information sharing apparatus, applied to a sharer client, includes:
the system comprises an analysis module, a sharing module and a display module, wherein the analysis module is used for responding to a received sharing request and analyzing webpage element information in a first webpage requested to be shared by the sharing request, and the first webpage is a webpage accessed based on a preset browser;
and the transmission module is used for transmitting the webpage element information to the shared person client so as to render and display a second webpage according to the webpage element information by the shared person client.
18. An information sharing apparatus, applied to a client of a shared person, includes:
the system comprises a receiving module, a sharing module and a sharing module, wherein the receiving module is used for receiving webpage element information transmitted by a sharer client, and the webpage element information is obtained by the sharer client responding to a received sharing request and analyzing a first webpage requested to be shared by the sharing request, wherein the first webpage is a webpage accessed based on a preset browser;
and the rendering display module is used for rendering and displaying a second webpage according to the received webpage element information.
19. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the information sharing method of any one of claims 1-9 or the information sharing method of any one of claims 10-16.
20. A storage medium containing computer-executable instructions for performing the information sharing method of any one of claims 1-9 or the information sharing method of any one of claims 10-16 when executed by a computer processor.
CN202010365389.5A 2020-04-30 2020-04-30 Information sharing method and device, electronic equipment and storage medium Pending CN113542335A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010365389.5A CN113542335A (en) 2020-04-30 2020-04-30 Information sharing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010365389.5A CN113542335A (en) 2020-04-30 2020-04-30 Information sharing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113542335A true CN113542335A (en) 2021-10-22

Family

ID=78094170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010365389.5A Pending CN113542335A (en) 2020-04-30 2020-04-30 Information sharing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113542335A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116361593A (en) * 2023-05-30 2023-06-30 成方金融科技有限公司 Webpage sharing method, system, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834882A (en) * 2009-03-13 2010-09-15 华为技术有限公司 Method, browser and communication system for sharing web page
US20140244812A1 (en) * 2011-09-28 2014-08-28 Beijing Qihoo Technology Company Limited Method, system and program for browser to switch ie core
CN104346464A (en) * 2014-11-07 2015-02-11 北京奇虎科技有限公司 Processing method and device of webpage element information and browser client
CN105228080A (en) * 2014-06-27 2016-01-06 上海视九信息科技有限公司 Multi-screen interaction method, system and browser
US20180176268A1 (en) * 2016-12-19 2018-06-21 Ricoh Company, Ltd. Approach For Accessing Third-Party Content Collaboration Services On Interactive Whiteboard Appliances By An Application Using A Wrapper Application Program Interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834882A (en) * 2009-03-13 2010-09-15 华为技术有限公司 Method, browser and communication system for sharing web page
US20140244812A1 (en) * 2011-09-28 2014-08-28 Beijing Qihoo Technology Company Limited Method, system and program for browser to switch ie core
CN105228080A (en) * 2014-06-27 2016-01-06 上海视九信息科技有限公司 Multi-screen interaction method, system and browser
CN104346464A (en) * 2014-11-07 2015-02-11 北京奇虎科技有限公司 Processing method and device of webpage element information and browser client
US20180176268A1 (en) * 2016-12-19 2018-06-21 Ricoh Company, Ltd. Approach For Accessing Third-Party Content Collaboration Services On Interactive Whiteboard Appliances By An Application Using A Wrapper Application Program Interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116361593A (en) * 2023-05-30 2023-06-30 成方金融科技有限公司 Webpage sharing method, system, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11582284B2 (en) Optimization of publication of an application to a web browser
CN107622135B (en) Method and apparatus for displaying information
CN112383787B (en) Live broadcast room creating method and device, electronic equipment and storage medium
CN112073307B (en) Mail processing method, mail processing device, electronic equipment and computer readable medium
US11758087B2 (en) Multimedia conference data processing method and apparatus, and electronic device
CN111756847B (en) Method and device for supporting https protocol by website
CN112312222A (en) Video sending method and device and electronic equipment
US20230379373A1 (en) Information switching and sharing method, device, electronic apparatus, and storage medium
CN113157153A (en) Content sharing method and device, electronic equipment and computer readable storage medium
CN112965673A (en) Content printing method, device, equipment and storage medium
CN113297453A (en) Network request response method and device, electronic equipment and storage medium
CN113542335A (en) Information sharing method and device, electronic equipment and storage medium
CN112558933A (en) Component rendering method and device, readable medium and electronic equipment
CN111754600A (en) Poster image generation method and device and electronic equipment
CN112084441A (en) Information retrieval method and device and electronic equipment
CN111581556B (en) Page data processing method, device, electronic equipment and readable medium
CN111596823B (en) Page display method and device and electronic equipment
CN111259287B (en) Page content display method and device, electronic equipment and storage medium
WO2021082599A1 (en) Wed page image monitoring method and device, electronic equipment and computer readable storage medium
CN112732457A (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN111090485B (en) Multi-cluster-oriented help data processing method and device, medium and equipment
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN113497821A (en) Method, device and system for uploading files
CN112131844A (en) Online document editing method and device and electronic equipment
CN114756796A (en) Method, apparatus, device and computer readable medium for displaying image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

RJ01 Rejection of invention patent application after publication

Application publication date: 20211022