技术领域technical field
本公开涉及互联网技术领域,尤其涉及页面分享的方法和装置。The present disclosure relates to the technical field of the Internet, in particular to a method and device for sharing pages.
背景技术Background technique
目前,人们经常跟朋友分享自己浏览到的网页。相关技术中的分享方法都是复制当前页面的统一资源定位符URL(Uniform Resource Locator,URL)地址,然后通过粘贴到即时聊天工具或者email里,发送给对方,然后对方通过点击了这个URL地址来打开这个URL地址对应的页面,再查看页面的内容,这种方式操作繁杂,使得页面分享效率低下。Currently, people often share the webpages they browse with their friends. The sharing method in the related art all is to copy the Uniform Resource Locator URL (Uniform Resource Locator, URL) address of current page, then by pasting in instant chat tool or email, send to the other party, then the other party clicks this URL address to come Open the page corresponding to the URL address, and then check the content of the page. This method is complicated to operate and makes page sharing inefficient.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种页面分享的方法和装置。In order to overcome the problems existing in related technologies, the present disclosure provides a method and device for page sharing.
根据本公开实施例的第一方面,提供一种页面分享的方法,包括:According to the first aspect of the embodiments of the present disclosure, a page sharing method is provided, including:
获取用户需要分享的页面的URL地址;Obtain the URL address of the page that the user needs to share;
根据所述URL地址,获取所述URL地址对应的页面内容;Obtaining the page content corresponding to the URL address according to the URL address;
分享所述页面内容。Share said page content.
根据本公开实施例的第二方面,提供一种页面分享的装置,包括:According to the second aspect of the embodiments of the present disclosure, a page sharing device is provided, including:
URL地址获取模块,被配置为获取用户需要分享的页面的URL地址;A URL address obtaining module configured to obtain the URL address of the page that the user needs to share;
页面内容获取模块,被配置为根据所述URL地址,获取所述URL地址对应的页面内容;The page content acquisition module is configured to acquire the page content corresponding to the URL address according to the URL address;
分享模块,被配置为分享所述页面内容。A sharing module configured to share the content of the page.
本公开的实施例提供的技术方案可以包括以下有益效果:通过获取用户需要分享的页面的URL地址;根据所述URL地址,获取所述URL地址对应的页面内容;然后分享所述页面内容,因此该用户的分享对象看到的是页面内容而不是现有技术中的URL地址,无需再点击URL地址才能看到页面内容,使得页面分享效率提高,而且,也避免了现有技术中分享对象在无网条件下无法观看页面内容的缺陷。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by obtaining the URL address of the page that the user needs to share; according to the URL address, obtaining the page content corresponding to the URL address; and then sharing the page content, therefore What the user's sharing object sees is the page content instead of the URL address in the prior art, and there is no need to click on the URL address to see the page content, which improves the page sharing efficiency, and also avoids the sharing object in the prior art. The defect that the content of the page cannot be viewed under no-network conditions.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种页面分享的方法的流程图。Fig. 1 is a flowchart of a page sharing method according to an exemplary embodiment.
图2是根据另一示例性实施例示出的一种页面分享的方法的流程图。Fig. 2 is a flowchart of a page sharing method according to another exemplary embodiment.
图3是根据另一示例性实施例示出的一种页面分享的方法的流程图。Fig. 3 is a flowchart of a page sharing method according to another exemplary embodiment.
图4是根据另一示例性实施例示出的一种页面分享的方法的流程图。Fig. 4 is a flowchart of a page sharing method according to another exemplary embodiment.
图5是根据一示例性实施例示出的一种页面分享的装置的框图。Fig. 5 is a block diagram of an apparatus for page sharing according to an exemplary embodiment.
图6是根据另一示例性实施例示出的一种页面分享的装置的框图。Fig. 6 is a block diagram of an apparatus for page sharing according to another exemplary embodiment.
图7是根据另一示例性实施例示出的一种页面分享的装置的框图。Fig. 7 is a block diagram of an apparatus for page sharing according to another exemplary embodiment.
图8是根据一示例性实施例示出的一种页面分享的装置800的框图。Fig. 8 is a block diagram of an apparatus 800 for page sharing according to an exemplary embodiment.
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种页面分享的方法的流程图,如图1所示,本实施例的页面分享的方法用于终端中,包括以下步骤。Fig. 1 is a flow chart of a method for page sharing according to an exemplary embodiment. As shown in Fig. 1 , the method for page sharing in this embodiment is used in a terminal and includes the following steps.
在步骤S11中,获取用户需要分享的页面的URL地址。In step S11, the URL address of the page to be shared by the user is acquired.
在步骤S12中,根据所述URL地址,获取所述URL地址对应的页面内容。In step S12, according to the URL address, the page content corresponding to the URL address is obtained.
在步骤S13中,分享所述页面内容。In step S13, the content of the page is shared.
本实施例中,终端可以获取用户需要分享的页面的URL地址,此处用户需要分享的页面是指用户希望分享对象也能看到的页面,然后根据该页面的URL地址,获取URL地址对应的页面内容,例如:终端可以向URL地址对应的服务器发送页面请求,并接收服务器发送的该URL地址对应的页面,从该页面中获取页面内容。在获得页面内容后分享该页面内容。In this embodiment, the terminal can obtain the URL address of the page that the user needs to share. Here, the page that the user needs to share refers to the page that the user wants to share with the target, and then according to the URL address of the page, obtain the corresponding Page content, for example: the terminal can send a page request to the server corresponding to the URL address, and receive the page corresponding to the URL address sent by the server, and obtain the page content from the page. Share the page content after getting it.
本实施例可以应用于用户通过微信朋友圈或者微博等分享页面的场景下,用户在微信朋友圈或者微博等的发表栏里输入需要分享的页面的URL地址,再点击发送,本实施例的终端可以获取用户输入的发送操作指令,该发送操作指令包括用户在上述发表栏里输入的URL地址,然后根据URL地址获取URL地址对应的页面内容,并发表URL地址对应的页面内容,其它用户看到用户的微信朋友圈或者微博时可以直接看到页面内容而不是URL地址,因此无需再点击URL地址才能看到页面内容,提高了页面分享效率,而且也避免了在无网条件下无法观看页面内容的缺陷。This embodiment can be applied to the scene where the user shares a page through WeChat Moments or Weibo. The user enters the URL address of the page to be shared in the post column of WeChat Moments or Weibo, and then clicks to send. This embodiment The terminal can obtain the sending operation instruction input by the user. The sending operation instruction includes the URL address entered by the user in the above publishing column, and then obtain the page content corresponding to the URL address according to the URL address, and publish the page content corresponding to the URL address. Other users When you see the user’s WeChat Moments or Weibo, you can directly see the page content instead of the URL address, so you don’t need to click the URL address to see the page content, which improves the efficiency of page sharing, and also avoids being unable to watch under the condition of no network Defects in the content of the page.
综上所述,本实施例提供的页面分享的方法,通过获取用户需要分享的页面的URL地址;根据所述URL地址,获取所述URL地址对应的页面内容;然后分享所述页面内容,因此该用户的分享对象看到的是页面内容而不是现有技术中的URL地址,无需再点击URL地址才能看到页面内容,使得页面分享效率提高,而且,也避免了现有技术中分享对象在无网条件下无法观看页面内容的缺陷。To sum up, the page sharing method provided by this embodiment obtains the URL address of the page that the user needs to share; according to the URL address, obtains the page content corresponding to the URL address; and then shares the page content, so What the user's sharing object sees is the page content instead of the URL address in the prior art, and there is no need to click on the URL address to see the page content, which improves the page sharing efficiency, and also avoids the sharing object in the prior art. The defect that the content of the page cannot be viewed under no-network conditions.
图2是根据另一示例性实施例示出的一种页面分享的方法的流程图,如图2所示,本实施例的页面分享的方法用于终端中,包括以下步骤。Fig. 2 is a flow chart of a method for page sharing according to another exemplary embodiment. As shown in Fig. 2, the method for page sharing in this embodiment is used in a terminal and includes the following steps.
在步骤S21中,获取用户需要分享的页面的URL地址。In step S21, the URL address of the page to be shared by the user is obtained.
在步骤S22中,根据所述URL地址,获取所述URL地址对应的页面内容。In step S22, according to the URL address, the page content corresponding to the URL address is obtained.
步骤S21和S22的具体实现过程可以参见图1所示实施例中的相关描述,此处不再赘述。For the specific implementation process of steps S21 and S22, reference may be made to the related description in the embodiment shown in FIG. 1 , which will not be repeated here.
可选地,在分享所述页面内容的一种可能的实现方式中,可以包括如下步骤。Optionally, in a possible implementation manner of sharing the page content, the following steps may be included.
在步骤S23中,根据预设格式,对所述页面内容进行格式处理,获得格式处理后的所述页面内容。In step S23, format processing is performed on the page content according to a preset format, and the format-processed page content is obtained.
在步骤S24中,分享格式处理后的所述页面内容。In step S24, the formatted page content is shared.
本实施例中,在获取URL地址对应的页面内容后,根据预设格式,对页面内容进行排版,获得转换为预设格式的页面内容,预设格式可以包括:字体、字本大小、行间距等,然后再分享转换为预设格式后的页面内容。经过格式处理后的页面内容可以使得页面内容层次分明,更加清晰明了。In this embodiment, after obtaining the page content corresponding to the URL address, typesetting the page content according to the preset format to obtain the page content converted into the preset format. The preset format may include: font, font size, line spacing etc. before sharing the converted page content. The formatted page content can make the page content clearer and clearer.
综上所述,本实施例提供的页面分享的方法,通过获取用户需要分享的页面的URL地址;根据所述URL地址,获取所述URL地址对应的页面内容;然后分享所述页面内容,因此该用户的分享对象看到的是页面内容而不是现有技术中的URL地址,无需再点击URL地址才能看到页面内容,使得页面分享效率提高,而且,也避免了现有技术中分享对象在无网条件下无法观看页面内容的缺陷。To sum up, the page sharing method provided by this embodiment obtains the URL address of the page that the user needs to share; according to the URL address, obtains the page content corresponding to the URL address; and then shares the page content, so What the user's sharing object sees is the page content instead of the URL address in the prior art, and there is no need to click on the URL address to see the page content, which improves the page sharing efficiency, and also avoids the sharing object in the prior art. The defect that the content of the page cannot be viewed under no-network conditions.
图3是根据另一示例性实施例示出的一种页面分享的方法的流程图,如图3所示,本实施例的页面分享的方法用于终端中,在另一种可能的实现场景下,包括以下步骤。Fig. 3 is a flow chart of a method for page sharing according to another exemplary embodiment. As shown in Fig. 3, the method for page sharing in this embodiment is used in a terminal, and in another possible implementation scenario , including the following steps.
在步骤S31中,获取用户输入的发送操作指令,所述发送操作指令包括所述URL地址和分享对象的标识。In step S31, the sending operation instruction input by the user is obtained, and the sending operation instruction includes the URL address and the identifier of the sharing object.
在步骤S32中,根据所述发送操作指令,获取所述URL地址。In step S32, the URL address is acquired according to the sending operation instruction.
在步骤S33中,根据所述URL地址,获取所述URL地址对应的页面内容。In step S33, according to the URL address, the page content corresponding to the URL address is acquired.
在步骤S34中,根据所述分享对象的标识,向所述分享对象发送所述页面内容。In step S34, the page content is sent to the sharing object according to the identification of the sharing object.
本实施例中,用户在通过即时聊天工具或者email来分享页面的情况下,用户可以在聊天对话框或者邮件正文框中输入需要分享的页面的URL地址,然后点击发送。本实施例的终端可以获取用户输入的发送操作指令,该发送操作指令包括URL地址和分享对象的标识,该分享对象可以是一个,也可以是多个;然后根据发送操作指令,获取URL地址,并根据URL地址获取URL地址对应的页面内容,再将页面内容发送给发送操作指令中的分享对象的标识所对应的分享对象,实现了用户向分享对象分享页面的过程。In this embodiment, when the user shares the page through an instant messaging tool or email, the user can input the URL address of the page to be shared in the chat dialog box or the email text box, and then click send. The terminal of this embodiment can obtain the sending operation instruction input by the user, the sending operation instruction includes the URL address and the identification of the sharing object, and the sharing object can be one or more; then according to the sending operation instruction, obtain the URL address, According to the URL address, the page content corresponding to the URL address is obtained, and then the page content is sent to the sharing object corresponding to the sharing object identifier in the sending operation command, realizing the process of the user sharing the page with the sharing object.
可选地,在S34的一种可能的实现方式中,可以包括如下步骤。Optionally, in a possible implementation manner of S34, the following steps may be included.
在步骤S341中,根据预设格式,对所述页面内容进行格式处理,获得格式处理后的所述页面内容。In step S341, format processing is performed on the page content according to a preset format to obtain the format-processed page content.
在步骤S342中,根据所述分享对象的标识,向所述分享对象发送格式处理后的所述页面内容。In step S342, according to the identifier of the sharing object, the formatted page content is sent to the sharing object.
综上所述,本实施例提供的页面分享的方法,通过获取用户输入的发送操作指令,所述发送操作指令包括所述URL地址和分享对象的标识;根据所述发送操作指令,获取所述URL地址;根据所述URL地址,获取所述URL地址对应的页面内容;根据所述分享对象的标识,向所述分享对象发送所述页面内容。因此该页面的分享对象接收到的是页面内容而不是现有技术中的URL地址,无需再点击URL地址才能看到页面内容,使得页面分享效率提高,而且,也避免了现有技术中分享对象在无网条件下无法观看页面内容的缺陷。因此,分享对象接收到的是URL地址对应的页面内容而不是URL地址。To sum up, the page sharing method provided by this embodiment obtains the sending operation instruction input by the user, and the sending operation instruction includes the URL address and the identification of the sharing object; according to the sending operation instruction, obtains the URL address; according to the URL address, obtain the page content corresponding to the URL address; according to the identification of the sharing object, send the page content to the sharing object. Therefore, what the sharing object of this page receives is the page content instead of the URL address in the prior art, and the page content can be seen without clicking on the URL address again, which improves the page sharing efficiency, and also avoids the sharing object in the prior art The defect that the content of the page cannot be viewed under no-network conditions. Therefore, what the sharing object receives is the page content corresponding to the URL address instead of the URL address.
图4是根据另一示例性实施例示出的一种页面分享的方法的流程图,如图4所示,本实施例的页面分享的方法用于终端中,在另一种可能的实现场景下,包括以下步骤。Fig. 4 is a flowchart of a method for page sharing according to another exemplary embodiment. As shown in Fig. 4, the method for page sharing in this embodiment is used in a terminal, and in another possible implementation scenario , including the following steps.
在步骤S41中,获取用户需要分享的页面的URL地址。In step S41, the URL address of the page to be shared by the user is obtained.
步骤S41的具体实现过程可以参见图1-图3任一所示所示方法实施例中的相关描述,此处不再赘述。For the specific implementation process of step S41, reference may be made to the relevant descriptions in the method embodiments shown in any one of FIGS. 1-3 , and details are not repeated here.
在步骤S42中,根据所述URL地址,获取所述URL地址对应的页面。In step S42, according to the URL address, the page corresponding to the URL address is obtained.
本实施例中,根据URL地址获取URL地址对应的页面的第一种可能的实现方式中,可以包括步骤S43。In this embodiment, the first possible implementation manner of obtaining the page corresponding to the URL address according to the URL address may include step S43.
在步骤S43中,根据所述页面中的正文标签,获取所述页面中的正文。In step S43, the text in the page is acquired according to the text tag in the page.
本实施例中,在获取URL地址后,根据URL地址获取URL地址对应的页面,URL地址对应的页面可能包括:与该页面相关联的其它页面的链接、广告等。本实施例在获取URL地址对应的页面后,根据页面中的正文标签,获得页面中的正文。In this embodiment, after the URL address is obtained, the page corresponding to the URL address is obtained according to the URL address. The page corresponding to the URL address may include: links to other pages associated with the page, advertisements, and the like. In this embodiment, after obtaining the page corresponding to the URL address, the text in the page is obtained according to the text tag in the page.
在步骤S44中,分享所述页面中的正文。In step S44, the text in the page is shared.
步骤S44的具体实现过程可以参见图1-图3任一所示实施例中的相关描述,此处不再赘述。For the specific implementation process of step S44, reference may be made to the relevant descriptions in any of the embodiments shown in FIG. 1-FIG. 3 , and details are not repeated here.
可选地,当页面中的正文包括视频时,步骤S43的一种可能的实现方式可以包括:根据所述页面中的正文标签下的视频标签,下载所述视频标签对应的视频。本实施例中的终端可以根据页面中的正文标签下包括视频标签,确定正文包括视频,然后下载该视频标签对应的视频,相应地,步骤S44的一种可能的实现方式可以包括:分享下载的视频。Optionally, when the text on the page includes a video, a possible implementation of step S43 may include: downloading the video corresponding to the video tag according to the video tag under the text tag on the page. The terminal in this embodiment can determine that the text includes a video according to the video tag included under the text tag in the page, and then download the video corresponding to the video tag. Correspondingly, a possible implementation of step S44 may include: sharing the downloaded video.
可选地,在步骤S44中,也可以根据预设格式,对获取的页面中的正文进行格式处理,获得格式处理后的正文,然后再分享格式处理后的正文。预设格式包括:预设的图片格式、预设的视频格式、预设的文字格式。可以将正文的图片的格式转换为预设的图片格式的图片(例如:可以改变图像的清晰度),也可以将正文中的视频的格式转换为预设的视频格式(例如:可以对视频进行压缩处理以减小视频的大小,从而可以减小分享视频时的流量消耗,还可以保证视频可以成功分享),也可以将正文的文字的格式转换为预设的文字格式(例如:改变字体、字体大小、行间距等)。Optionally, in step S44, format processing may also be performed on the text in the acquired page according to a preset format to obtain the format-processed text, and then share the format-processed text. The preset formats include: preset image formats, preset video formats, and preset text formats. The format of the picture in the text can be converted to a picture in a preset picture format (for example: the clarity of the image can be changed), and the format of the video in the text can also be converted to a preset video format (for example: the video can be edited Compression processing to reduce the size of the video, which can reduce the traffic consumption when sharing the video, and can also ensure that the video can be shared successfully), and can also convert the text format of the text to the preset text format (for example: change the font, font size, line spacing, etc.).
综上所述,本实施例提供的页面分享的方法,通过获取用户需要分享的页面的URL地址;根据所述URL地址,获取所述URL地址对应的页面;根据所述页面中的正文标签,获取所述页面中的正文;分享所述页面中的正文。因此该用户的分享对象看到的是页面正文而不是现有技术中的URL地址,无需再点击URL地址才能看到页面正文,使得页面分享效率提高,而且,也避免了现有技术中分享对象在无网条件下无法观看页面内容的缺陷。In summary, the page sharing method provided in this embodiment obtains the URL address of the page that the user needs to share; according to the URL address, obtains the page corresponding to the URL address; according to the text tag in the page, Get the body text from said page; share the body text from said page. Therefore, what the user's sharing object sees is the page text instead of the URL address in the prior art, and there is no need to click on the URL address to see the page text, which improves the page sharing efficiency, and also avoids the sharing object in the prior art. The defect that the content of the page cannot be viewed under no-network conditions.
可选地,在基于图4所示实施例的基础上,可以根据页面中的正文标签,获取页面中的正文,还根据所述页面中的标题标签,获取所述页面中的标题;相应地,在分享页面的正文时还可以分享页面中的标题。可选地,分享页面中的标题的一种可能的实现方式中,可以根据预设格式,对标题进行格式处理,再分享格式处理后的标题,例如:将标题居中,改变标题的字体和字体大小等。Optionally, on the basis of the embodiment shown in Figure 4, the text in the page can be obtained according to the text tag in the page, and the title in the page can also be obtained according to the title tag in the page; correspondingly , when sharing the body of the page, you can also share the title in the page. Optionally, in a possible implementation of sharing the title on the page, you can format the title according to the preset format, and then share the formatted title, for example: center the title, change the font and font of the title size etc.
可选地,在基于图4所示实施例的基础上,可以根据页面中的正文标签,获取页面中的正文,还根据所述页面中的作者标签,获取所述页面中的发布作者;相应地,在分享页面的正文时还可以分享页面中的发布作者。可选地,分享页面中的发布作者的一种可能的实现方式中,可以根据预设格式,对发布作者进行格式处理,再分享格式处理后的发布作者,例如:改变发布作者的字体和字体大小等。Optionally, on the basis of the embodiment shown in Figure 4, the text in the page can be obtained according to the text tag in the page, and the publishing author in the page can also be obtained according to the author tag in the page; correspondingly Optionally, when sharing the body of a page, you can also share the posting author in the page. Optionally, in a possible implementation of the publishing author on the sharing page, the publishing author can be formatted according to the preset format, and then the posting author after the format processing can be shared, for example: changing the font and font of the publishing author size etc.
可选地,在基于图4所示实施例的基础上,可以根据页面中的正文标签,获取页面中的正文,还根据所述页面中的作者标签,获取所述页面中的发布作者;相应地,在分享页面的正文时还可以分享页面中的发布作者。可选地,分享页面中的发布作者的一种可能的实现方式中,可以根据预设格式,对发布作者进行格式处理,再分享格式处理后的发布作者,例如:改变发布作者的字体和字体大小等。Optionally, on the basis of the embodiment shown in Figure 4, the text in the page can be obtained according to the text tag in the page, and the publishing author in the page can also be obtained according to the author tag in the page; correspondingly Optionally, when sharing the body of a page, you can also share the posting author in the page. Optionally, in a possible implementation of the publishing author on the sharing page, the publishing author can be formatted according to the preset format, and then the posting author after the format processing can be shared, for example: changing the font and font of the publishing author size etc.
可选地,在基于图4所示实施例的基础上,可以根据页面中的正文标签,获取页面中的正文,还根据所述页面中的时间标签,获取所述页面中的发布时间;相应地,在分享页面的正文时还可以分享页面中的发布时间。可选地,分享页面中的发布作者的一种可能的实现方式中,可以根据预设格式,对发布时间进行格式处理,再分享格式处理后的发布时间,例如:格式处理前为2016-07-25 11:09:02,格式处理后为:2016年7月25日11:09:02。Optionally, on the basis of the embodiment shown in Figure 4, the text in the page can be obtained according to the text tag in the page, and the publishing time in the page can also be obtained according to the time tag in the page; correspondingly Optionally, when sharing the body of the page, you can also share the posting time in the page. Optionally, in a possible implementation of the publishing author on the sharing page, the publishing time can be formatted according to the preset format, and then the posting time after the format processing can be shared, for example: 2016-07 before the format processing -25 11:09:02, after format processing is: July 25, 2016 11:09:02.
可选地,在基于图4所示实施例的基础上,可以根据页面中的正文标签,获取页面中的正文,还根据所述页面中的标题标签、作者标签和时间标签,分别获取所述页面中的标题、发布作者、发布时间;相应地,在分享页面的正文时还可以分享页面中的标题、发布作者、发布时间。可选地,分享页面中的标题、发布作者、发布时间的一种可能的实现方式中,可以根据预设格式,对标题、发布作者、发布时间进行格式处理后再分享。Optionally, on the basis of the embodiment shown in Figure 4, the text in the page can be obtained according to the text tags in the page, and the The title, publishing author, and publishing time of the page; correspondingly, when sharing the text of the page, the title, publishing author, and publishing time of the page can also be shared. Optionally, in a possible implementation manner of sharing the title, publishing author, and publishing time on the page, the title, publishing author, and publishing time may be formatted according to a preset format before sharing.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图5是根据一示例性实施例示出的一种页面分享的装置的框图。该页面分享的装置可以通过软件、硬件或者两者的结合实现成为终端的部分或者全部。参照图5,该装置包括URL地址获取模块110,页面内容获取模块120和分享模块130。Fig. 5 is a block diagram of an apparatus for page sharing according to an exemplary embodiment. The page sharing device can be implemented as part or all of the terminal through software, hardware or a combination of the two. Referring to FIG. 5 , the device includes a URL address obtaining module 110 , a page content obtaining module 120 and a sharing module 130 .
URL地址获取模块110,被配置为获取用户需要分享的页面的URL地址;The URL address acquisition module 110 is configured to acquire the URL address of the page that the user needs to share;
页面内容获取模块120,被配置为根据URL地址获取模块110获取的所述URL地址,获取所述URL地址对应的页面内容;The page content obtaining module 120 is configured to obtain the page content corresponding to the URL address according to the URL address obtained by the URL address obtaining module 110;
分享模块130,被配置为分享所述页面内容获取模块120获取的所述页面内容。The sharing module 130 is configured to share the page content obtained by the page content obtaining module 120 .
关于上述实施例中的装置,其中各个模块执行操作的具体方式和技术效果已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiments, the specific manner and technical effect of each module performing operations have been described in detail in the embodiments related to the method, and will not be described in detail here.
图6是根据另一示例性实施例示出的一种页面分享的装置的框图。该页面分享的装置可以通过软件、硬件或者两者的结合实现成为终端的部分或者全部。参照图6,本实施例的装置在图5所示实施例的基础上,所述分享模块130,包括:格式处理子模块131和分享子模块132;Fig. 6 is a block diagram of an apparatus for page sharing according to another exemplary embodiment. The page sharing device can be implemented as part or all of the terminal through software, hardware or a combination of the two. Referring to FIG. 6 , the device of this embodiment is based on the embodiment shown in FIG. 5 , the sharing module 130 includes: a format processing submodule 131 and a sharing submodule 132;
格式处理子模块131,被配置为根据预设格式,对所述页面内容进行格式处理,获得格式处理后的所述页面内容;The format processing sub-module 131 is configured to perform format processing on the page content according to a preset format, and obtain the format-processed page content;
分享子模块132,被配置为分享所述格式处理子模块131格式处理后的所述页面内容。The sharing submodule 132 is configured to share the page content formatted by the format processing submodule 131 .
关于上述实施例中的装置,其中各个模块执行操作的具体方式和技术效果已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiments, the specific manner and technical effect of each module performing operations have been described in detail in the embodiments related to the method, and will not be described in detail here.
图7是根据另一示例性实施例示出的一种页面分享的装置的框图。该页面分享的装置可以通过软件、硬件或者两者的结合实现成为终端的部分或者全部。参照图7,本实施例的装置在图5或图6所示实施例的基础上,所述页面内容获取模块120,包括:页面获取子模块121和正文获取子模块122;Fig. 7 is a block diagram of an apparatus for page sharing according to another exemplary embodiment. The page sharing device can be implemented as part or all of the terminal through software, hardware or a combination of the two. Referring to FIG. 7 , the device of this embodiment is based on the embodiment shown in FIG. 5 or FIG. 6 , the page content acquisition module 120 includes: a page acquisition submodule 121 and a text acquisition submodule 122;
所述页面获取子模块121,被配置为根据所述URL地址,获取所述URL地址对应的页面;The page obtaining submodule 121 is configured to obtain the page corresponding to the URL address according to the URL address;
所述正文获取子模块122,被配置为根据所述页面获取子模块121获取的所述页面中的正文标签,获取所述页面中的正文;The text obtaining sub-module 122 is configured to obtain the text in the page according to the text tag in the page obtained by the page obtaining sub-module 121;
所述分享模块130包括:正文分享子模块133;The sharing module 130 includes: a text sharing submodule 133;
所述正文分享子模块133,被配置为分享所述页面中的正文。The text sharing sub-module 133 is configured to share the text in the page.
可选地,所述页面内容获取模块120,还包括标题获取子模块123;Optionally, the page content acquisition module 120 also includes a title acquisition sub-module 123;
所述标题获取子模块123,被配置为根据所述页面获取子模块121获取的所述页面中的标题标签,获取所述页面中的标题;The title acquisition sub-module 123 is configured to acquire the title of the page according to the title tag in the page acquired by the page acquisition sub-module 121;
所述分享模块130包括:标题分享子模块134;The sharing module 130 includes: a title sharing sub-module 134;
所述标题分享子模块134,被配置为分享所述页面中的标题。The title sharing sub-module 134 is configured to share titles in the page.
可选地,所述正文获取子模块122,被配置为当所述页面的正文中包括视频时,根据所述页面中的正文标签下的视频标签,下载所述视频标签对应的视频;Optionally, the text acquisition sub-module 122 is configured to download the video corresponding to the video tag according to the video tag under the text tag in the page when the text of the page includes a video;
所述正文分享子模块133,被配置为分享所述下载的所述视频。The text sharing sub-module 133 is configured to share the downloaded video.
关于上述实施例中的装置,其中各个模块执行操作的具体方式和技术效果已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above embodiments, the specific manner and technical effect of each module performing operations have been described in detail in the embodiments related to the method, and will not be described in detail here.
图8是根据一示例性实施例示出的一种页面分享的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 8 is a block diagram of an apparatus 800 for page sharing according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图8,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。8, device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and a communication component 816 .
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。Power component 806 provides power to various components of device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800 .
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC) configured to receive external audio signals when the device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 814 can also detect a change in the position of the device 800 or a component of the device 800 , the presence or absence of user contact with the device 800 , the device 800 orientation or acceleration/deceleration and the temperature change of the device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the apparatus 800 and other devices. The device 800 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 800 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the device 800 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置800的处理器执行时,使得装置800能够执行上述页面分享的方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the device 800, the device 800 can execute the above method of page sharing.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求书指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求书来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610868502.5ACN107885746B (en) | 2016-09-29 | 2016-09-29 | Page sharing method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610868502.5ACN107885746B (en) | 2016-09-29 | 2016-09-29 | Page sharing method and device |
| Publication Number | Publication Date |
|---|---|
| CN107885746A CN107885746A (en) | 2018-04-06 |
| CN107885746Btrue CN107885746B (en) | 2023-08-11 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610868502.5AActiveCN107885746B (en) | 2016-09-29 | 2016-09-29 | Page sharing method and device |
| Country | Link |
|---|---|
| CN (1) | CN107885746B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109190068A (en)* | 2018-07-12 | 2019-01-11 | 北京猫眼文化传媒有限公司 | A kind of data processing method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102694830A (en)* | 2011-03-24 | 2012-09-26 | 腾讯科技(深圳)有限公司 | Method, system and apparatus for realizing network content sharing |
| CN104065632A (en)* | 2013-04-08 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Processing method, server, client and system for sharing content |
| CN104424212A (en)* | 2013-08-22 | 2015-03-18 | 华为终端有限公司 | Method and device for sharing media content and method and device for display media content |
| CN105787030A (en)* | 2016-02-25 | 2016-07-20 | 努比亚技术有限公司 | Mobile terminal and data processing method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10649607B2 (en)* | 2012-12-28 | 2020-05-12 | Facebook, Inc. | Re-ranking story content |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102694830A (en)* | 2011-03-24 | 2012-09-26 | 腾讯科技(深圳)有限公司 | Method, system and apparatus for realizing network content sharing |
| CN104065632A (en)* | 2013-04-08 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Processing method, server, client and system for sharing content |
| CN104424212A (en)* | 2013-08-22 | 2015-03-18 | 华为终端有限公司 | Method and device for sharing media content and method and device for display media content |
| CN105787030A (en)* | 2016-02-25 | 2016-07-20 | 努比亚技术有限公司 | Mobile terminal and data processing method thereof |
| Title |
|---|
| 一种垂直页面分割与信息提取方法的研究;李军;陈君;王玲芳;倪宏;;计算机应用研究(03);全文* |
| Publication number | Publication date |
|---|---|
| CN107885746A (en) | 2018-04-06 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106126025B (en) | Interactive method and device for copying and pasting | |
| CN107220387A (en) | Comment on method and device | |
| CN106201734A (en) | Sharing files method and device | |
| CN107423386A (en) | Generate the method and device of electronic card | |
| CN107360322B (en) | Information prompting method and device | |
| CN106453058A (en) | Information pushing method and apparatus | |
| CN106130873A (en) | Information processing method and device | |
| CN110085066B (en) | Method and device for displaying reading information and electronic equipment | |
| CN108668023A (en) | Communication information processing method and device | |
| CN106572003A (en) | User information recommendation method and device | |
| CN112102009B (en) | Advertisement display method, device, equipment and storage medium | |
| CN107885746B (en) | Page sharing method and device | |
| WO2017107543A1 (en) | Information input method and apparatus | |
| CN106599210A (en) | Information processing method and apparatus | |
| CN107295099A (en) | PUSH message processing method, device and storage medium | |
| CN107329744A (en) | The functional module of application program starts method and device | |
| CN106446240A (en) | Memo format conversion method and device | |
| CN106936986A (en) | Application processing method and device | |
| CN106535194A (en) | Screen content sharing method, device and system | |
| CN111859208A (en) | Display method, device and storage medium | |
| CN110224991A (en) | Depending on the networked terminals means of communication and device | |
| CN106385430B (en) | The management method and device of communication message | |
| CN110213531B (en) | Monitoring video processing method and device | |
| CN113885986A (en) | Data transmission method and device and electronic equipment | |
| CN106919309A (en) | The method of controlling operation thereof and device of electronic equipment |
| 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |