CN103685514B - The store method and browser of the page in web page storage folder - Google Patents
The store method and browser of the page in web page storage folder Download PDFInfo
- Publication number
- CN103685514B CN103685514B CN201310684124.1A CN201310684124A CN103685514B CN 103685514 B CN103685514 B CN 103685514B CN 201310684124 A CN201310684124 A CN 201310684124A CN 103685514 B CN103685514 B CN 103685514B
- Authority
- CN
- China
- Prior art keywords
- page
- browser
- url
- saving
- predetermined format
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明提供了一种网页收藏夹中页面的保存方法和浏览器。该网页收藏夹中页面的保存方法包括:获取浏览器的收藏夹中所收藏网页的网址;将浏览器的标识信息与网址匹配生成备份请求;向服务器侧上传备份请求,由服务器侧根据备份请求以预定格式保存网址对应的页面;接收服务器侧下发的以预定格式保存的页面,并匹配保存网址和页面。利用本发明的技术方案,将浏览器收藏夹中网址对应的页面以预定的格式保存,在出现浏览器无法正常加载收藏夹网址对应的页面时,加载以预定格式保存的页面,避免了网络异常情况下无法浏览收藏页面的问题,提高了用户使用收藏夹的便利性。
The invention provides a method and a browser for saving pages in a webpage favorite. The method for saving the pages in the webpage favorites includes: obtaining the URLs of the webpages in the favorites of the browser; matching the identification information of the browser with the URLs to generate a backup request; uploading the backup request to the server side, and the server side according to the backup request Save the page corresponding to the URL in a predetermined format; receive the page saved in the predetermined format from the server side, and match and save the URL and the page. Utilize the technical scheme of the present invention, save the page corresponding to the URL in the browser favorites in a predetermined format, and when the browser cannot normally load the page corresponding to the favorite URL, load the page saved in the preset format, avoiding network abnormalities The problem that the favorite page cannot be browsed under certain circumstances improves the convenience for users to use favorites.
Description
技术领域technical field
本发明涉及互联网领域,特别是涉及一种网页收藏夹中页面的保存方法和浏览器。The invention relates to the field of the Internet, in particular to a method for saving pages in a webpage favorite and a browser.
背景技术Background technique
收藏夹是一般浏览器都具备的一项功能,其可以记录用户喜欢或经常使用的网站。用户需要访问收藏夹中的网址时,只需要在浏览器中直接打开收藏夹,点击网址在收藏夹中的名称,即可访问网址,而不用再次输入网址。Favorites is a function of common browsers, which can record the websites that users like or frequently use. When the user needs to access the URL in the favorite, he only needs to directly open the favorite in the browser, and click the name of the URL in the favorite to access the URL without inputting the URL again.
现有的收藏夹一般保存了页面名称和页面地址,用户对收藏夹中对应的收藏夹条目进行选择后,浏览器访问页面地址,并加载网站服务器返回的页面。使用现有技术中的收藏夹,必须保证网络无故障,且目标网站运行正常,如果出现网络状态不稳定或者目标网站出现问题的情况下,浏览器就无法加载页面,导致用户不能正常浏览器网页内容。The existing favorites generally store the page name and page address. After the user selects the corresponding favorite item in the favorites, the browser accesses the page address and loads the page returned by the website server. To use favorites in the prior art, it is necessary to ensure that the network is trouble-free and the target website is running normally. If the network status is unstable or there is a problem with the target website, the browser cannot load the page, resulting in the user being unable to browse the webpage normally. content.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的浏览器和相应的网页收藏夹中页面的保存方法。In view of the above problems, the present invention is proposed to provide a browser that overcomes the above problems or at least partially solves the above problems and a method for saving pages in the corresponding web page favorites.
依据本发明的一个方面,提供了一种网页收藏夹中页面的保存方法。该网页收藏夹中页面的保存方法,包括:获取浏览器的收藏夹中所收藏网页的网址;将浏览器的标识信息与网址匹配生成备份请求;向服务器侧上传备份请求,由服务器侧根据备份请求以预定格式保存网址对应的页面;接收服务器侧下发的以预定格式保存的页面,并匹配保存网址和页面。According to one aspect of the present invention, a method for saving pages in a webpage favorite is provided. The method for saving the pages in the webpage favorites includes: obtaining the URLs of the webpages in the browser's favorites; matching the identification information of the browser with the URLs to generate a backup request; uploading the backup request to the server side, and the server side according to the backup Request to save the page corresponding to the URL in a predetermined format; receive the page saved in the predetermined format from the server side, and match the saved URL and page.
可选地,在匹配保存网址和页面之后还包括:记录页面的保存时间。Optionally, after matching the saving URL and the page, the method further includes: recording the saving time of the page.
可选地,在记录页面的保存时间之后还包括:接收服务器侧下发的以预定格式保存的更新页面,并匹配保存网址和更新页面,记录更新页面的保存时间,更新页面由服务器侧根据发生变化的网址对应的页面保存得到。Optionally, after recording the save time of the page, it also includes: receiving an update page saved in a predetermined format sent by the server side, and matching the saved URL with the update page, recording the save time of the update page, and the update page is generated by the server side according to The page corresponding to the changed URL is saved and obtained.
可选地,以上提供的网页收藏夹中页面的保存方法还包括:在浏览器访问网址出现异常时,在浏览器中加载页面或更新页面。Optionally, the method for saving pages in the web page favorites provided above further includes: loading or updating the page in the browser when an abnormality occurs when the browser accesses the URL.
可选地,在浏览器中加载页面或更新页面包括:在浏览器中展示页面的保存时间和更新页面的保存时间,以供进行选择操作;根据选择操作在浏览器中加载对应的页面或更新页面。Optionally, loading or updating the page in the browser includes: displaying the saving time of the page and updating the saving time of the page in the browser for selection operation; loading the corresponding page or updating the page in the browser according to the selection operation page.
可选地,预定格式包括以下任意一种:图片格式、文本格式、便携文档格式、演示文稿格式、网页快照。Optionally, the predetermined format includes any one of the following: image format, text format, portable document format, presentation format, and webpage snapshot.
可选地,在匹配保存网址和页面之后还包括:对预定格式的页面进行压缩处理,得到缩略图;在浏览器的收藏夹页面中网页的展示位置对应处展示缩略图。Optionally, after matching and saving the URL and the page, the method further includes: compressing the page in a predetermined format to obtain a thumbnail; and displaying the thumbnail at a position corresponding to the display position of the web page in the favorites page of the browser.
可选地,浏览器的标识信息包括:在浏览器中登陆的用户标识信息。Optionally, the browser's identification information includes: user identification information logged in the browser.
基于本发明的另一个方面,还提供了一种浏览器。该浏览器包括:网址获取模块,用于获取收藏夹中所收藏网页的网址;请求生成模块,用于将浏览器的标识信息与网址匹配生成备份请求;上传接口,用于向服务器侧上传备份请求,由服务器侧根据备份请求以预定格式保存网址对应的页面;页面保存模块,用于接收服务器侧下发的以预定格式保存的页面,并匹配保存网址和页面。Based on another aspect of the present invention, a browser is also provided. The browser includes: a URL acquisition module, used to acquire URLs of webpages in favorites; a request generation module, used to match browser identification information with URLs to generate backup requests; an upload interface, used to upload backups to the server side request, the server side saves the page corresponding to the URL in a predetermined format according to the backup request; the page saving module is used to receive the page saved in the predetermined format sent by the server side, and match and save the URL and the page.
可选地,页面保存模块还用于:记录页面的保存时间。Optionally, the page saving module is also used for: recording the saving time of the page.
可选地,该浏览器还包括:页面更新模块,用于接收服务器侧下发的以预定格式保存的更新页面,并匹配保存网址和更新页面,记录更新页面的保存时间,更新页面由服务器侧根据发生变化的网址对应的页面保存得到。Optionally, the browser also includes: a page update module, configured to receive an update page saved in a predetermined format delivered by the server side, and match the saved URL with the update page, record the time of saving the update page, and the update page is sent by the server side It is obtained by saving the page corresponding to the changed URL.
可选地,该浏览器还包括:页面展示模块,用于在访问网址出现异常时,加载页面或更新页面。Optionally, the browser also includes: a page display module, configured to load or update the page when an abnormality occurs in the access URL.
可选地,页面展示模块被配置为:展示页面的保存时间和更新页面的保存时间,以供进行选择操作;根据选择操作加载对应的页面或更新页面。Optionally, the page display module is configured to: display the save time of the page and the save time of the updated page for the selection operation; load the corresponding page or update the page according to the selection operation.
可选地,该浏览器还包括:收藏夹展示模块,用于对预定格式的页面进行压缩处理,得到缩略图;并在收藏夹页面中网页的展示位置对应处展示缩略图。Optionally, the browser further includes: a favorites display module, configured to compress pages in a predetermined format to obtain thumbnails; and display the thumbnails at positions corresponding to the display positions of the web pages in the favorites page.
基于本发明的又一个方面,还提供了一种网页收藏夹中页面的保存方法。该网页收藏页面的保存方法包括:获取浏览器的收藏夹中所收藏网页的网址;获取网址对应的网页,并以预定格式保存网址对应的页面;将网址和以预定格式保存的页面进行匹配保存。Based on yet another aspect of the present invention, a method for saving pages in a webpage favorite is also provided. The method for saving the favorite web page includes: acquiring the web address of the favorite web page in the favorites of the browser; acquiring the web page corresponding to the web address, and saving the page corresponding to the web address in a predetermined format; matching and saving the web address and the page saved in the predetermined format .
可选地,在匹配保存网址和页面之后还包括:记录页面的保存时间;在间隔预设时间之后,以预定格式保存网址对应的页面,得到预定格式的更新页面。Optionally, after matching and saving the URL and the page, the method further includes: recording the saving time of the page; after a preset time interval, saving the page corresponding to the URL in a predetermined format to obtain an updated page in a predetermined format.
可选地,上述网页收藏夹中页面的保存方法还包括:在浏览器访问网址出现异常时,在浏览器中加载页面或更新页面。Optionally, the above-mentioned method for saving pages in the webpage favorites further includes: loading or updating the page in the browser when an abnormality occurs when the browser accesses the URL.
可选地,预定格式包括以下任意一种:图片格式、文本格式、便携文档格式、演示文稿格式、网页快照。Optionally, the predetermined format includes any one of the following: image format, text format, portable document format, presentation format, and webpage snapshot.
可选地,在匹配保存网址和页面之后还包括:对预定格式的页面进行压缩处理,得到缩略图;在浏览器的收藏夹页面中网页的展示位置对应处展示缩略图。Optionally, after matching and saving the URL and the page, the method further includes: compressing the page in a predetermined format to obtain a thumbnail; and displaying the thumbnail at a position corresponding to the display position of the web page in the favorites page of the browser.
可选地,将网址和以预定格式保存的页面进行匹配保存之后还包括:将网址和以预定格式保存的页面上传至服务器。Optionally, after matching and saving the URL and the page saved in the preset format, the method further includes: uploading the URL and the page saved in the preset format to the server.
基于本发明的又一个方面,还提供了一种浏览器。该浏览器包括:网址获取模块,用于获取收藏夹中所收藏网页的网址;页面获取模块,用于获取网址对应的网页,并以预定格式保存网址对应的页面;页面保存模块,用于将网址和以预定格式保存的页面进行匹配保存。Based on yet another aspect of the present invention, a browser is also provided. The browser includes: a web address obtaining module, used to obtain the web address of a favorite web page; a page obtaining module, used to obtain a web page corresponding to the web address, and save the corresponding page of the web address in a predetermined format; a page saving module, used to save the web page corresponding to the web address The URL and the page saved in the predetermined format are matched and saved.
可选地,该浏览器还包括页面更新模块,页面更新模块,用于间隔预设预时间,以预定格式保存网址对应的页面,得到预定格式的更新页面;页面保存模块还用于:记录页面和更新页面的保存时间。Optionally, the browser also includes a page update module, the page update module is used to save the corresponding page of the URL in a predetermined format at an interval of a preset preset time to obtain an updated page in a predetermined format; the page save module is also used for: recording the page and update page save time.
可选地,该浏览器还包括:页面展示模块,用于在访问网址出现异常时,加载页面或更新页面。Optionally, the browser also includes: a page display module, configured to load or update the page when an abnormality occurs in the access URL.
可选地,该浏览器还包括:收藏夹展示模块,用于对预定格式的页面进行压缩处理,得到缩略图;在浏览器的收藏夹页面中网页的展示位置对应处展示缩略图。Optionally, the browser further includes: a favorites display module, configured to compress pages in a predetermined format to obtain thumbnails; and display the thumbnails at positions corresponding to the display positions of web pages on the favorites page of the browser.
可选地,该浏览器还包括:云备份模块,用于将网址和以预定格式保存的页面上传至服务器。Optionally, the browser also includes: a cloud backup module, configured to upload the URL and the page saved in a predetermined format to the server.
本发明的浏览器和浏览器执行的网页收藏夹中页面的保存方法和浏览器,将浏览器收藏夹中网址对应的页面以预定的格式保存,在出现浏览器无法正常加载收藏夹网址对应的页面时,加载以预定格式保存的页面,避免了网络异常情况下无法浏览收藏页面的问题,提高了用户使用收藏夹的便利性。The browser of the present invention and the method for saving pages in the webpage favorites executed by the browser and the browser save the pages corresponding to the URLs in the browser favorites in a predetermined format, and when the browser cannot normally load the pages corresponding to the URLs of the favorites When loading pages, pages saved in a predetermined format are loaded, which avoids the problem of being unable to browse favorite pages when the network is abnormal, and improves the convenience for users to use favorites.
进一步地,本发明的技术方案,还可以在保存收藏夹页面时,记录页面的保存时间,并且以预定的方式,对保存的页面进行保存,在用户需要浏览器收藏页面时,按照保存时间向用户展示,以供用户选择使用,便于用户寻找历史页面并浏览更新内容。Furthermore, the technical solution of the present invention can also record the page saving time when saving the favorite page, and save the saved page in a predetermined manner, and when the user needs the browser to bookmark the page, send the page according to the saving time User display is for users to choose and use, so that users can find historical pages and browse updated content.
又进一步地,保存页面的过程可以浏览器侧执行并向服务器侧上传或者直接在服务器侧进行。在用户在不同地点登录后,可以方便地获得之前保存的内容,保证了数据保存的可靠性。Still further, the process of saving the page can be executed on the browser side and uploaded to the server side or directly performed on the server side. After the user logs in at different places, the previously saved content can be obtained conveniently, which ensures the reliability of data saving.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。Those skilled in the art will be more aware of the above and other objects, advantages and features of the present invention according to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1是根据本发明一个实施例的浏览器100的示意图;FIG. 1 is a schematic diagram of a browser 100 according to an embodiment of the present invention;
图2是根据本发明一个实施例的网页收藏夹中页面的保存方法的示意图;Fig. 2 is a schematic diagram of a method for saving a page in a webpage favorite according to an embodiment of the present invention;
图3是根据本发明另一个实施例的浏览器300的示意图;以及FIG. 3 is a schematic diagram of a browser 300 according to another embodiment of the present invention; and
图4是根据本发明另一个实施例的网页收藏夹中页面的保存方法的示意图。Fig. 4 is a schematic diagram of a method for saving a page in a webpage favorite according to another embodiment of the present invention.
具体实施方式detailed description
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
图1是根据本发明一个实施例的浏览器100的示意图。本实施例的浏览器100一般性地可包括:网址获取模块110、请求生成模块120、上传接口130、页面保存模块140。在一些特定工作环境或存在特定需求情况下,本实施例的浏览器还可以优选配置有页面更新模块150、页面展示模块160、收藏夹展示模块170。FIG. 1 is a schematic diagram of a browser 100 according to an embodiment of the present invention. The browser 100 in this embodiment may generally include: a website acquisition module 110 , a request generation module 120 , an upload interface 130 , and a page saving module 140 . In some specific working environments or under specific requirements, the browser in this embodiment may also preferably be configured with a page update module 150 , a page display module 160 , and a favorites display module 170 .
在以上部件中,网址获取模块110用于获取收藏夹中所收藏网页的网址,收藏夹中的条目都包含有网页的标题和地址,网址获取模块110获取网址的步骤可以在用户以将网址存入收藏夹后进行,也可以在用户通过各种方式将当前访问页面添加至收藏夹时进行。例如用户点击浏览器的添加至收藏夹的按钮,网址获取模块110自动获取当前浏览器页面的网址。Among the above components, the URL acquisition module 110 is used to acquire the URLs of the webpages collected in the favorites, and the entries in the favorites all include the title and address of the webpages. It can be done after adding the favorite page, or when the user adds the currently visited page to the favorite through various methods. For example, the user clicks the add to favorites button of the browser, and the website address obtaining module 110 automatically obtains the website address of the current browser page.
请求生成模块120用于将浏览器的标识信息与网址匹配生成备份请求,浏览器的标识信息可以包括在浏览器100的登录账户信息,通过浏览器的标识信息可以识别出用户,以便区分用户。The request generation module 120 is used to match the browser's identification information with the URL to generate a backup request. The browser's identification information may include login account information in the browser 100, and the user can be identified through the browser's identification information, so as to distinguish users.
上传接口130用于向服务器侧上传备份请求,由服务器侧根据备份请求以预定格式保存网址对应的页面。上传接口是本实施例的浏览器100向服务器进行上传的数据接口,由服务器完成页面保存。页面保存的格式可以包括:图片、便携文件格式(PortableDocument Format,简称pdf)、文本、网页快照等。在本实施例中可以优选采用图片格式,采用图片作为保存格式,可以直接采用截屏的方式进行,保存方式简单,而且保存的文件与原页面可以保持高度一致,在浏览器中加载速度快。而且使用图片进行保存、备份以及传输的过程,不会受到网页中恶意代码的影响,安全性高。The upload interface 130 is used to upload the backup request to the server side, and the server side saves the page corresponding to the URL in a predetermined format according to the backup request. The upload interface is a data interface through which the browser 100 of this embodiment uploads data to the server, and the server saves the page. The format for saving the page may include: picture, portable document format (PortableDocument Format, pdf for short), text, webpage snapshot, and the like. In this embodiment, the picture format can be preferably used, and the picture can be used as the storage format, which can be directly taken as a screen capture. The storage method is simple, and the saved file can be highly consistent with the original page, and the loading speed in the browser is fast. Moreover, the process of saving, backing up and transmitting pictures using pictures will not be affected by malicious codes in web pages, and the security is high.
服务器以预定格式保存页面后,可以向浏览器100返回保存的文件。本实施例的浏览器100中的页面保存模块140于接收服务器侧下发的以预定格式保存的页面,并匹配保存网址和页面。页面保存模块140保存的收藏夹的数据项,除了传统的网页名称、网页地址外,还包括了网页的本地格式文件。在用户打开收藏夹页面时,如果浏览器100无法正常加载页面,可以直接加载页面的本地保存文件。保证了用户的正常使用,防止了网址失效给用户带来的不便。After saving the page in a predetermined format, the server may return the saved file to the browser 100 . The page saving module 140 in the browser 100 of this embodiment receives the page saved in the predetermined format delivered by the server, and matches and saves the URL and the page. The data items of favorites saved by the page saving module 140 include not only the traditional webpage name and webpage address, but also the local format file of the webpage. When the user opens the favorite page, if the browser 100 cannot load the page normally, it may directly load the locally saved file of the page. The normal use of the user is guaranteed, and the inconvenience caused to the user by the failure of the website is prevented.
另外页面保存模块140还可以用于记录页面的保存时间。对于大部分网页,内容可能会进行更新,如果这样,可能导致本地保存的页面与当前网页不对应,对于这一问题,本实施例的浏览器100还可以增加设置有页面更新模块150,页面更新模块150用于接收服务器侧下发的以预定格式保存的更新页面,并匹配保存网址和更新页面,记录更新页面的保存时间,更新页面由服务器侧根据发生变化的网址对应的页面保存得到。服务器保存页面的具体方式可以采用以下方式进行:定期更新,探测网页内容变化进行更新。In addition, the page saving module 140 can also be used to record the saving time of the page. For most webpages, the content may be updated. If so, the locally saved page may not correspond to the current webpage. For this problem, the browser 100 of this embodiment can also be provided with a page update module 150 to update the page. The module 150 is used to receive the update page saved in a predetermined format sent by the server side, match the saved URL and the update page, and record the save time of the update page, and the update page is saved by the server side according to the page corresponding to the changed URL. The specific way for the server to save the page can be carried out in the following ways: regularly update, and detect the change of the content of the webpage to update.
采用定期更新的方式,更新页面的间隔时间可以由用户根据需要灵活设置。例如每天或者每周更新一次,服务器在保存更新页面后,返回给浏览器100,浏览器对每一版的更新页面按照保存时间进行保存,以供用户使用。更新页面的间隔时间也可以根据页面的种类自动设置,例如对于新闻网站的主页更新时间可以设置得较短,而对于百科一类的网页更新时间设置的较长。By adopting the method of regular update, the interval time for updating the page can be flexibly set by the user according to the needs. For example, it is updated once a day or every week. After the server saves the updated page, it returns to the browser 100, and the browser saves each version of the updated page according to the storage time for use by the user. The interval time for updating pages can also be automatically set according to the type of the page. For example, the update time for the home page of a news website can be set shorter, while the update time for web pages such as encyclopedias can be set longer.
本实施例的浏览器100利用服务器按照备份请求保存收藏夹页面,可以利用服务器的性能,对网页进行内容探测,比较网页在上次保存后是否进行了更新,如果发现内容存在差异,就进行更新页面的保存,并将更新后的页面以及保存时间下发给浏览器100。从而在及时可靠地保存每次收藏夹页面的变动。The browser 100 of this embodiment utilizes the server to save the favorites page according to the backup request, and can use the performance of the server to detect the content of the web page, compare whether the web page has been updated after it was saved last time, and update it if it finds that there is a difference in the content save the page, and send the updated page and the save time to the browser 100 . In this way, each favorite page change is saved in a timely and reliable manner.
本实施例的浏览器100中通过页面展示模块160,在访问网址出现异常时,加载本地已保存的页面或更新页面。在收藏夹的条目中包含多个不同保存时间的页面版本时,页面展示模块160以列表或者其他方式展示出不同版本的网页和保存时间,供用户挑选。在用户进行选择后,加载对应的版本。另外页面展示模块160还可以为用户提供整理版本的功能,例如删除或修改页面的版本。The browser 100 in this embodiment uses the page presentation module 160 to load a locally saved page or update a page when an abnormality occurs in the access website. When the Favorites entry contains multiple page versions with different storage times, the page display module 160 displays different versions of the webpage and storage times in a list or other ways for the user to choose. After the user makes a selection, the corresponding version is loaded. In addition, the page presentation module 160 can also provide the user with the function of organizing versions, such as deleting or modifying the version of the page.
在以上页面的保存格式为图片时,可以将页面的缩略图之间放入收藏夹的展示界面中,此时浏览器100还增加设置了收藏夹展示模块170。该收藏夹展示模块170用于对图片格式的保存的页面进行压缩处理,得到缩略图,并在收藏夹页面中网页的展示位置对应处展示缩略图。从而提供给用户更好的浏览收藏夹项目的方式。另外,收藏夹展示模块170也可以将非图片格式保存的网页进行压缩处理,得到缩略图,用于收藏夹条目的展示。When the saving format of the above pages is pictures, the thumbnails of the pages can be put into the display interface of favorites. At this time, the browser 100 is additionally provided with a favorites display module 170 . The favorites display module 170 is used to compress the saved pages in picture format to obtain thumbnails, and display the thumbnails at the positions corresponding to the display positions of the webpages in the favorites page. This provides users with a better way to browse favorite items. In addition, the favorites display module 170 may also compress webpages saved in non-picture format to obtain thumbnails for displaying favorites items.
本实施例的浏览器100生成收藏夹备份请求并接收服务器保存为预定格式的收藏夹页面,在出现浏览器无法正常加载收藏夹网址对应的页面时,加载以预定格式保存的页面,避免了网络异常情况下无法浏览收藏页面的问题,而且可以对页面进行多版本的备份,以便用户随时查看任意时间的网页内容。The browser 100 of this embodiment generates a favorites backup request and receives the favorites page saved by the server in a predetermined format. The problem that the favorite pages cannot be browsed under abnormal circumstances, and the page can be backed up in multiple versions, so that users can view the content of the webpage at any time at any time.
本实施例还提供了一种网页收藏夹中页面的保存方法,该网页收藏夹中页面的保存方法可以由上述浏览器100执行,解决收藏夹中页面的保存问题。图2是根据本发明一个实施例的网页收藏夹中页面的保存方法的示意图,如图,该网页收藏夹中页面的保存方法包括以下步骤:This embodiment also provides a method for saving a page in a webpage favorite, the method for saving a page in a webpage favorite can be executed by the browser 100, and solves the problem of saving a page in a favorite. FIG. 2 is a schematic diagram of a method for saving a page in a webpage favorite according to an embodiment of the present invention. As shown in the figure, the method for saving a page in the webpage favorite includes the following steps:
步骤S202,获取浏览器的收藏夹中所收藏网页的网址;Step S202, obtaining URLs of webpages stored in the favorites of the browser;
步骤S204,将浏览器的标识信息与网址匹配生成备份请求;Step S204, matching the identification information of the browser with the URL to generate a backup request;
步骤S206,向服务器侧上传备份请求,由服务器侧根据备份请求以预定格式保存网址对应的页面;Step S206, uploading the backup request to the server side, and the server side saves the page corresponding to the URL in a predetermined format according to the backup request;
步骤S208,接收服务器侧下发的以预定格式保存的页面,并匹配保存网址和页面。Step S208, receiving the page saved in the predetermined format delivered by the server side, and matching the saved URL and the page.
浏览器生成的备份请求中的标识信息包括在浏览器中登陆的用户标识信息,以区分用户的身份。The identification information in the backup request generated by the browser includes the user identification information logged in the browser to distinguish the identity of the user.
步骤S208中还可以将页面的保存时间记录下来,以区分页面的不同版本。页面保存的格式可以包括:图片、便携文件格式(Portable Document Format,简称pdf)、文本(如演示文稿格式)、网页快照等。在本实施例中可以优选采用图片格式,采用图片作为保存格式,可以直接采用截屏的方式进行,保存方式简单,而且可以保证传输加载的安全性。In step S208, the saving time of the page may also be recorded, so as to distinguish different versions of the page. The format for saving the page may include: picture, portable document format (Portable Document Format, pdf for short), text (such as presentation format), webpage snapshot, and the like. In this embodiment, the image format can be preferably used, and the image can be used as the storage format, which can be directly performed in the form of screenshot, the storage method is simple, and the security of transmission and loading can be guaranteed.
在步骤S208之后还可以对页面进行更新保存,流程可以为:接收服务器侧下发的以预定格式保存的更新页面,并匹配保存网址和更新页面,记录更新页面的保存时间,更新页面由服务器侧根据发生变化的网址对应的页面保存得到。通过记录不同版本更新页面的保存时间,可以对同一网址对应的不同页面进行区分。服务器可以采用定期更新或者通过检测页面变化的方式进行更新页面的保存。After step S208, the page can also be updated and saved. The process can be as follows: receive the updated page saved in a predetermined format sent by the server side, and match the saved URL and the updated page, record the storage time of the updated page, and update the page by the server side. It is obtained by saving the page corresponding to the changed URL. Different pages corresponding to the same URL can be distinguished by recording the storage time of the updated pages of different versions. The server may save the updated page by regularly updating or detecting page changes.
在浏览器接收页面并保存后,如果出现浏览器访问收藏夹中的网址异常的情况,就可以加载本地保存的页面或更新页面。在同一网址保存有多个不同时间保存的页面时,在浏览器中展示页面的保存时间和更新页面的保存时间,以供进行选择操作;根据选择操作在浏览器中加载对应的页面或更新页面。另外浏览器在展示不同页面时,还可以提供整理版本的功能,以便用户删除不需要条目,添加备注、对保存信息进行更改等其他操作。After the browser receives and saves the page, if the browser accesses the web address in the favorites abnormally, it can load the locally saved page or update the page. When multiple pages saved at different times are saved in the same URL, the save time of the page and the save time of the updated page are displayed in the browser for selection; load the corresponding page or update the page in the browser according to the selection operation . In addition, when the browser displays different pages, it can also provide the function of sorting out versions, so that users can delete unnecessary items, add notes, change saved information, and other operations.
另外,在步骤S208之后还可以对预定格式的页面进行压缩处理,得到缩略图;在浏览器的收藏夹页面中网页的展示位置对应处展示缩略图。从而提供给用户更好的浏览收藏夹中包含条目的方式。In addition, after step S208, the page in the predetermined format may be compressed to obtain a thumbnail; the thumbnail is displayed at a position corresponding to the display position of the web page in the favorites page of the browser. This provides users with a better way to browse items contained in favorites.
服务器保存的页面和更新页面格式除了用于下发给浏览器外,还可以直接保存在服务器侧,用于数据的备份,当用户更换登录地点后,将文件下发,利用云端备份保存了用户需要的数据。The pages saved by the server and the format of the updated pages are not only used for sending to the browser, but also can be directly saved on the server side for data backup. When the user changes the login location, the file is sent, and the user is saved by cloud backup. data needed.
本发明技术方案的另一实施例也提供了一种浏览器300和用于浏览器300执行的网页收藏夹中页面的保存方法。图3是根据本发明另一个实施例的浏览器300的示意图。该浏览器300一般性地可以包括:网址获取模块310、页面获取模块320、页面保存模块330。在需要增加功能和更佳技术效果的情况下,该浏览器300还可以增加设置有页面更新模块340、页面展示模块350、收藏夹展示模块360、云备份模块370。Another embodiment of the technical solution of the present invention also provides a browser 300 and a method for saving pages in the webpage favorites executed by the browser 300 . FIG. 3 is a schematic diagram of a browser 300 according to another embodiment of the present invention. Generally, the browser 300 may include: a website acquisition module 310 , a page acquisition module 320 , and a page storage module 330 . In the case that additional functions and better technical effects are required, the browser 300 can also be provided with a page update module 340 , a page display module 350 , a favorites display module 360 , and a cloud backup module 370 .
在以上部件中,网址获取模块310用于获取收藏夹中所收藏网页的网址;页面获取模块320用于获取网址对应的网页,并以预定格式保存网址对应的页面;页面保存模块330用于将网址和以预定格式保存的页面进行匹配保存。Among the above components, the URL acquisition module 310 is used to acquire the URL of the webpage collected in the favorites; the page acquisition module 320 is used to acquire the webpage corresponding to the URL, and saves the page corresponding to the URL in a predetermined format; the page preservation module 330 is used to save The URL and the page saved in the predetermined format are matched and saved.
与上一实施例中介绍的浏览器100相比较,本实施例的浏览器300的不同之处在于:保存收藏夹中页面并未通过服务器侧进行,而是在浏览器300侧完成获取页面、匹配保存的过程。与现有技术中添加收藏夹的过程相比,本实施例在收藏夹的数据项中在网址和网页标题之外,增加了网页的本地存储文件。在用户打开收藏夹页面时,如果浏览器300无法正常加载页面,可以直接加载页面的本地保存文件。页面更新模块340、页面展示模块350、收藏夹展示模块360、云备份模块370。Compared with the browser 100 introduced in the previous embodiment, the browser 300 of this embodiment is different in that: saving the pages in the favorites is not done through the server side, but the browser 300 side completes the acquisition of pages, Match the saved process. Compared with the process of adding a favorite in the prior art, this embodiment adds a local storage file of the webpage in addition to the URL and the title of the webpage in the data item of the favorite. When the user opens the favorite page, if the browser 300 cannot load the page normally, it may directly load the locally saved file of the page. A page update module 340 , a page display module 350 , a favorites display module 360 , and a cloud backup module 370 .
考虑到页面内容可能会发生变化,页面保存模块330还可以用于记录页面的保存时间。另外浏览器300增加设置了页面更新模块340,用于间隔预设预时间,以预定格式保存网址对应的页面,得到预定格式的更新页面。获取并保存更新页面的过程,除了可以采用定期保存的方式,还可以利用其他方式触发,例如用户每次使用浏览器打开该网址后,页面更新模块340更新一次页面内容,将纪录保存时间并与更新页面文件匹配保存在该网址的数据项下。Considering that the page content may change, the page saving module 330 can also be used to record the page saving time. In addition, the browser 300 is additionally equipped with a page update module 340, which is used to save the page corresponding to the URL in a predetermined format at an interval of a preset preset time, so as to obtain an updated page in a predetermined format. The process of obtaining and saving the updated page can be triggered by other means besides regular saving. For example, after the user uses the browser to open the website every time, the page update module 340 updates the page content once, records the time of saving and communicates with the Update page file matches are stored under the data item for this URL.
浏览器300在访问网址出现异常时,可以利用页面展示模块350自动加载本地保存的页面或更新页面。在收藏夹的条目中包含多个不同保存时间的页面版本时,页面展示模块350以列表或者其他方式展示出不同版本的网页和保存时间,供用户挑选。在用户进行选择后,加载对应的版本。另外页面展示模块350还可以为用户提供整理版本的功能,例如删除或修改页面的版本。The browser 300 can use the page display module 350 to automatically load a locally saved page or update a page when an abnormality occurs when accessing a website. When the Favorites entry contains multiple page versions with different storage times, the page display module 350 displays different versions of web pages and storage times in a list or other ways for the user to choose. After the user makes a selection, the corresponding version is loaded. In addition, the page presentation module 350 can also provide the user with the function of organizing versions, such as deleting or modifying the version of the page.
在以上页面的保存格式为图片时,可以将页面的缩略图之间放入收藏夹的展示界面中,此时浏览器300还增加设置了收藏夹展示模块360。该收藏夹展示模块360用于对图片格式的保存的页面进行压缩处理,得到缩略图,并在收藏夹页面中网页的展示位置对应处展示缩略图。从而提供给用户更好的浏览收藏夹项目的方式。另外,收藏夹展示模块360也可以将非图片格式保存的网页进行压缩处理,得到缩略图,用于收藏夹条目的展示。When the saving format of the above pages is pictures, the thumbnails of the pages can be put into the display interface of favorites. At this time, the browser 300 is additionally provided with a favorites display module 360 . The favorites display module 360 is used to compress the saved pages in picture format to obtain thumbnails, and display the thumbnails at the positions corresponding to the display positions of the webpages in the favorites page. This provides users with a better way to browse favorite items. In addition, the favorites display module 360 can also compress webpages saved in non-picture format to obtain thumbnails for displaying favorites items.
为了防止本地保存的数据丢失,或者满足用户异地登陆使用收藏夹的需求,本实施例的浏览器300还可以利用云备份模块370,将网址和以预定格式保存的页面上传至服务器,以供用户在丢失数据或多地登陆时,进行数据的同步。In order to prevent the loss of locally saved data, or to meet the needs of users who log in and use favorites in different places, the browser 300 of this embodiment can also use the cloud backup module 370 to upload URLs and pages saved in a predetermined format to the server for the user When data is lost or logged in multiple places, data synchronization is performed.
本实施例还提供了一种网页收藏夹中页面的保存方法,该网页收藏夹中页面的保存方法可以由上述浏览器300执行,实现收藏夹中网页的本地保存。图4是根据本发明另一个实施例的网页收藏夹中页面的保存方法的示意图,如图,该网页收藏夹中页面的保存方法包括以下步骤:This embodiment also provides a method for saving pages in the favorites of webpages. The method for saving pages in the favorites of webpages can be executed by the browser 300 to realize local saving of the webpages in the favorites. 4 is a schematic diagram of a method for saving a page in a webpage favorite according to another embodiment of the present invention. As shown in the figure, the method for saving a page in the webpage favorite includes the following steps:
步骤S402,获取浏览器的收藏夹中所收藏网页的网址;Step S402, obtaining the web address of the webpage collected in the favorites of the browser;
步骤S404,获取网址对应的网页,并以预定格式保存网址对应的页面;Step S404, obtaining the web page corresponding to the URL, and saving the page corresponding to the URL in a predetermined format;
步骤S406,将网址和以预定格式保存的页面进行匹配保存。Step S406, matching and saving the URL and the page saved in a predetermined format.
为了满足用户对不同时间的页面进行浏览器的要求,在步骤S406之后还可以包括:记录页面的保存时间;在间隔预设时间之后,以预定格式保存网址对应的页面,得到预定格式的更新页面。页面更新并不局限于定时更新的方式,还可以采用如每次用户在打开该页面,就更新一次的方式。In order to meet the user's requirements for browsing pages at different times, after step S406, it may also include: recording the saving time of the page; after the interval preset time, saving the page corresponding to the URL in a predetermined format to obtain an update page in a predetermined format . The page update is not limited to the method of regularly updating, and may also adopt a method of updating once every time the user opens the page.
在浏览器访问网址出现异常时,就可以在浏览器中加载本地保存的页面或更新页面。以上预定格式包括以下任意一种:图片格式、文本格式、便携文档格式、演示文稿格式、网页快照。在本实施例中可以优选采用图片格式,采用图片作为保存格式,可以直接采用截屏的方式进行,保存方式简单,而且保存的文件与原页面可以保持高度一致,在浏览器中加载速度快。而且使用图片进行保存、备份以及传输的过程,不会受到网页中恶意代码的影响,安全性高。When the browser accesses the URL abnormally, the locally saved page can be loaded in the browser or the page can be updated. The predetermined format above includes any one of the following: image format, text format, portable document format, presentation format, and web page snapshot. In this embodiment, the picture format can be preferably used, and the picture can be used as the storage format, which can be directly taken as a screen capture. The storage method is simple, and the saved file can be highly consistent with the original page, and the loading speed in the browser is fast. Moreover, the process of saving, backing up and transmitting pictures using pictures will not be affected by malicious codes in web pages, and the security is high.
本实例的网页收藏夹中页面的保存方法还可以将页面的缩略图之间放入收藏夹的展示界面中,具体的步骤包括:对预定格式的页面进行压缩处理,得到缩略图;在浏览器的收藏夹页面中网页的展示位置对应处展示缩略图。The method for saving the pages in the webpage favorites in this example can also put the thumbnails of the pages into the display interface of the favorites. The specific steps include: compressing the pages in the predetermined format to obtain thumbnails; Thumbnails are displayed corresponding to the display positions of the web pages on the Favorites page.
为了防止本地保存的数据丢失,或者满足用户异地登陆使用收藏夹的需求,在步骤S406之后还可以将网址和以预定格式保存的页面上传至服务器。In order to prevent the loss of locally saved data, or to meet the user's requirement for remote login and use of favorites, after step S406, the URL and the page saved in a predetermined format may also be uploaded to the server.
以下分别两个具体的应用实例对以上两个实施例的浏览器及其网页收藏夹中页面的保存方法进行说明:The browsers of the above two embodiments and the methods for saving pages in their webpage favorites are described below in two specific application examples:
应用实例一:Application example one:
用户使用已经登录账户的浏览器访问360问答网页(网址为:http://wenda.so.com/),进行点击添加至收藏夹的操作,浏览器按照http://wenda.so.com以及用户的登录账号生成收藏夹备份请求,上传给收藏夹云端服务器。收藏夹云端服务器请求获取360问答的页面,转换成图片格式,并将图片格式的页面保存在用户登录账号下的收藏夹数据项下。The user visits the 360 Q&A webpage (URL: http://wenda.so.com/) with a browser that has logged in to the account, and clicks to add to favorites. The browser follows http://wenda.so.com and The user's login account generates a favorites backup request and uploads it to the favorites cloud server. The favorite cloud server requests to obtain the page of 360 Q & A, converts it into a picture format, and saves the page in the picture format under the favorite data item under the user's login account.
收藏夹云端服务器向发出备份请求的浏览器返回保存页面图片,浏览器在本地进行保存并记录保存时间,压缩该图片的压缩图,用于在收藏夹菜单中进行展示。The favorites cloud server returns the saved page picture to the browser that sends the backup request, and the browser saves it locally and records the saving time, and compresses the compressed image of the picture for display in the favorites menu.
浏览器对页面加载情况进行监控,在出现收藏夹中的网址无法正常打开时,浏览器自动加载本地保存的图片。The browser monitors the loading of the page, and when the URL in the favorites cannot be opened normally, the browser automatically loads the locally saved pictures.
服务器定期扫描http://wenda.so.com/对应的页面,如果发现扫描的页面与之前保存为图片页面发生了变化,自动将变化的页面保存为图片形式的更新页面,每保存一次更新页面,就自动记录保存时间,并下发给浏览器。The server regularly scans the pages corresponding to http://wenda.so.com/, and if it finds that the scanned page has changed from the page saved as a picture before, it will automatically save the changed page as an updated page in the form of a picture, and update the page every time it is saved , automatically record and save the time, and send it to the browser.
浏览器将服务器下发的多个更新页面匹配保存在收藏夹的对应条目下,在用户选择该条目时,浏览器按照保存的时间对各版本的页面进行展示,用户可以根据需要选择页面进行加载,并可以删除不需要的版本或者添加版本的备注。The browser matches and saves multiple updated pages delivered by the server under the corresponding item of favorites. When the user selects the item, the browser displays the pages of each version according to the saved time, and the user can select the page to load as needed. , and you can delete unnecessary versions or add version notes.
应用实例二:Application example two:
用户使用已经登录账户的浏览器访问360问答网页(网址为:http://wenda.so.com/),进行点击添加至收藏夹的操作。浏览器在收藏夹中创建360问答网页的条目,并将网页进行截屏,将截屏产生的图片保存到该条目下。The user visits the 360 Q&A webpage (URL: http://wenda.so.com/) with a browser that has logged in to the account, and clicks to add it to favorites. The browser creates an entry of the 360 Q&A webpage in the favorites, takes a screenshot of the webpage, and saves the picture generated by the screenshot under the entry.
在创建该条目后,浏览器监控用户是否打开360问答网页,如果用户再次开启该网页,则监控该网页是否可以正常开启,如果可以正常加载该网页,浏览器则对360问答网页进行更新保存,每次保存后,均记录保存时间,并将保存的内容上传给云端服务器。如果网页无法正常加载,浏览器就按照保存时间将保存的图片页面以列表方式展现给用户。由用户选择加载或者删除不需要的版本。例如用户选择首次保存的网页,那么浏览器自动加载第一次保存的页面对应的图片。After the entry is created, the browser monitors whether the user opens the 360 Q&A webpage. If the user opens the webpage again, it monitors whether the webpage can be opened normally. If the webpage can be loaded normally, the browser updates and saves the 360 Q&A webpage. After each save, the save time is recorded and the saved content is uploaded to the cloud server. If the webpage cannot be loaded normally, the browser will display the saved image pages to the user in a list according to the saved time. It is up to the user to choose to load or delete unwanted versions. For example, if the user selects the webpage saved for the first time, the browser automatically loads the picture corresponding to the webpage saved for the first time.
以上两个应用实例仅是在具体场景下本发明实施例的应用情况介绍,而并非对本发明技术方案的限定。The above two application examples are only introductions of the application of the embodiments of the present invention in specific scenarios, rather than limiting the technical solution of the present invention.
本发明实施例的技术方案,将浏览器收藏夹中网址对应的页面以预定的格式保存,在出现浏览器无法正常加载收藏夹网址对应的页面时,加载以预定格式保存的页面,避免了网络异常情况下无法浏览收藏页面的问题,提高了用户使用收藏夹的便利性。In the technical solution of the embodiment of the present invention, the pages corresponding to the URLs in the browser favorites are saved in a predetermined format, and when the browser cannot normally load the pages corresponding to the favorites URLs, the pages saved in the predetermined format are loaded, avoiding network The problem that the favorite page cannot be browsed under abnormal circumstances improves the convenience for users to use favorites.
进一步地,本发明实施例的浏览器还可以在保存收藏夹页面时,记录页面的保存时间,并且以预定的方式,对保存的页面进行保存,在用户需要浏览器收藏页面时,按照保存时间向用户展示,以供用户选择使用,便于用户寻找历史页面并浏览更新内容。Further, the browser in the embodiment of the present invention can also record the saving time of the page when saving the favorite page, and save the saved page in a predetermined manner. When the user needs the browser to bookmark the page, according to the saving time It is displayed to the user for the user to choose and use, so that the user can find the historical page and browse the updated content.
又进一步地,保存页面的过程可以浏览器侧执行并向服务器侧上传或者直接在服务器侧进行。在用户在不同地点登录后,可以方便地获得之前保存的内容,保证了数据保存的可靠性。Still further, the process of saving the page can be executed on the browser side and uploaded to the server side or directly performed on the server side. After the user logs in at different places, the previously saved content can be obtained conveniently, which ensures the reliability of data saving.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings), as well as any method or method so disclosed, may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the browser according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。So far, those skilled in the art should appreciate that, although a number of exemplary embodiments of the present invention have been shown and described in detail herein, without departing from the spirit and scope of the present invention, the disclosed embodiments of the present invention can still be used. Many other variations or modifications consistent with the principles of the invention are directly identified or derived from the content. Accordingly, the scope of the present invention should be understood and deemed to cover all such other variations or modifications.
本发明实施例还揭示了A1.一种网页收藏夹中页面的保存方法,包括:The embodiment of the present invention also discloses A1. A method for saving pages in a webpage favorite, comprising:
获取浏览器的收藏夹中所收藏网页的网址;Obtain the URL of the favorite webpage in the browser's favorites;
将所述浏览器的标识信息与所述网址匹配生成备份请求;Matching the identification information of the browser with the URL to generate a backup request;
向服务器侧上传所述备份请求,由服务器侧根据所述备份请求以预定格式保存所述网址对应的页面;uploading the backup request to the server side, and the server side saves the page corresponding to the URL in a predetermined format according to the backup request;
接收所述服务器侧下发的以所述预定格式保存的页面,并匹配保存所述网址和所述页面。receiving the page saved in the predetermined format delivered by the server side, and matching and saving the URL and the page.
A2.根据A1所述的方法,其中,在匹配保存所述网址和所述页面之后还包括:记录所述页面的保存时间。A2. The method according to A1, wherein, after matching and saving the URL and the page, it further includes: recording the saving time of the page.
A3.根据A2所述的方法,其中,在记录所述页面的保存时间之后还包括:A3. The method according to A2, wherein, after recording the storage time of the page, it also includes:
接收所述服务器侧下发的以所述预定格式保存的更新页面,并匹配保存所述网址和所述更新页面,记录所述更新页面的保存时间,所述更新页面由所述服务器侧根据发生变化的所述网址对应的页面保存得到。receiving the update page saved in the predetermined format sent by the server side, matching and saving the URL and the update page, and recording the storage time of the update page, and the update page is generated by the server side according to The page corresponding to the changed URL is saved and obtained.
A4.根据A3所述的方法,其中,还包括:A4. The method according to A3, which also includes:
在所述浏览器访问所述网址出现异常时,在所述浏览器中加载所述页面或所述更新页面。When an abnormality occurs when the browser accesses the website, the page or the update page is loaded in the browser.
A5.根据A4所述的方法,其中,在所述浏览器中加载所述页面或所述更新页面包括:A5. The method according to A4, wherein loading the page or the updated page in the browser comprises:
在所述浏览器中展示所述页面的保存时间和所述更新页面的保存时间,以供进行选择操作;Displaying the storage time of the page and the storage time of the updated page in the browser for selection;
根据所述选择操作在所述浏览器中加载对应的所述页面或所述更新页面。Loading the corresponding page or the update page in the browser according to the selection operation.
A6.根据A1至A5中任一项所述的方法,其中,所述预定格式包括以下任意一种:图片格式、文本格式、便携文档格式、演示文稿格式、网页快照。A6. The method according to any one of A1 to A5, wherein the predetermined format includes any one of the following: image format, text format, portable document format, presentation format, and webpage snapshot.
A7.根据A1至A6中任一项所述的方法,其中,在匹配保存所述网址和所述页面之后还包括:A7. The method according to any one of A1 to A6, wherein, after matching and saving the URL and the page, it also includes:
对所述预定格式的页面进行压缩处理,得到缩略图;在浏览器的收藏夹页面中所述网页的展示位置对应处展示所述缩略图。Compressing the page in the predetermined format to obtain a thumbnail; displaying the thumbnail at a position corresponding to the display position of the web page in the favorites page of the browser.
A8.根据A1至A7中任一项所述的方法,其中,所述浏览器的标识信息包括:在所述浏览器中登陆的用户标识信息。A8. The method according to any one of A1 to A7, wherein the identification information of the browser includes: identification information of a user logged in in the browser.
本发明实施例还揭示了B9.一种浏览器,包括:The embodiment of the present invention also discloses B9. a browser, comprising:
网址获取模块,用于获取收藏夹中所收藏网页的网址;A URL acquisition module, configured to acquire the URLs of the favorite webpages in the favorites;
请求生成模块,用于将所述浏览器的标识信息与所述网址匹配生成备份请求;A request generating module, configured to match the browser's identification information with the URL to generate a backup request;
上传接口,用于向服务器侧上传所述备份请求,由服务器侧根据所述备份请求以预定格式保存所述网址对应的页面;The upload interface is used to upload the backup request to the server side, and the server side saves the page corresponding to the URL in a predetermined format according to the backup request;
页面保存模块,用于接收所述服务器侧下发的以所述预定格式保存的页面,并匹配保存所述网址和所述页面。The page saving module is configured to receive the page saved in the predetermined format delivered by the server side, and match and save the URL and the page.
B10.根据B9所述的浏览器,其中,B10. The browser according to B9, wherein,
所述页面保存模块还用于:记录所述页面的保存时间。The page saving module is also used for: recording the saving time of the page.
B11.根据B10所述的浏览器,其中,还包括:B11. The browser according to B10, further comprising:
页面更新模块,用于接收所述服务器侧下发的以所述预定格式保存的更新页面,并匹配保存所述网址和所述更新页面,记录所述更新页面的保存时间,所述更新页面由所述服务器侧根据发生变化的所述网址对应的页面保存得到。A page update module, configured to receive an update page saved in the predetermined format delivered by the server side, and match and store the URL and the update page, and record the time of saving the update page, and the update page is saved by The server side saves and obtains the page corresponding to the changed URL.
B12.根据B11所述的浏览器,其中,还包括:B12. The browser according to B11, further comprising:
页面展示模块,用于在访问所述网址出现异常时,加载所述页面或所述更新页面。The page display module is used to load the page or update the page when the access to the website is abnormal.
B13.根据B12所述的浏览器,其中,所述页面展示模块被配置为:B13. The browser according to B12, wherein the page display module is configured to:
展示所述页面的保存时间和所述更新页面的保存时间,以供进行选择操作;根据所述选择操作加载对应的所述页面或所述更新页面。Displaying the saving time of the page and the saving time of the updated page for selection operation; loading the corresponding page or the updated page according to the selection operation.
B14.根据B13所述的浏览器,其中,还包括:B14. The browser according to B13, further comprising:
收藏夹展示模块,用于对所述预定格式的页面进行压缩处理,得到缩略图;并在收藏夹页面中所述网页的展示位置对应处展示所述缩略图。The favorites display module is configured to compress the pages in the predetermined format to obtain thumbnails; and display the thumbnails at the position corresponding to the display position of the webpage in the favorites page.
本发明实施例还揭示了C15.一种网页收藏夹中页面的保存方法,包括:The embodiment of the present invention also discloses C15. A method for saving pages in a webpage favorite, comprising:
获取浏览器的收藏夹中所收藏网页的网址;Obtain the URL of the favorite webpage in the browser's favorites;
获取所述网址对应的网页,并以预定格式保存所述网址对应的页面;Obtaining the webpage corresponding to the URL, and saving the page corresponding to the URL in a predetermined format;
将所述网址和以所述预定格式保存的页面进行匹配保存。matching and saving the URL and the page saved in the predetermined format.
C16.根据C15所述的方法,其中,在匹配保存所述网址和所述页面之后还包括:C16. The method according to C15, wherein, after matching and saving the URL and the page, it also includes:
记录所述页面的保存时间;record how long the said page was kept;
在间隔预设时间之后,以预定格式保存所述网址对应的页面,得到预定格式的更新页面。After a preset time interval, the page corresponding to the URL is saved in a predetermined format to obtain an updated page in a predetermined format.
C17.根据C16所述的方法,其中,还包括:C17. The method according to C16, further comprising:
在所述浏览器访问所述网址出现异常时,在所述浏览器中加载所述页面或所述更新页面。When an abnormality occurs when the browser accesses the website, the page or the update page is loaded in the browser.
C18.根据C15至C17中任一项所述的方法,其中,所述预定格式包括以下任意一种:图片格式、文本格式、便携文档格式、演示文稿格式、网页快照。C18. The method according to any one of C15 to C17, wherein the predetermined format includes any one of the following: image format, text format, portable document format, presentation format, and webpage snapshot.
C19.根据C15至C18中任一项所述的方法,其中,在匹配保存所述网址和所述页面之后还包括:C19. The method according to any one of C15 to C18, wherein, after matching and saving the URL and the page, it also includes:
对所述预定格式的页面进行压缩处理,得到缩略图;在浏览器的收藏夹页面中所述网页的展示位置对应处展示所述缩略图。Compressing the page in the predetermined format to obtain a thumbnail; displaying the thumbnail at a position corresponding to the display position of the web page in the favorites page of the browser.
C20.根据C15至C19中任一项所述的方法,其中,将所述网址和以所述预定格式保存的页面进行匹配保存之后还包括:C20. The method according to any one of C15 to C19, wherein, after matching and saving the URL and the page saved in the predetermined format, it also includes:
将所述网址和以所述预定格式保存的页面上传至服务器。Upload the URL and the page saved in the predetermined format to the server.
本发明实施例还揭示了D21.一种浏览器,包括:The embodiment of the present invention also discloses D21. A browser, comprising:
网址获取模块,用于获取收藏夹中所收藏网页的网址;A URL acquisition module, configured to acquire the URLs of the favorite webpages in the favorites;
页面获取模块,用于获取所述网址对应的网页,并以预定格式保存所述网址对应的页面;A page acquisition module, configured to acquire the webpage corresponding to the URL, and save the page corresponding to the URL in a predetermined format;
页面保存模块,用于将所述网址和以所述预定格式保存的页面进行匹配保存。A page saving module, configured to match and save the URL and the page saved in the predetermined format.
D22.根据D21所述的浏览器,还包括页面更新模块,D22. The browser according to D21, further comprising a page update module,
所述页面更新模块,用于间隔预设预时间,以预定格式保存所述网址对应的页面,得到预定格式的更新页面The page update module is used to save the page corresponding to the URL in a predetermined format at an interval of a preset preset time to obtain an updated page in a predetermined format
所述页面保存模块还用于:记录所述页面和所述更新页面的保存时间。The page saving module is also used for: recording the saving time of the page and the updated page.
D23.根据D22所述的浏览器,其中,还包括:D23. The browser according to D22, further comprising:
页面展示模块,用于在访问所述网址出现异常时,加载所述页面或所述更新页面。The page display module is used to load the page or update the page when the access to the website is abnormal.
D24.根据D21至D23中任一项所述的浏览器,其中,还包括:D24. The browser according to any one of D21 to D23, further comprising:
收藏夹展示模块,用于对所述预定格式的页面进行压缩处理,得到缩略图;在浏览器的收藏夹页面中所述网页的展示位置对应处展示所述缩略图。The favorites display module is configured to compress the pages in the predetermined format to obtain thumbnails; and display the thumbnails at the position corresponding to the display position of the webpage on the favorites page of the browser.
D25.根据D21至D24中任一项所述的浏览器,其中,还包括:D25. The browser according to any one of D21 to D24, further comprising:
云备份模块,用于将所述网址和以所述预定格式保存的页面上传至服务器。The cloud backup module is used to upload the URL and the page saved in the predetermined format to the server.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310684124.1A CN103685514B (en) | 2013-12-13 | 2013-12-13 | The store method and browser of the page in web page storage folder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310684124.1A CN103685514B (en) | 2013-12-13 | 2013-12-13 | The store method and browser of the page in web page storage folder |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103685514A CN103685514A (en) | 2014-03-26 |
CN103685514B true CN103685514B (en) | 2017-11-07 |
Family
ID=50321789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310684124.1A Active CN103685514B (en) | 2013-12-13 | 2013-12-13 | The store method and browser of the page in web page storage folder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103685514B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104809219B (en) * | 2015-04-30 | 2018-12-25 | 北京盛世光明软件股份有限公司 | A kind of webpage collection method and system |
CN105069061B (en) * | 2015-07-28 | 2019-03-12 | 安一恒通(北京)科技有限公司 | Method and system for loading webpage in historical browsing record, browser and server |
CN106611019A (en) * | 2015-10-27 | 2017-05-03 | 北京国双科技有限公司 | Collection method, device and system for Web page data |
CN106611025A (en) * | 2015-10-27 | 2017-05-03 | 北京国双科技有限公司 | Web page data collecting method and device |
CN105740417A (en) * | 2016-01-29 | 2016-07-06 | 青岛海信移动通信技术股份有限公司 | Webpage based target data search method and module, browser and terminal |
CN106599078A (en) * | 2016-11-21 | 2017-04-26 | 上海斐讯数据通信技术有限公司 | Webpage switching acceleration apparatus and method |
CN107066626A (en) * | 2017-05-15 | 2017-08-18 | 惠州市德赛工业研究院有限公司 | A kind of terminal collection file download storage, sort management method and device |
CN110020346B (en) * | 2017-09-12 | 2022-11-04 | 北京搜狗科技发展有限公司 | Page storage method and device |
CN107766509B (en) * | 2017-10-23 | 2021-02-26 | 北京京东尚科信息技术有限公司 | Method and device for static backup of webpage |
WO2020073290A1 (en) * | 2018-10-11 | 2020-04-16 | 华为技术有限公司 | Web page storage method and terminal |
CN110134482A (en) * | 2019-05-20 | 2019-08-16 | 无讼网络科技(北京)有限公司 | Page display method, device, electronic equipment and computer readable storage medium |
CN110909271A (en) * | 2019-11-11 | 2020-03-24 | 青岛海信移动通信技术股份有限公司 | Communication terminal, server interconnected with communication terminal and control method |
CN112202876B (en) * | 2020-09-28 | 2022-05-03 | 北京金山云网络技术有限公司 | Request processing method and device and electronic equipment |
CN112257004B (en) * | 2020-11-06 | 2023-03-14 | 微医云(杭州)控股有限公司 | Method, device, server and storage medium for page backup |
CN113504854B (en) * | 2021-07-08 | 2025-02-25 | 维沃移动通信(杭州)有限公司 | Display method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102455857A (en) * | 2010-11-01 | 2012-05-16 | 腾讯科技(深圳)有限公司 | Method and system for realizing quick links in mobile terminal browser |
CN102609416A (en) * | 2011-01-21 | 2012-07-25 | 富泰华工业(深圳)有限公司 | Webpage information storage control and method |
CN102737116A (en) * | 2012-05-29 | 2012-10-17 | 深圳市同洲电子股份有限公司 | Method and device for storing webpage resources |
CN102915363A (en) * | 2012-10-18 | 2013-02-06 | 北京奇虎科技有限公司 | Website storing method and system |
CN102929985A (en) * | 2012-10-18 | 2013-02-13 | 北京奇虎科技有限公司 | Method and system for displaying collected webpage |
CN103020263A (en) * | 2012-12-24 | 2013-04-03 | 北京小米科技有限责任公司 | Method, device and terminal for storing webpage information |
CN103064989A (en) * | 2013-02-03 | 2013-04-24 | 广州市动景计算机科技有限公司 | Webpage storing and opening method and device |
-
2013
- 2013-12-13 CN CN201310684124.1A patent/CN103685514B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102455857A (en) * | 2010-11-01 | 2012-05-16 | 腾讯科技(深圳)有限公司 | Method and system for realizing quick links in mobile terminal browser |
CN102609416A (en) * | 2011-01-21 | 2012-07-25 | 富泰华工业(深圳)有限公司 | Webpage information storage control and method |
CN102737116A (en) * | 2012-05-29 | 2012-10-17 | 深圳市同洲电子股份有限公司 | Method and device for storing webpage resources |
CN102915363A (en) * | 2012-10-18 | 2013-02-06 | 北京奇虎科技有限公司 | Website storing method and system |
CN102929985A (en) * | 2012-10-18 | 2013-02-13 | 北京奇虎科技有限公司 | Method and system for displaying collected webpage |
CN103020263A (en) * | 2012-12-24 | 2013-04-03 | 北京小米科技有限责任公司 | Method, device and terminal for storing webpage information |
CN103064989A (en) * | 2013-02-03 | 2013-04-24 | 广州市动景计算机科技有限公司 | Webpage storing and opening method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103685514A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103685514B (en) | The store method and browser of the page in web page storage folder | |
CN113687974B (en) | Client log processing method and device and computer equipment | |
US8407363B2 (en) | Generating low resolution user interfaces for transmission to mobile devices | |
CN103678555B (en) | Carry out the method for web page storage and carry out the device of web page storage | |
US10146408B2 (en) | Method, system and terminal for interface presentation | |
US10542123B2 (en) | System and method for generating and monitoring feedback of a published webpage as implemented on a remote client | |
CN107528718B (en) | Method, device and system for acquiring resources | |
US20140359411A1 (en) | Methods and systems for uniquely identifying digital content for ediscovery | |
US9912747B2 (en) | Browser and system for download and download method | |
CN104536993B (en) | Collect the processing method of webpage, collect the processing unit and client of webpage | |
CN105991398A (en) | Instant message IM chatting records storage method and apparatus | |
US11314820B2 (en) | Systems and methods for web collaboration | |
CN103034517A (en) | Method and device for loading browser control tool | |
US20140331114A1 (en) | Methods and apparatuses for obtaining and sharing partial content of a webpage | |
CN103631905A (en) | Webpage loading method and browser | |
CN104361004B (en) | The processing method and browser of browser collection folder data | |
US8756292B2 (en) | Smart cache learning mechanism in enterprise portal navigation | |
CN104346075A (en) | Method for processing screenshots and client | |
CN104346464A (en) | Processing method and device of webpage element information and browser client | |
US20160117335A1 (en) | Systems and methods for archiving media assets | |
CN104348919A (en) | Method and device for downloading file and browser | |
CN104361007B (en) | The processing method of browser and its collection | |
CN107341234B (en) | Display method, apparatus and computer-readable storage medium of page | |
CN110008423B (en) | Off-line processing method of dynamic webpage, output terminal and storage medium | |
US9009158B2 (en) | Computer capable of retrieving ambiguous information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220718 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |