WO2015058614A1 - Bookmark storage method and device, and method and device for determining bookmark to be browsed - Google Patents

Bookmark storage method and device, and method and device for determining bookmark to be browsed Download PDF

Info

Publication number
WO2015058614A1
WO2015058614A1 PCT/CN2014/088172 CN2014088172W WO2015058614A1 WO 2015058614 A1 WO2015058614 A1 WO 2015058614A1 CN 2014088172 W CN2014088172 W CN 2014088172W WO 2015058614 A1 WO2015058614 A1 WO 2015058614A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
bookmark
page
page snapshot
browser
Prior art date
Application number
PCT/CN2014/088172
Other languages
French (fr)
Chinese (zh)
Inventor
林晓丹
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2015058614A1 publication Critical patent/WO2015058614A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a bookmark storage method, a bookmark storage device, a method for determining a bookmark to be browsed, and a device for determining a bookmark to be browsed.
  • the browser saves the uniform resource locator (URL, Uniform Resource Locator) of the webpage, and the user can also edit the name of the saved and to be saved bookmark.
  • URL Uniform Resource Locator
  • the URLs of different bookmarks are not repeatable, and the names of different bookmarks can be the same, so there is a case where multiple bookmarks of the same name are stored in the browser.
  • the user is often confused about the use of the bookmark, because the user is confused about the difference between two bookmarks of the same name.
  • the user must click the bookmark to access the webpage before the bookmark can be determined.
  • the webpage pointed to because the webpage needs to consume the user's Internet traffic, if the user clicks on the bookmark to visit the webpage and finds that the webpage is not the webpage currently desired to be accessed, the user needs to reopen another bookmark to try to access, causing the user to access the webpage. Waste of traffic.
  • bookmarks of the same name are stored in the browser, pointing to webpage A and webpage B respectively.
  • the user currently wants to access webpage A, but the user only depends on the name and URL of the bookmark and cannot determine which one is pointing to webpage A.
  • the bookmark at this time, the user must click on a bookmark to try to access. If the user clicks on the bookmark pointing to the webpage B and finds that the visited webpage is the webpage B instead of the webpage A, the user needs to click the bookmark pointing to the webpage A again. To access page A, in this process, the user wastes the traffic generated when visiting page B.
  • the embodiment of the invention provides a bookmark storage method and a bookmark storage device, so as to avoid the problem that the bookmark of the same name is confused by the user.
  • An aspect of the present invention provides a bookmark storage method, which is run on a terminal device, and the method includes:
  • a page snapshot of the webpage is stored on the terminal device, wherein a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence.
  • bookmark storage device that runs on a terminal device, the bookmark storage device comprising:
  • An access unit for accessing a webpage via a browser wherein the webpage has been saved as a bookmark of the browser or a bookmark of the webpage to be added as a browser;
  • Generating a unit generating a page snapshot of the webpage to display page content of the webpage;
  • a storage unit configured to store, on the terminal device, the page snapshot generated by the generating unit, wherein a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence.
  • Another aspect of the present invention provides a method for determining a bookmark to be browsed, running on a terminal device, the method comprising:
  • an apparatus for determining a bookmark to be browsed, operating in a terminal device wherein the apparatus comprises:
  • An access unit for accessing a webpage via a browser wherein the webpage has been saved as a bookmark of the browser or a bookmark of the webpage to be added as a browser;
  • Generating a unit generating a page snapshot of the webpage to display page content of the webpage;
  • a storage unit configured to store, in the terminal device, the page snapshot generated by the generating unit, where a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence relationship;
  • a viewing unit for invoking a browser and viewing a bookmark of the browser
  • a snapshot determining unit configured to determine a page snapshot of the webpage corresponding to the bookmark to be browsed according to a one-to-one correspondence between a page snapshot of the webpage and a bookmark of the webpage;
  • a display unit configured to display, in the browser, a page snapshot of the webpage corresponding to the bookmark to be browsed.
  • the page snapshot of the webpage is generated and stored, and the page snapshot of the webpage is correspondingly stored. Therefore, the user can view the content of the webpage according to the stored page snapshot of the webpage and identify the webpage without accessing the webpage, so that the same name can be avoided without wasting the internet traffic.
  • the bookmarks cause confusion among users, which effectively saves users' online traffic.
  • FIG. 1 is a schematic flow chart of an embodiment of a bookmark storage method provided by the present invention.
  • FIG. 2 is a schematic flow chart of another embodiment of a bookmark storage method provided by the present invention.
  • FIG. 3 is a schematic flow chart of still another embodiment of a bookmark storage method provided by the present invention.
  • FIG. 4 is a schematic flow chart of still another embodiment of a bookmark storage method provided by the present invention.
  • FIG. 5 is a schematic flowchart diagram of an embodiment of a method for determining a bookmark to be browsed according to the present invention
  • FIG. 6 is a schematic structural diagram of an embodiment of a bookmark storage device provided by the present invention.
  • FIG. 7 is a schematic structural diagram of another embodiment of a bookmark storage device according to the present invention.
  • FIG. 8 is a schematic structural diagram of an embodiment of an apparatus for determining a bookmark to be browsed according to the present invention.
  • FIG. 9 is a schematic structural diagram of another embodiment of an apparatus for determining a bookmark to be browsed according to the present invention.
  • Embodiments of the present invention provide a bookmark storage method and a bookmark storage device.
  • bookmark storage method in the embodiment of the present invention runs on a terminal device, and the method may include:
  • the browser is an application on the user terminal device, and when the user accesses the webpage by using the browser, the user may add a webpage that is of interest to himself or helpful to the user, so as to facilitate the next access to the webpage.
  • Web page contains the URL of the webpage, so the user can directly click on the bookmark to access the corresponding webpage.
  • the bookmark storage device when the webpage pointed to by the bookmark is successfully accessed or when the currently accessed webpage is added as a bookmark of the browser, the bookmark storage device generates a page snapshot of the current webpage.
  • the page snapshot of the webpage is a screenshot of the webpage of the webpage
  • the bookmark storage device performs screenshot processing on the entire page or a part of the webpage of the webpage when the webpage pointed to by the bookmark is successfully accessed.
  • the page snapshot of the webpage described in the embodiment of the present invention is within the page that includes the webpage.
  • the data of the content when the bookmark storage device successfully accesses the webpage pointed to by the bookmark, intercepts the data of the entire page content or a part of the page content of the webpage, and uses the intercepted data as a page snapshot of the webpage.
  • the page snapshot of the webpage in the embodiment may also be in other forms, and only needs to be able to display the page content of the webpage.
  • the embodiment of the present invention does not limit the form of the specific page snapshot.
  • the bookmark storage device establishes a correspondence between a currently generated page snapshot of the webpage and a bookmark that points to the webpage, and stores a page snapshot of the webpage according to the corresponding relationship, so that the user can also store according to the view when the network is disconnected. Corresponds to a page snapshot of the web page pointed to by a bookmark.
  • the bookmark storage device stores the page snapshot corresponding to the web page in the browser.
  • the bookmark storage device may also store the page snapshot of the webpage in another location, such as a cloud server, which is not limited herein.
  • an option of "enable page snapshot/cancel page snapshot" is set in the browser, and when the user selects to enable page snapshot, the bookmark storage device performs the implementation of the present invention for each bookmark in the browser.
  • the bookmark storage method in the example.
  • the user can also set a page snapshot update period.
  • the bookmark storage device performs the bookmark storage method in the embodiment of the present invention for each bookmark in the browser according to the page snapshot update period set by the user.
  • the bookmark storage device does not execute the bookmark storage method in the embodiment of the present invention.
  • bookmarks can be added to the start page of the browser or the location of the home page to customize the links for quick access.
  • the bookmark added to the position of the start page or the home page of the browser is described as "quick link”. Therefore, the bookmark in the embodiment of the present invention includes a snapshot link in the browser in addition to the bookmark stored in the browser bookmark list.
  • the page snapshot of the webpage is generated, and the page corresponding to the bookmark is stored. Snapshot. Allowing users to access the page without The content of the webpage can be viewed according to the stored page snapshot of the webpage, and the webpage can be identified, thereby avoiding the problem that the bookmark of the same name is confused by the user without wasting the internet traffic, thereby effectively saving the user's Internet access. flow.
  • another bookmark storage method in the embodiment of the present invention includes:
  • the page snapshot of the webpage is a screenshot of the webpage of the webpage
  • the bookmark storage device performs a screenshot processing on the entire page or a part of the webpage of the webpage when the webpage pointed to by the bookmark is successfully accessed. Take the screenshot of the image as a snapshot of the page.
  • the page snapshot of the described web page is data containing the page content of the web page.
  • the bookmark storage device successfully accesses the webpage pointed to by the bookmark
  • the data of the entire page content or a part of the page content of the webpage is intercepted, and the intercepted data is taken as a page snapshot of the webpage.
  • the page snapshot of the webpage in the embodiment of the present invention may also be in other forms, and only needs to be able to display the page content of the webpage.
  • the embodiment of the present invention does not limit the form of the specific page snapshot.
  • the bookmark storage device establishes a correspondence between the currently generated page snapshot of the webpage and the bookmark of the webpage, and stores a page snapshot of the webpage according to the correspondence, so that the user can also view the stored correspondence when the network is disconnected.
  • a snapshot of the page of the page pointed to by a bookmark is established.
  • an option of "enable page snapshot/cancel page snapshot" is set in the browser, and when the user selects to enable page snapshot, the bookmark storage device performs the implementation of the present invention for each bookmark in the browser.
  • the bookmark storage method in the example the user can also set a page snapshot update period.
  • the bookmark storage device updates the cycle according to the page snapshot set by the user.
  • the bookmark storage method in the embodiment of the present invention is executed for each bookmark in the browser. When the user selects to cancel the page snapshot, the bookmark storage device does not execute the bookmark storage method in the embodiment of the present invention.
  • the bookmark storage device may store the page snapshot of the webpage, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage to other locations, such as the cloud. server. Therefore, when the user enables the webpage snapshot function on the terminal device, the page snapshot of the webpage stored on the cloud server, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage may be The relationship is synchronized to the terminal device.
  • the user can select whether to enable the page snapshot only under the Wi-Fi network by setting the browser, and if the user selects to enable the page snapshot only under the Wi-Fi network, the bookmark storage device executes As shown in steps 201-204 of FIG. 2, if the user selects to enable page snapshot under the non-Wi-Fi network, the bookmark storage device performs the operations of steps 101-103 in FIG.
  • bookmarks can be added to the start page of the browser or the location of the home page to customize the links for quick access.
  • the bookmark added to the position of the start page or the home page of the browser is described as "quick link”. Therefore, the bookmark in the embodiment of the present invention includes a snapshot link in the browser in addition to the bookmark stored in the browser bookmark list.
  • the embodiment of the present invention first checks the network used by the current browser, and performs the subsequent steps only when determining that the network used by the current browser is a Wi-Fi network, thereby avoiding accessing the webpage pointed by the bookmark and When the page snapshot of the web page is generated, the user's Internet traffic is wasted.
  • another bookmark storage method in the embodiment of the present invention includes:
  • the page snapshot of the webpage is a screenshot of the webpage of the webpage
  • the bookmark storage device performs a screenshot processing on the entire page or a part of the webpage of the webpage when the webpage pointed to by the bookmark is successfully accessed. Take the screenshot of the image as a snapshot of the page.
  • the page snapshot of the webpage described in the embodiment of the present invention is data that includes the page content of the webpage.
  • the bookmark storage device successfully accesses the webpage pointed to by the bookmark
  • the data of the entire page content or a part of the page content of the webpage is intercepted, and the intercepted data is taken as a page snapshot of the webpage.
  • the page snapshot of the webpage in the embodiment of the present invention may also be in other forms, and only needs to be able to display the page content of the webpage.
  • the embodiment of the present invention does not limit the form of the specific page snapshot.
  • the bookmark storage device establishes a correspondence between a currently generated page snapshot of the webpage and a bookmark that points to the webpage, and stores a page snapshot of the webpage corresponding to the bookmark, so that the user can also view the stored correspondence when the network is disconnected.
  • a snapshot of the page of the page pointed to by a bookmark is established.
  • the user selects whether to enable the page snapshot only under the Wi-Fi network by setting the browser, and in the step S302, the bookmark storage device determines that the page of the webpage is not stored in the terminal device.
  • the bookmark storage device determines that the page of the webpage is not stored in the terminal device.
  • the bookmark storage device may store the page snapshot of the webpage, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage to other locations, such as the cloud. server. Therefore, when the user enables the webpage snapshot function on the terminal device, the page snapshot of the webpage stored on the cloud server, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage may be The relationship is synchronized to the terminal device.
  • bookmarks can be added to the start page of the browser or the location of the home page to customize the links for quick access.
  • the bookmark added to the position of the start page or the home page of the browser is described as "quick link”. Therefore, in addition to the bookmark stored in the browser bookmark list, the bookmark in the embodiment of the present invention also includes the browser. Snapshot link.
  • the first browser checks whether the current browser stores the page snapshot of the webpage, and only determines the current When the browser does not store the page snapshot of the above webpage, the subsequent steps are performed, thereby avoiding repeated generation and saving of the page snapshot of the webpage pointed to by the bookmark.
  • another bookmark storage method in the embodiment of the present invention includes:
  • the bookmark storage device determines that the webpage of the webpage is stored in the browser, and further Determining whether the stored page snapshot of the webpage is consistent with the current page content of the webpage, and performing steps 403 and 404 only when the stored page snapshot of the webpage is inconsistent with the current webpage of the webpage.
  • the page snapshot of the webpage is a screenshot of the webpage of the webpage
  • the bookmark storage device performs a screenshot processing on the entire page or a part of the webpage of the webpage when the webpage pointed to by the bookmark is successfully accessed. Take the screenshot of the image as a snapshot of the page.
  • the page snapshot of the webpage described in the embodiment of the present invention is data that includes the page content of the webpage.
  • the bookmark storage device successfully accesses the webpage pointed to by the bookmark
  • the data of the entire page content or a part of the page content of the webpage is intercepted, and the intercepted data is taken as a page snapshot of the webpage.
  • the page snapshot of the webpage in the embodiment of the present invention may also be in other forms, and only needs to be able to display the page content of the webpage.
  • the embodiment of the present invention does not limit the form of the specific page snapshot.
  • 404 Store, on the terminal device, a page snapshot of the webpage, where a page snapshot of the webpage has a one-to-one correspondence with a bookmark that points to the webpage.
  • the bookmark storage device establishes a correspondence between a currently generated page snapshot of the webpage and a bookmark that points to the webpage, and stores a page snapshot of the webpage according to the corresponding relationship, so that the user can also store according to the view when the network is disconnected. Corresponds to a page snapshot of the web page pointed to by a bookmark.
  • the bookmark storage device determines that the page snapshot of the webpage is stored on the terminal device. And before the stored page snapshot of the webpage is inconsistent with the current webpage of the above webpage, first check the network used by the current browser, and if the user selects to enable the page snapshot only under the Wi-Fi network, it is determined only in the bookmark storage device. When the network used by the current browser is a Wi-Fi network, the operations of steps 402-404 are performed. If the user selects to enable the page snapshot under the non-Wi-Fi network, the bookmark storage device performs the operations of steps 402-404. Previously, there was no need to determine which network the current browser is using for Wi-Fi networks.
  • the bookmark storage device may store the page snapshot of the webpage, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage to other locations, such as the cloud. server. Therefore, when the user enables the webpage snapshot function on the terminal device, the page snapshot of the webpage stored on the cloud server, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage may be The relationship is synchronized to the terminal device.
  • bookmarks can be added to the start page of the browser or the location of the home page to customize the links for quick access.
  • the bookmark added to the position of the start page or the home page of the browser is described as "quick link”. Therefore, the bookmark in the embodiment of the present invention includes a snapshot link in the browser in addition to the bookmark stored in the browser bookmark list.
  • the first browser checks whether the current browser stores the page snapshot of the webpage, and determines the current browsing.
  • the page snapshot of the webpage is stored, it is further determined whether the stored page snapshot of the webpage is consistent with the current webpage of the webpage, and only after the stored page snapshot of the webpage is inconsistent with the current webpage of the webpage. The steps to avoid duplicate generation and saving of the same page snapshot.
  • a method for determining a bookmark to be browsed is further provided on a terminal device according to an embodiment of the present invention.
  • the method includes:
  • the method before generating a page snapshot of the webpage to display the page content of the webpage, the method further includes: determining that the network currently used by the browser is a Wi-Fi network.
  • the method for determining the bookmark to be browsed before the generating the page snapshot of the webpage, the method for determining the bookmark to be browsed further includes: determining that the page snapshot of the webpage is not stored on the terminal device.
  • the method for determining the bookmark to be browsed further includes: determining that the page snapshot of the webpage has been stored on the terminal device, and storing the page snapshot of the webpage and The page content of the current web page is inconsistent.
  • the step of storing the page snapshot of the webpage includes: establishing a correspondence between a page snapshot of the currently generated webpage and a bookmark pointing to the webpage; and storing a page snapshot of the webpage according to the correspondence.
  • viewing the bookmark of the browser includes setting a pointing device on the bookmark for a predetermined time to view the bookmark, wherein the predetermined time is greater than a threshold time.
  • the embodiment of the invention further provides a bookmark storage device running on the terminal device.
  • the bookmark storage device 600 includes:
  • the access unit 601 is configured to access a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or a bookmark of the webpage to be added as a browser.
  • the generating unit 602 is configured to generate a page snapshot of the webpage to display the page content of the webpage.
  • the storage unit 603 is configured to store, on the terminal device, a page of the webpage generated by the generating unit 602. A snapshot in which a page snapshot of the web page has a one-to-one correspondence with a bookmark pointing to the web page.
  • the bookmark storage device 700 further includes: a first determining unit 701, configured to determine the current browsing before the generating unit 602 generates a page snapshot of the webpage.
  • the network used by the device is a Wireless Fidelity (Wi-Fi) network.
  • the bookmark storage device 700 may further include: a second determining unit 702, configured to determine, before the generating unit 602 generates a page snapshot of the webpage, that the terminal device is not stored. A snapshot of the page above.
  • the bookmark storage device 700 may further include: a third determining unit 703, configured to determine, before the generating unit 602 generates a page snapshot of the webpage, to store on the terminal device. There is a page snapshot of the above webpage, and the stored page snapshot of the webpage is inconsistent with the page content of the current webpage.
  • the bookmark storage device in the embodiment of the present invention may be a terminal device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like, or the bookmark storage device may be independent of the terminal device and can pass the terminal device.
  • the device for communicating in a wired or wireless manner is not limited herein.
  • bookmark storage device in the embodiment of the present invention may be used as the bookmark storage device in the method embodiment shown in FIG. 1 to FIG. 4, and may be used to implement all the technical solutions in the foregoing method embodiments.
  • the function of the module may be specifically implemented according to the method in the foregoing method embodiment. For the specific implementation process, refer to the related description in the foregoing method embodiment, and details are not described herein again.
  • an apparatus 800 for determining a bookmark to be browsed is provided, which is run on a terminal device, according to an embodiment of the present invention.
  • the device 800 includes:
  • the access unit 801 is configured to access a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or a bookmark of the webpage to be added as a browser.
  • the generating unit 802 generates a page snapshot of the webpage to display the page content of the webpage.
  • the storage unit 803 is configured to store, in the terminal device, a page snapshot generated by the generating unit, where there is a one-to-one correspondence between the page snapshot of the web page and the bookmark pointing to the web page.
  • the viewing unit 804 is used to invoke the browser and view the bookmark of the browser.
  • a snapshot determining unit 805 configured to: according to a page snapshot of the webpage and a bookmark pointing to the webpage A one-to-one correspondence, determining a page snapshot of a webpage corresponding to the bookmark to be browsed.
  • the display unit 806 is configured to display a page snapshot of the webpage corresponding to the bookmark to be browsed in the browser.
  • the apparatus 800 for determining a bookmark to be browsed may further include: a first determining unit 901, configured to determine, before the generating unit 802 generates a page snapshot of the webpage.
  • the network used by the current browser is a Wi-Fi network.
  • the device 800 for determining the bookmark to be browsed may further include: a second determining unit 902, configured to determine, before the generating unit 802 generates the page snapshot, a page snapshot of the webpage not stored on the terminal device .
  • the device 800 for determining a bookmark to be browsed may further include: a third determining unit 903, configured to determine, before the generating unit 802 generates a page snapshot of the webpage, that the webpage is already stored on the terminal device A page snapshot, and the stored page snapshot of the web page is inconsistent with the page content of the current web page.
  • the storage unit 803 is further configured to: establish a correspondence between a page snapshot of the currently generated webpage and a bookmark pointing to the webpage, and according to the correspondence The relationship stores a page snapshot of the web page.
  • the viewing unit 804 is further configured to: set a pointing device on the bookmark for a predetermined time to view the bookmark, wherein the predetermined time is greater than a threshold time.
  • the bookmark storage device of the embodiment of the present invention successfully accesses the webpage pointed by the bookmark in the browser or when the currently accessed webpage is added as a bookmark
  • the page snapshot of the webpage is generated and stored, and the corresponding storage is performed.
  • the page snapshot of the webpage allows the user to view the content of the webpage and identify the webpage according to the stored page snapshot of the webpage without accessing the webpage, so that the webpage traffic can be wasted without wasting traffic. Avoiding the problem of user confusion caused by bookmarks with the same name and different addresses, effectively saving users' online traffic.
  • the storage medium may include, for example, a read only memory, a random access memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a bookmark storage method and device, and a method and device for determining a bookmark to be browsed. The bookmark storage method is operated on a terminal device and comprises: accessing a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser, or the webpage is to be added as a bookmark of the browser; generating a page snapshot of the webpage, so as to display a page content of the webpage; and storing the page snapshot of the webpage in a terminal device, wherein the page snapshot of the webpage and the bookmark directing the webpage have a one-to-one correlation. The above-mentioned method and device can effectively save user's network traffic.

Description

一种书签存储方法及装置、确定待浏览书签的方法及装置Bookmark storage method and device, method and device for determining bookmark to be browsed
本申请要求于2013年10月24日提交中国专利局、申请号为201310507866.7、发明名称为“一种书签存储方法及书签存储装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201310507866.7, entitled "A Bookmark Storage Method and Bookmark Storage Device", filed on October 24, 2013, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明涉及互联网技术领域,尤其涉及一种书签存储方法、书签存储装置、确定待浏览书签的方法、以及确定待浏览书签的装置。The present invention relates to the field of Internet technologies, and in particular, to a bookmark storage method, a bookmark storage device, a method for determining a bookmark to be browsed, and a device for determining a bookmark to be browsed.
背景技术Background technique
用户在使用浏览器访问网页时,会将自己感兴趣或者对自己有帮助的网页添加为书签,以方便下次继续访问该网页。When a user visits a webpage using a browser, he or she bookmarks a webpage that he or she is interested in or that helps him to continue to access the webpage next time.
用户在将某个网页添加为书签时,浏览器保存该网页的统一资源定位符(URL,Uniform Resource Locator),同时,用户还可以对已保存和待保存的书签的名称进行编辑。When a user adds a webpage as a bookmark, the browser saves the uniform resource locator (URL, Uniform Resource Locator) of the webpage, and the user can also edit the name of the saved and to be saved bookmark.
通常,不同的书签的URL不可重复,而不同的书签的名称则可以相同,因此就会存在如下一种情况:浏览器中存储了多个相同名称的书签。在这种情况下,往往会造成用户对书签的使用上的迷糊,因为用户混淆不清两个相同名称的书签有何区别,此时用户必须通过点击书签访问网页后,才能够确定该书签所指向的网页,由于访问网页需要消耗用户的上网流量,因此,如果用户在点击书签访问到网页后发现该网页不是当前想要访问的网页,则需要重新打开另外一个书签尝试访问,造成了用户上网流量的浪费。举例说明,假设浏览器中存储了相同名称的两个书签,分别指向网页A和网页B,用户当前想要访问网页A,但是用户仅依靠书签的名称和URL并不能确定哪个才是指向网页A的书签,则此时用户必须点击某个书签尝试访问,若用户点击了指向网页B的书签进行访问后,发现访问的网页为网页B而非网页A,则用户需要重新点击指向网页A的书签来访问网页A,在这个过程中,用户浪费了访问网页B时产生的流量。 Usually, the URLs of different bookmarks are not repeatable, and the names of different bookmarks can be the same, so there is a case where multiple bookmarks of the same name are stored in the browser. In this case, the user is often confused about the use of the bookmark, because the user is confused about the difference between two bookmarks of the same name. At this time, the user must click the bookmark to access the webpage before the bookmark can be determined. The webpage pointed to, because the webpage needs to consume the user's Internet traffic, if the user clicks on the bookmark to visit the webpage and finds that the webpage is not the webpage currently desired to be accessed, the user needs to reopen another bookmark to try to access, causing the user to access the webpage. Waste of traffic. For example, suppose that two bookmarks of the same name are stored in the browser, pointing to webpage A and webpage B respectively. The user currently wants to access webpage A, but the user only depends on the name and URL of the bookmark and cannot determine which one is pointing to webpage A. The bookmark, at this time, the user must click on a bookmark to try to access. If the user clicks on the bookmark pointing to the webpage B and finds that the visited webpage is the webpage B instead of the webpage A, the user needs to click the bookmark pointing to the webpage A again. To access page A, in this process, the user wastes the traffic generated when visiting page B.
发明内容Summary of the invention
本发明实施例提供了一种书签存储方法及书签存储装置,以避免同名异址的书签造成用户混淆的问题。The embodiment of the invention provides a bookmark storage method and a bookmark storage device, so as to avoid the problem that the bookmark of the same name is confused by the user.
本发明一方面,提供了一种书签存储方法,运行在终端设备上,该方法包括:An aspect of the present invention provides a bookmark storage method, which is run on a terminal device, and the method includes:
经由浏览器访问网页,其中,所述网页已被保存为所述浏览器的书签或所述网页待添加为所述浏览器的书签;Accessing a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or the webpage to be added as a bookmark of the browser;
生成所述网页的页面快照,以展现所述网页的页面内容;以及Generating a page snapshot of the web page to display page content of the web page;
在所述终端设备上存储所述网页的页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系。A page snapshot of the webpage is stored on the terminal device, wherein a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence.
本发明另一方面,提供了一种书签存储装置,运行在终端设备上,该书签存储装置包括:Another aspect of the present invention provides a bookmark storage device that runs on a terminal device, the bookmark storage device comprising:
访问单元,用于经由浏览器访问网页,其中,该网页已被保存为浏览器的书签或该网页待添加为浏览器的书签;An access unit for accessing a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or a bookmark of the webpage to be added as a browser;
生成单元,生成所述网页的页面快照,以展现所述网页的页面内容;以及Generating a unit, generating a page snapshot of the webpage to display page content of the webpage;
存储单元,用于在所述终端设备上存储所述生成单元生成的所述页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应的关系。a storage unit, configured to store, on the terminal device, the page snapshot generated by the generating unit, wherein a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence.
本发明的另一方面,提供了一种用于确定待浏览书签的方法,运行在终端设备上,所述方法包括:Another aspect of the present invention provides a method for determining a bookmark to be browsed, running on a terminal device, the method comprising:
经由浏览器访问网页,其中,所述网页已被保存为所述浏览器的书签或所述网页待添加为所述浏览器的书签;Accessing a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or the webpage to be added as a bookmark of the browser;
生成所述网页的页面快照,以展现所述网页的页面内容;Generating a page snapshot of the webpage to display page content of the webpage;
在所述终端设备上存储所述网页的页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系;Storing a page snapshot of the webpage on the terminal device, wherein a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence;
调用所述浏览器,并查看所述待浏览书签;Calling the browser and viewing the bookmark to be browsed;
根据网页的页面快照与指向所述网页的书签之间的一一对应关系,确定所述待浏览书签对应的所述网页的页面快照;以及 Determining, according to a one-to-one correspondence between a page snapshot of the webpage and a bookmark pointing to the webpage, determining a page snapshot of the webpage corresponding to the bookmark to be browsed;
在所述浏览器中显示所述待浏览书签对应的所述网页的页面快照。Displaying a page snapshot of the webpage corresponding to the bookmark to be browsed in the browser.
根据本发明的另一方面,提供了一种用于确定待浏览书签的装置,运行在终端设备中,其特征在于,所述装置包括:According to another aspect of the present invention, there is provided an apparatus for determining a bookmark to be browsed, operating in a terminal device, wherein the apparatus comprises:
访问单元,用于经由浏览器访问网页,其中,该网页已被保存为浏览器的书签或该网页待添加为浏览器的书签;An access unit for accessing a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or a bookmark of the webpage to be added as a browser;
生成单元,生成所述网页的页面快照,以展现所述网页的页面内容;Generating a unit, generating a page snapshot of the webpage to display page content of the webpage;
存储单元,用于在所述终端设备中存储所述生成单元生成的所述页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系;a storage unit, configured to store, in the terminal device, the page snapshot generated by the generating unit, where a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence relationship;
查看单元,用于调用浏览器,并查看所述浏览器的书签;a viewing unit for invoking a browser and viewing a bookmark of the browser;
快照确定单元,用于根据网页的页面快照与指向所述网页的书签之间的一一对应关系,确定所述待浏览书签对应的所述网页的页面快照;以及a snapshot determining unit, configured to determine a page snapshot of the webpage corresponding to the bookmark to be browsed according to a one-to-one correspondence between a page snapshot of the webpage and a bookmark of the webpage; and
显示单元,用于在所述浏览器中显示所述待浏览书签对应的所述网页的页面快照。a display unit, configured to display, in the browser, a page snapshot of the webpage corresponding to the bookmark to be browsed.
由上可见,本发明实施例在成功访问浏览器中的书签所指向的网页时或者在将当前访问的网页添加为书签时,生成并存储该网页的页面快照,同时对应存储该网页的页面快照,使得用户可以在不访问该网页的情况下,便可根据存储的该网页的页面快照查看到该网页的内容并识别出该网页,从而能够在不浪费上网流量的情况下,避免同名异址的书签造成用户混淆的问题,有效节省了用户的上网流量。It can be seen that, when the webpage pointed to by the bookmark in the browser is successfully accessed or when the currently accessed webpage is added as a bookmark, the page snapshot of the webpage is generated and stored, and the page snapshot of the webpage is correspondingly stored. Therefore, the user can view the content of the webpage according to the stored page snapshot of the webpage and identify the webpage without accessing the webpage, so that the same name can be avoided without wasting the internet traffic. The bookmarks cause confusion among users, which effectively saves users' online traffic.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明提供的书签存储方法一个实施例流程示意图;1 is a schematic flow chart of an embodiment of a bookmark storage method provided by the present invention;
图2为本发明提供的书签存储方法另一个实施例流程示意图;2 is a schematic flow chart of another embodiment of a bookmark storage method provided by the present invention;
图3为本发明提供的书签存储方法再一个实施例流程示意图;3 is a schematic flow chart of still another embodiment of a bookmark storage method provided by the present invention;
图4为本发明提供的书签存储方法再一个实施例流程示意图; 4 is a schematic flow chart of still another embodiment of a bookmark storage method provided by the present invention;
图5为本发明提供的用于确定待浏览书签的方法的实施例的流程示意图;FIG. 5 is a schematic flowchart diagram of an embodiment of a method for determining a bookmark to be browsed according to the present invention;
图6为本发明提供的书签存储装置一个实施例结构示意图;6 is a schematic structural diagram of an embodiment of a bookmark storage device provided by the present invention;
图7为本发明提供的书签存储装置另一个实施例结构示意图;FIG. 7 is a schematic structural diagram of another embodiment of a bookmark storage device according to the present invention; FIG.
图8为本发明提供的用于确定待浏览书签的装置的实施例的结构示意图;以及FIG. 8 is a schematic structural diagram of an embodiment of an apparatus for determining a bookmark to be browsed according to the present invention;
图9为本发明提供的用于确定待浏览书签的装置的另一实施例的结构示意图。FIG. 9 is a schematic structural diagram of another embodiment of an apparatus for determining a bookmark to be browsed according to the present invention.
具体实施方式detailed description
本发明实施例提供了一种书签存储方法及书签存储装置。Embodiments of the present invention provide a bookmark storage method and a bookmark storage device.
为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. The embodiments are merely a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
下面对本发明实施例中的一种书签存储方法进行描述,请参阅图1,本发明实施例中的书签存储方法运行在终端设备上,该方法可以包括:A bookmark storage method in the embodiment of the present invention is described below. Referring to FIG. 1, the bookmark storage method in the embodiment of the present invention runs on a terminal device, and the method may include:
101、经由浏览器访问网页,其中,该网页已被保存为浏览器的书签或该网页待添加为浏览器的书签。101. Access a webpage via a browser, wherein the webpage has been saved as a bookmark of a browser or a bookmark of the webpage to be added as a browser.
在本发明实施例中,浏览器为用户终端设备上的应用程序,用户在使用浏览器访问网页时,可以将自己感兴趣或者对自己有帮助的网页添加为书签,以方便下次继续访问该网页。其中,所添加的书签包含了网页的URL,因此,用户可以直接点击书签访问相应的网页。In the embodiment of the present invention, the browser is an application on the user terminal device, and when the user accesses the webpage by using the browser, the user may add a webpage that is of interest to himself or helpful to the user, so as to facilitate the next access to the webpage. Web page. Among them, the added bookmark contains the URL of the webpage, so the user can directly click on the bookmark to access the corresponding webpage.
102、生成该网页的页面快照,以展现该网页的页面内容。102. Generate a page snapshot of the webpage to display page content of the webpage.
在本发明实施例中,当成功访问书签所指向的网页或者在将当前访问的网页添加为浏览器的书签时,书签存储装置生成当前网页的页面快照。In the embodiment of the present invention, when the webpage pointed to by the bookmark is successfully accessed or when the currently accessed webpage is added as a bookmark of the browser, the bookmark storage device generates a page snapshot of the current webpage.
在本发明的一个实施例中,所描述的网页的页面快照为该网页的页面截图,则书签存储装置在成功访问上述书签所指向的网页时,对该网页的整个页面或者一部分页面进行截图处理,将截图得到的图片作为该网页的页面快照。或者,本发明实施例中所描述的网页的页面快照为包含该网页的页面内 容的数据,则书签存储装置在成功访问上述书签所指向的网页时,截取包含该网页的整个页面内容或者一部分页面内容的数据,将截取到的数据作为该网页的页面快照,当然,本发明实施例中的网页的页面快照也可以为其它形式,只需要能够展现网页的页面内容即可,本发明实施例不对具体地页面快照的形式进行限定。In an embodiment of the present invention, the page snapshot of the webpage is a screenshot of the webpage of the webpage, and the bookmark storage device performs screenshot processing on the entire page or a part of the webpage of the webpage when the webpage pointed to by the bookmark is successfully accessed. , take the screenshot of the image as a page snapshot of the page. Alternatively, the page snapshot of the webpage described in the embodiment of the present invention is within the page that includes the webpage. The data of the content, when the bookmark storage device successfully accesses the webpage pointed to by the bookmark, intercepts the data of the entire page content or a part of the page content of the webpage, and uses the intercepted data as a page snapshot of the webpage. Of course, the present invention The page snapshot of the webpage in the embodiment may also be in other forms, and only needs to be able to display the page content of the webpage. The embodiment of the present invention does not limit the form of the specific page snapshot.
103、在终端设备上存储该网页的页面快照,其中,网页的页面快照与指向该网页的书签之间存在一一对应的关系。103. Store a page snapshot of the webpage on the terminal device, where there is a one-to-one correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage.
书签存储装置建立当前生成的上述网页的页面快照与指向上述网页的书签之间的对应关系,并根据所述对应关系存储上述网页的页面快照,使得用户在网络断开时也能够根据查看存储的对应于某个书签所指向的网页的页面快照。The bookmark storage device establishes a correspondence between a currently generated page snapshot of the webpage and a bookmark that points to the webpage, and stores a page snapshot of the webpage according to the corresponding relationship, so that the user can also store according to the view when the network is disconnected. Corresponds to a page snapshot of the web page pointed to by a bookmark.
在本发明的实施例中,书签存储装置将上述网页的页面快照对应存储在上述浏览器中。当然,书签存储装置也可以将上述网页的页面快照对应存储在其它位置,如云端服务器,此处不作限定。In an embodiment of the present invention, the bookmark storage device stores the page snapshot corresponding to the web page in the browser. Of course, the bookmark storage device may also store the page snapshot of the webpage in another location, such as a cloud server, which is not limited herein.
在本发明的实施例中,在浏览器中设置“启用页面快照/取消页面快照”的选项,当用户选择了启用页面快照时,书签存储装置针对浏览器中的每个书签,执行本发明实施例中的书签存储方法。在一个实施例中,用户还可以设置页面快照更新周期。书签存储装置根据用户设置的页面快照更新周期,针对浏览器中的每个书签,执行本发明实施例中的书签存储方法。当用户选择了取消页面快照时,则书签存储装置不执行本发明实施例中的书签存储方法。In an embodiment of the present invention, an option of "enable page snapshot/cancel page snapshot" is set in the browser, and when the user selects to enable page snapshot, the bookmark storage device performs the implementation of the present invention for each bookmark in the browser. The bookmark storage method in the example. In one embodiment, the user can also set a page snapshot update period. The bookmark storage device performs the bookmark storage method in the embodiment of the present invention for each bookmark in the browser according to the page snapshot update period set by the user. When the user selects to cancel the page snapshot, the bookmark storage device does not execute the bookmark storage method in the embodiment of the present invention.
需要说明的,在某些浏览器中,用户可以将书签添加到浏览器的起始页或主页的位置,以自定义快速访问的链接。本发明实施例中将上述被添加到浏览器的起始页或主页的位置的书签描述为“快速链接”。因此,本发明实施例中的书签除了包含浏览器书签列表中存储的书签以外,还包含浏览器中的快照链接。It should be noted that in some browsers, users can add bookmarks to the start page of the browser or the location of the home page to customize the links for quick access. In the embodiment of the present invention, the bookmark added to the position of the start page or the home page of the browser is described as "quick link". Therefore, the bookmark in the embodiment of the present invention includes a snapshot link in the browser in addition to the bookmark stored in the browser bookmark list.
由上可见,本发明实施例在成功访问浏览器中的书签所指向的网页时或者在将当前访问的网页添加为书签时,生成该网页的页面快照,同时对应于该书签存储该网页的页面快照。使得用户可以在不访问该网页的情况下,便 可根据存储的该网页的页面快照查看到该网页的内容并识别出该网页,从而能够在不浪费上网流量的情况下,避免同名异址的书签造成用户混淆的问题,有效节省了用户的上网流量。It can be seen that, when the webpage pointed to by the bookmark in the browser is successfully accessed or when the currently accessed webpage is added as a bookmark, the page snapshot of the webpage is generated, and the page corresponding to the bookmark is stored. Snapshot. Allowing users to access the page without The content of the webpage can be viewed according to the stored page snapshot of the webpage, and the webpage can be identified, thereby avoiding the problem that the bookmark of the same name is confused by the user without wasting the internet traffic, thereby effectively saving the user's Internet access. flow.
为进一步节省用户的上网流量,如图2所示,本发明实施例中的另一种书签存储方法,包括:To further save the user's Internet traffic, as shown in FIG. 2, another bookmark storage method in the embodiment of the present invention includes:
201、确定当前浏览器使用的网络为无线保真(Wireless Fidelity,Wi-Fi)网络。201. Determine that the network used by the current browser is a Wireless Fidelity (Wi-Fi) network.
202、经由浏览器访问网页,其中,该网页已被保存为浏览器的书签或该网页待添加为浏览器的书签。202. Access a webpage via a browser, wherein the webpage has been saved as a bookmark of a browser or a bookmark of the webpage to be added as a browser.
203、生成该网页的页面快照,以展现该网页的页面内容。203. Generate a page snapshot of the webpage to display page content of the webpage.
在本发明的实施例中,所描述的网页的页面快照为该网页的页面截图,则书签存储装置在成功访问上述书签所指向的网页时,对该网页的整个页面或者一部分页面进行截图处理,将截图得到的图片作为该网页的页面快照。本发明的实施例中,所描述的网页的页面快照为包含该网页的页面内容的数据。在这种情况下,书签存储装置在成功访问上述书签所指向的网页时,截取包含该网页的整个页面内容或者一部分页面内容的数据,将截取到的数据作为该网页的页面快照,当然,本发明实施例中的网页的页面快照也可以为其它形式,只需要能够展现网页的页面内容即可,本发明实施例不对具体地页面快照的形式进行限定。In the embodiment of the present invention, the page snapshot of the webpage is a screenshot of the webpage of the webpage, and the bookmark storage device performs a screenshot processing on the entire page or a part of the webpage of the webpage when the webpage pointed to by the bookmark is successfully accessed. Take the screenshot of the image as a snapshot of the page. In an embodiment of the invention, the page snapshot of the described web page is data containing the page content of the web page. In this case, when the bookmark storage device successfully accesses the webpage pointed to by the bookmark, the data of the entire page content or a part of the page content of the webpage is intercepted, and the intercepted data is taken as a page snapshot of the webpage. The page snapshot of the webpage in the embodiment of the present invention may also be in other forms, and only needs to be able to display the page content of the webpage. The embodiment of the present invention does not limit the form of the specific page snapshot.
204、在终端设备上存储该网页的页面快照,其中,该网页的页面快照与指向该网页的书签之间存在一一对应的关系。204. Store a page snapshot of the webpage on the terminal device, where there is a one-to-one correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage.
书签存储装置建立当前生成的上述网页的页面快照与指向上述网页的书签之间的对应关系,并根据该对应关系存储上述网页的页面快照,使得用户在网络断开时也能够根据查看存储的对应于某个书签所指向的网页的页面快照。The bookmark storage device establishes a correspondence between the currently generated page snapshot of the webpage and the bookmark of the webpage, and stores a page snapshot of the webpage according to the correspondence, so that the user can also view the stored correspondence when the network is disconnected. A snapshot of the page of the page pointed to by a bookmark.
在本发明的实施例中,在浏览器中设置“启用页面快照/取消页面快照”的选项,当用户选择了启用页面快照时,书签存储装置针对浏览器中的每个书签,执行本发明实施例中的书签存储方法。在一个实施例中,用户还可以设置页面快照更新周期。书签存储装置根据用户设置的页面快照更新周期, 针对浏览器中的每个书签,执行本发明实施例中的书签存储方法。当用户选择了取消页面快照时,则书签存储装置不执行本发明实施例中的书签存储方法。In an embodiment of the present invention, an option of "enable page snapshot/cancel page snapshot" is set in the browser, and when the user selects to enable page snapshot, the bookmark storage device performs the implementation of the present invention for each bookmark in the browser. The bookmark storage method in the example. In one embodiment, the user can also set a page snapshot update period. The bookmark storage device updates the cycle according to the page snapshot set by the user. The bookmark storage method in the embodiment of the present invention is executed for each bookmark in the browser. When the user selects to cancel the page snapshot, the bookmark storage device does not execute the bookmark storage method in the embodiment of the present invention.
在本发明的实施例中,书签存储装置可以将上述网页的页面快照,浏览器的书签,以及所述网页的页面快照与指向所述网页的书签之间的对应关系存储到其它位置,如云端服务器。从而,当用户在终端设备上启用网页快照功能时,可以将存储在云端服务器上的网页的页面快照,浏览器的书签,以及所述网页的页面快照与指向所述网页的书签之间的对应关系同步到终端设备上。In an embodiment of the present invention, the bookmark storage device may store the page snapshot of the webpage, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage to other locations, such as the cloud. server. Therefore, when the user enables the webpage snapshot function on the terminal device, the page snapshot of the webpage stored on the cloud server, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage may be The relationship is synchronized to the terminal device.
在本发明的实施例中,用户可以通过对浏览器进行设置,来选择是否仅在Wi-Fi网络下启用页面快照,若用户选择仅在Wi-Fi网络下启用页面快照,则书签存储装置执行如图2中步骤201~204的操作,若用户选择可在非Wi-Fi网络下启用页面快照,则书签存储装置执行如图1中步骤101~103的操作。In an embodiment of the present invention, the user can select whether to enable the page snapshot only under the Wi-Fi network by setting the browser, and if the user selects to enable the page snapshot only under the Wi-Fi network, the bookmark storage device executes As shown in steps 201-204 of FIG. 2, if the user selects to enable page snapshot under the non-Wi-Fi network, the bookmark storage device performs the operations of steps 101-103 in FIG.
需要说明的,在某些浏览器中,用户可以将书签添加到浏览器的起始页或主页的位置,以自定义快速访问的链接。本发明实施例中将上述被添加到浏览器的起始页或主页的位置的书签描述为“快速链接”。因此,本发明实施例中的书签除了包含浏览器书签列表中存储的书签以外,还包含浏览器中的快照链接。It should be noted that in some browsers, users can add bookmarks to the start page of the browser or the location of the home page to customize the links for quick access. In the embodiment of the present invention, the bookmark added to the position of the start page or the home page of the browser is described as "quick link". Therefore, the bookmark in the embodiment of the present invention includes a snapshot link in the browser in addition to the bookmark stored in the browser bookmark list.
由上可见,本发明实施例首先检查当前浏览器所使用的网络,仅在确定当前浏览器使用的网络为Wi-Fi网络时,才执行后续的步骤,从而避免在访问书签所指向的网页和生成该网页的页面快照时,对用户的上网流量的浪费。It can be seen that the embodiment of the present invention first checks the network used by the current browser, and performs the subsequent steps only when determining that the network used by the current browser is a Wi-Fi network, thereby avoiding accessing the webpage pointed by the bookmark and When the page snapshot of the web page is generated, the user's Internet traffic is wasted.
如图3所示,本发明实施例中的另一种书签存储方法,包括:As shown in FIG. 3, another bookmark storage method in the embodiment of the present invention includes:
301、经由浏览器访问网页,其中,该网页已被保存为浏览器的书签或该网页待添加为浏览器的书签。301. Access a webpage via a browser, wherein the webpage has been saved as a bookmark of a browser or a bookmark of the webpage to be added as a browser.
302、确定在终端设备上未存储上述网页的页面快照。302. Determine that a page snapshot of the webpage is not stored on the terminal device.
303、生成该网页的页面快照,以展现上述网页的页面内容。303. Generate a page snapshot of the webpage to display page content of the webpage.
在本发明的实施例中,所描述的网页的页面快照为该网页的页面截图,则书签存储装置在成功访问上述书签所指向的网页时,对该网页的整个页面或者一部分页面进行截图处理,将截图得到的图片作为该网页的页面快照。 可选地,本发明实施例中所描述的网页的页面快照为包含该网页的页面内容的数据。在这种情况下,书签存储装置在成功访问上述书签所指向的网页时,截取包含该网页的整个页面内容或者一部分页面内容的数据,将截取到的数据作为该网页的页面快照,当然,本发明实施例中的网页的页面快照也可以为其它形式,只需要能够展现网页的页面内容即可,本发明实施例不对具体地页面快照的形式进行限定。In the embodiment of the present invention, the page snapshot of the webpage is a screenshot of the webpage of the webpage, and the bookmark storage device performs a screenshot processing on the entire page or a part of the webpage of the webpage when the webpage pointed to by the bookmark is successfully accessed. Take the screenshot of the image as a snapshot of the page. Optionally, the page snapshot of the webpage described in the embodiment of the present invention is data that includes the page content of the webpage. In this case, when the bookmark storage device successfully accesses the webpage pointed to by the bookmark, the data of the entire page content or a part of the page content of the webpage is intercepted, and the intercepted data is taken as a page snapshot of the webpage. The page snapshot of the webpage in the embodiment of the present invention may also be in other forms, and only needs to be able to display the page content of the webpage. The embodiment of the present invention does not limit the form of the specific page snapshot.
304、在终端设备上存储上述网页的页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系。304. Store a page snapshot of the webpage on the terminal device, where there is a one-to-one correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage.
书签存储装置建立当前生成的上述网页的页面快照与指向上述网页的书签之间的对应关系,并对应于该书签存储上述网页的页面快照,使得用户在网络断开时也能够根据查看存储的对应于某个书签所指向的网页的页面快照。The bookmark storage device establishes a correspondence between a currently generated page snapshot of the webpage and a bookmark that points to the webpage, and stores a page snapshot of the webpage corresponding to the bookmark, so that the user can also view the stored correspondence when the network is disconnected. A snapshot of the page of the page pointed to by a bookmark.
在本发明的实施例中,用户通过对浏览器进行设置来选择是否仅在Wi-Fi网络下启用页面快照,在书签存储装置在执行步骤302中“确定在终端设备中未存储上述网页的页面快照”之前,首先检查当前浏览器所使用的网络,若用户选择仅在Wi-Fi网络下启用页面快照,则只在书签存储装置确定当前浏览器所使用的网络为Wi-Fi网络时,才执行步骤302~304的操作,若用户选择可在非Wi-Fi网络下启用页面快照,则书签存储装置在执行步骤302~304的操作之前,不需要确定当前浏览器所使用的网络为Wi-Fi网络。In an embodiment of the present invention, the user selects whether to enable the page snapshot only under the Wi-Fi network by setting the browser, and in the step S302, the bookmark storage device determines that the page of the webpage is not stored in the terminal device. Before the snapshot, first check the network used by the current browser. If the user chooses to enable page snapshot only under the Wi-Fi network, only when the bookmark storage device determines that the network used by the current browser is a Wi-Fi network. Performing the operations of steps 302-304, if the user selects to enable the page snapshot under the non-Wi-Fi network, the bookmark storage device does not need to determine that the network used by the current browser is Wi- before performing the operations of steps 302-304. Fi network.
在本发明的实施例中,书签存储装置可以将上述网页的页面快照,浏览器的书签,以及所述网页的页面快照与指向所述网页的书签之间的对应关系存储到其它位置,如云端服务器。从而,当用户在终端设备上启用网页快照功能时,可以将存储在云端服务器上的网页的页面快照,浏览器的书签,以及所述网页的页面快照与指向所述网页的书签之间的对应关系同步到终端设备上。In an embodiment of the present invention, the bookmark storage device may store the page snapshot of the webpage, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage to other locations, such as the cloud. server. Therefore, when the user enables the webpage snapshot function on the terminal device, the page snapshot of the webpage stored on the cloud server, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage may be The relationship is synchronized to the terminal device.
需要说明的,在某些浏览器中,用户可以将书签被添加到浏览器的起始页或主页的位置,以自定义快速访问的链接。本发明实施例中将上述被添加到浏览器的起始页或主页的位置的书签描述为“快速链接”。因此,本发明实施例中的书签除了包含浏览器书签列表中存储的书签以外,还包含浏览器中 的快照链接。It should be noted that in some browsers, users can add bookmarks to the start page of the browser or the location of the home page to customize the links for quick access. In the embodiment of the present invention, the bookmark added to the position of the start page or the home page of the browser is described as "quick link". Therefore, in addition to the bookmark stored in the browser bookmark list, the bookmark in the embodiment of the present invention also includes the browser. Snapshot link.
由上可见,本发明实施例当成功访问浏览器中的书签所指向的网页时或者在将当前访问的网页添加为书签时,首先检查当前浏览器是否存储上述网页的页面快照,仅在确定当前浏览器未存储上述网页的页面快照时,才执行后续的步骤,从而避免了对书签所指向的网页的页面快照地重复生成和保存。As can be seen from the above, when the webpage pointed to by the bookmark in the browser is successfully accessed or the currently accessed webpage is added as a bookmark, the first browser checks whether the current browser stores the page snapshot of the webpage, and only determines the current When the browser does not store the page snapshot of the above webpage, the subsequent steps are performed, thereby avoiding repeated generation and saving of the page snapshot of the webpage pointed to by the bookmark.
如图4所示,本发明实施例中的另一种书签存储方法,包括:As shown in FIG. 4, another bookmark storage method in the embodiment of the present invention includes:
401、经由浏览器访问网页,其中,该网页已被保存为浏览器的书签或该网页待添加为浏览器的书签。401. Access a webpage via a browser, where the webpage has been saved as a bookmark of a browser or a bookmark of the webpage to be added as a browser.
402、确定终端设备中存储有上述网页的页面快照,且存储的上述网页的页面快照与当前上述网页的页面内容不一致。402. Determine, in the terminal device, that the page snapshot of the webpage is stored, and the stored page snapshot of the webpage is inconsistent with the page content of the current webpage.
由于某些网页的页面会出现定期更新或者不定期更新的情况时,因此,若一个网页的页面出现更新,则浏览器之前存储的网页的页面快照将与更新后的网页的页面内容不一致。本发明实施例中,当成功访问浏览器的书签所指向的网页或者在将当前访问的网页添加为浏览器的书签时,书签存储装置确定上述浏览器中存储有上述网页的页面快照,并且进一步确定存储的上述网页的页面快照与当前上述网页的页面内容是否一致,仅在存储的上述网页的页面快照与当前上述网页的页面不一致时,才执行步骤403和404。Since the pages of some webpages are periodically updated or updated irregularly, if a page of a webpage is updated, the page snapshot of the webpage stored before the browser will be inconsistent with the page content of the updated webpage. In the embodiment of the present invention, when the webpage pointed to by the bookmark of the browser is successfully accessed or the currently accessed webpage is added as a bookmark of the browser, the bookmark storage device determines that the webpage of the webpage is stored in the browser, and further Determining whether the stored page snapshot of the webpage is consistent with the current page content of the webpage, and performing steps 403 and 404 only when the stored page snapshot of the webpage is inconsistent with the current webpage of the webpage.
403、生成网页的页面快照,以展现上述网页的页面内容。403. Generate a page snapshot of the webpage to display the page content of the webpage.
在本发明的实施例中,所描述的网页的页面快照为该网页的页面截图,则书签存储装置在成功访问上述书签所指向的网页时,对该网页的整个页面或者一部分页面进行截图处理,将截图得到的图片作为该网页的页面快照。可选地,本发明实施例中所描述的网页的页面快照为包含该网页的页面内容的数据。在这种情况下,书签存储装置在成功访问上述书签所指向的网页时,截取包含该网页的整个页面内容或者一部分页面内容的数据,将截取到的数据作为该网页的页面快照,当然,本发明实施例中的网页的页面快照也可以为其它形式,只需要能够展现网页的页面内容即可,本发明实施例不对具体地页面快照的形式进行限定。In the embodiment of the present invention, the page snapshot of the webpage is a screenshot of the webpage of the webpage, and the bookmark storage device performs a screenshot processing on the entire page or a part of the webpage of the webpage when the webpage pointed to by the bookmark is successfully accessed. Take the screenshot of the image as a snapshot of the page. Optionally, the page snapshot of the webpage described in the embodiment of the present invention is data that includes the page content of the webpage. In this case, when the bookmark storage device successfully accesses the webpage pointed to by the bookmark, the data of the entire page content or a part of the page content of the webpage is intercepted, and the intercepted data is taken as a page snapshot of the webpage. The page snapshot of the webpage in the embodiment of the present invention may also be in other forms, and only needs to be able to display the page content of the webpage. The embodiment of the present invention does not limit the form of the specific page snapshot.
404、在所述终端设备上存储上述网页的页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系。 404. Store, on the terminal device, a page snapshot of the webpage, where a page snapshot of the webpage has a one-to-one correspondence with a bookmark that points to the webpage.
书签存储装置建立当前生成的上述网页的页面快照与指向上述网页的书签之间的对应关系,并根据所述对应关系存储上述网页的页面快照,使得用户在网络断开时也能够根据查看存储的对应于某个书签所指向的网页的页面快照。The bookmark storage device establishes a correspondence between a currently generated page snapshot of the webpage and a bookmark that points to the webpage, and stores a page snapshot of the webpage according to the corresponding relationship, so that the user can also store according to the view when the network is disconnected. Corresponds to a page snapshot of the web page pointed to by a bookmark.
在本发明的实施例中,用户通过对浏览器进行设置来选择是否仅在Wi-Fi网络下启用页面快照,在书签存储装置在执行步骤402中“确定终端设备上存储有上述网页的页面快照,且存储的上述网页的页面快照与当前上述网页的页面不一致”之前,首先检查当前浏览器所使用的网络,若用户选择仅在Wi-Fi网络下启用页面快照,则只在书签存储装置确定当前浏览器所使用的网络为Wi-Fi网络时,才执行步骤402~404的操作,若用户选择可在非Wi-Fi网络下启用页面快照,则书签存储装置在执行步骤402~404的操作之前,不需要确定当前浏览器所使用的网络为Wi-Fi网络。In an embodiment of the present invention, the user selects whether to enable the page snapshot only under the Wi-Fi network by setting the browser, and in the step 402, the bookmark storage device determines that the page snapshot of the webpage is stored on the terminal device. And before the stored page snapshot of the webpage is inconsistent with the current webpage of the above webpage, first check the network used by the current browser, and if the user selects to enable the page snapshot only under the Wi-Fi network, it is determined only in the bookmark storage device. When the network used by the current browser is a Wi-Fi network, the operations of steps 402-404 are performed. If the user selects to enable the page snapshot under the non-Wi-Fi network, the bookmark storage device performs the operations of steps 402-404. Previously, there was no need to determine which network the current browser is using for Wi-Fi networks.
在本发明的实施例中,书签存储装置可以将上述网页的页面快照,浏览器的书签,以及所述网页的页面快照与指向所述网页的书签之间的对应关系存储到其它位置,如云端服务器。从而,当用户在终端设备上启用网页快照功能时,可以将存储在云端服务器上的网页的页面快照,浏览器的书签,以及所述网页的页面快照与指向所述网页的书签之间的对应关系同步到终端设备上。In an embodiment of the present invention, the bookmark storage device may store the page snapshot of the webpage, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage to other locations, such as the cloud. server. Therefore, when the user enables the webpage snapshot function on the terminal device, the page snapshot of the webpage stored on the cloud server, the bookmark of the browser, and the correspondence between the page snapshot of the webpage and the bookmark pointing to the webpage may be The relationship is synchronized to the terminal device.
需要说明的,在某些浏览器中,用户可以将书签被添加到浏览器的起始页或主页的位置,以自定义快速访问的链接。本发明实施例中将上述被添加到浏览器的起始页或主页的位置的书签描述为“快速链接”。因此,本发明实施例中的书签除了包含浏览器书签列表中存储的书签以外,还包含浏览器中的快照链接。It should be noted that in some browsers, users can add bookmarks to the start page of the browser or the location of the home page to customize the links for quick access. In the embodiment of the present invention, the bookmark added to the position of the start page or the home page of the browser is described as "quick link". Therefore, the bookmark in the embodiment of the present invention includes a snapshot link in the browser in addition to the bookmark stored in the browser bookmark list.
由上可见,本发明实施例当成功访问浏览器中的书签所指向的网页时或者在将当前访问的网页添加为书签时,首先检查当前浏览器是否存储上述网页的页面快照,在确定当前浏览器存储上述网页的页面快照时,进一步确定存储的上述网页的页面快照与当前上述网页的页面是否一致,仅在存储的上述网页的页面快照与当前上述网页的页面不一致的情况下,才执行后续的步骤,从而避免了对重复生成和保存相同的页面快照。 As can be seen from the above, when the webpage pointed to by the bookmark in the browser is successfully accessed or the currently accessed webpage is added as a bookmark, the first browser checks whether the current browser stores the page snapshot of the webpage, and determines the current browsing. When the page snapshot of the webpage is stored, it is further determined whether the stored page snapshot of the webpage is consistent with the current webpage of the webpage, and only after the stored page snapshot of the webpage is inconsistent with the current webpage of the webpage. The steps to avoid duplicate generation and saving of the same page snapshot.
参照图5,根据本发明实施例还提供了一种用于确定待浏览书签的方法,运行在终端设备上。该方法包括:Referring to FIG. 5, a method for determining a bookmark to be browsed is further provided on a terminal device according to an embodiment of the present invention. The method includes:
501、经由浏览器访问网页,其中,上述网页已被保存为所述浏览器的书签或所述网页待添加为所述浏览器的书签。501. Access a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or the webpage to be added as a bookmark of the browser.
502、生成该网页的页面快照,以展现该网页的页面内容。502. Generate a page snapshot of the webpage to display page content of the webpage.
503、在终端设备上存储该网页的页面快照,其中,该网页的页面快照与指向该网页的书签之间存在一一对应关系。503. Store a page snapshot of the webpage on the terminal device, where there is a one-to-one correspondence between the page snapshot of the webpage and the bookmark that points to the webpage.
504、调用浏览器,并查看待浏览书签。504. Invoke the browser and view the bookmark to be browsed.
505、根据网页的页面快照与指向该网页的书签之间的一一对应关系,确定待浏览书签对应的网页的页面快照。505. Determine a page snapshot of the webpage corresponding to the bookmark to be browsed according to a one-to-one correspondence between the page snapshot of the webpage and the bookmark of the webpage.
506、在所述浏览器中显示待浏览书签对应的网页的页面快照。506. Display, in the browser, a page snapshot of a webpage corresponding to the bookmark to be browsed.
在本发明的实施例中,在生成该网页的页面快照,以展现该网页的页面内容之前,该方法还包括:确定当前所述浏览器使用的网络为Wi-Fi网络。In an embodiment of the present invention, before generating a page snapshot of the webpage to display the page content of the webpage, the method further includes: determining that the network currently used by the browser is a Wi-Fi network.
在本发明的实施例中,在生成网页的页面快照之前,用于确定待浏览书签的方法还包括:确定在终端设备上未存储该网页的页面快照。In an embodiment of the present invention, before the generating the page snapshot of the webpage, the method for determining the bookmark to be browsed further includes: determining that the page snapshot of the webpage is not stored on the terminal device.
在本发明的实施例中,在生成网页的页面快照之前,用于确定待浏览书签的方法还包括:确定在终端设备上已存储有该网页的页面快照,且存储的该网页的页面快照与当前网页的页面内容不一致。In the embodiment of the present invention, before the page snapshot of the webpage is generated, the method for determining the bookmark to be browsed further includes: determining that the page snapshot of the webpage has been stored on the terminal device, and storing the page snapshot of the webpage and The page content of the current web page is inconsistent.
在本发明的实施例中,存储所述网页的页面快照步骤包括:建立当前生成的网页的页面快照与指向该网页的书签之间的对应关系;以及根据上述对应关系存储该网页的页面快照。In an embodiment of the present invention, the step of storing the page snapshot of the webpage includes: establishing a correspondence between a page snapshot of the currently generated webpage and a bookmark pointing to the webpage; and storing a page snapshot of the webpage according to the correspondence.
在本发明的实施例中,查看浏览器的书签包括:将定点设备设置在所述书签上预定时间,以查看所述书签,其中所述预定时间大于阈值时间。In an embodiment of the invention, viewing the bookmark of the browser includes setting a pointing device on the bookmark for a predetermined time to view the bookmark, wherein the predetermined time is greater than a threshold time.
本发明实施例还提供了一种书签存储装置,运行在终端设备上。如图6所示的本发明实施例中,书签存储装置600包括:The embodiment of the invention further provides a bookmark storage device running on the terminal device. In the embodiment of the present invention as shown in FIG. 6, the bookmark storage device 600 includes:
访问单元601,用于经由浏览器访问网页,其中,该网页已被保存为浏览器的书签或该网页待添加为浏览器的书签。The access unit 601 is configured to access a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or a bookmark of the webpage to be added as a browser.
生成单元602,生成上述网页的页面快照,以展现上述网页的页面内容。The generating unit 602 is configured to generate a page snapshot of the webpage to display the page content of the webpage.
存储单元603,用于在终端设备上存储生成单元602生成的该网页的页面 快照,其中,该网页的页面快照与指向该网页的书签之见存在一一对应关系。The storage unit 603 is configured to store, on the terminal device, a page of the webpage generated by the generating unit 602. A snapshot in which a page snapshot of the web page has a one-to-one correspondence with a bookmark pointing to the web page.
进一步,在图6所示实施例的基础上,如图7所示,书签存储装置700还包括:第一确定单元701,用于在生成单元602生成上述网页的页面快照之前,确定当前上述浏览器使用的网络为无线保真(Wireless Fidelity,Wi-Fi)网络。Further, on the basis of the embodiment shown in FIG. 6, as shown in FIG. 7, the bookmark storage device 700 further includes: a first determining unit 701, configured to determine the current browsing before the generating unit 602 generates a page snapshot of the webpage. The network used by the device is a Wireless Fidelity (Wi-Fi) network.
在本发明的实施例中,如图7所示,书签存储装置700还可以包括:第二确定单元702,用于在生成单元602生成上述网页的页面快照之前,确定在上述终端设备上未存储上述网页的页面快照。In an embodiment of the present invention, as shown in FIG. 7, the bookmark storage device 700 may further include: a second determining unit 702, configured to determine, before the generating unit 602 generates a page snapshot of the webpage, that the terminal device is not stored. A snapshot of the page above.
在本发明的实施例中,如图7所示,书签存储装置700还可以包括:第三确定单元703,还用于在生成单元602生成上述网页的页面快照之前,确定在上述终端设备上存储有上述网页的页面快照,且存储的上述网页的页面快照与当前上述网页的页面内容不一致。In an embodiment of the present invention, as shown in FIG. 7, the bookmark storage device 700 may further include: a third determining unit 703, configured to determine, before the generating unit 602 generates a page snapshot of the webpage, to store on the terminal device. There is a page snapshot of the above webpage, and the stored page snapshot of the webpage is inconsistent with the page content of the current webpage.
需要说明的是,本发明实施例中的书签存储装置可以为如手机、平板电脑、笔记本、台式计算机等的终端设备,或者,书签存储装置可以为独立于终端设备,且能够与该终端设备通过有线或者无线方式进行通讯的装置,此处不作限定。It should be noted that the bookmark storage device in the embodiment of the present invention may be a terminal device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like, or the bookmark storage device may be independent of the terminal device and can pass the terminal device. The device for communicating in a wired or wireless manner is not limited herein.
需要说明的是,本发明实施例中的书签存储装置可以如上述图1~图4所示方法实施例中的书签存储装置,可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述方法实施例中的相关描述,此处不再赘述。It should be noted that the bookmark storage device in the embodiment of the present invention may be used as the bookmark storage device in the method embodiment shown in FIG. 1 to FIG. 4, and may be used to implement all the technical solutions in the foregoing method embodiments. The function of the module may be specifically implemented according to the method in the foregoing method embodiment. For the specific implementation process, refer to the related description in the foregoing method embodiment, and details are not described herein again.
参照图8,根据本发明实施例提供了一种用于确定待浏览书签的装置800,运行在终端设备上。该装置800包括:Referring to FIG. 8, an apparatus 800 for determining a bookmark to be browsed is provided, which is run on a terminal device, according to an embodiment of the present invention. The device 800 includes:
访问单元801,用于经由浏览器访问网页,其中,该网页已被保存为浏览器的书签或该网页待添加为浏览器的书签。The access unit 801 is configured to access a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or a bookmark of the webpage to be added as a browser.
生成单元802,生成该网页的页面快照,以展现该网页的页面内容。The generating unit 802 generates a page snapshot of the webpage to display the page content of the webpage.
存储单元803,用于在终端设备中存储生成单元生成的页面快照,其中,该网页的页面快照与指向该网页的书签之间存在一一对应关系。The storage unit 803 is configured to store, in the terminal device, a page snapshot generated by the generating unit, where there is a one-to-one correspondence between the page snapshot of the web page and the bookmark pointing to the web page.
查看单元804,用于调用浏览器,并查看浏览器的书签。The viewing unit 804 is used to invoke the browser and view the bookmark of the browser.
快照确定单元805,用于根据网页的页面快照与指向该网页的书签之间的 一一对应关系,确定待浏览书签对应的网页的页面快照。a snapshot determining unit 805, configured to: according to a page snapshot of the webpage and a bookmark pointing to the webpage A one-to-one correspondence, determining a page snapshot of a webpage corresponding to the bookmark to be browsed.
显示单元806,用于在所述浏览器中显示待浏览书签对应的网页的页面快照。The display unit 806 is configured to display a page snapshot of the webpage corresponding to the bookmark to be browsed in the browser.
进一步,在图8所示实施例的基础上,如图9所示,确定待浏览书签的装置800进一步可以包括:第一确定单元901,用于在生成单元802生成网页的页面快照之前,确定当前浏览器使用的网络为Wi-Fi网络。Further, on the basis of the embodiment shown in FIG. 8, as shown in FIG. 9, the apparatus 800 for determining a bookmark to be browsed may further include: a first determining unit 901, configured to determine, before the generating unit 802 generates a page snapshot of the webpage. The network used by the current browser is a Wi-Fi network.
在本发明的实施例中,确定待浏览书签的装置800进一步可以包括:第二确定单元902,用于在生成单元802生成所述页面快照之前,确定在终端设备上未存储该网页的页面快照。In the embodiment of the present invention, the device 800 for determining the bookmark to be browsed may further include: a second determining unit 902, configured to determine, before the generating unit 802 generates the page snapshot, a page snapshot of the webpage not stored on the terminal device .
在本发明的实施例中,确定待浏览书签的装置800进一步可以包括:第三确定单元903,还用于在生成单元802生成网页的页面快照之前,确定在终端设备上已存储有该网页的页面快照,且存储的该网页的页面快照与当前网页的页面内容不一致。In an embodiment of the present invention, the device 800 for determining a bookmark to be browsed may further include: a third determining unit 903, configured to determine, before the generating unit 802 generates a page snapshot of the webpage, that the webpage is already stored on the terminal device A page snapshot, and the stored page snapshot of the web page is inconsistent with the page content of the current web page.
在本发明的实施例中,在确定待浏览书签的装置800中,存储单元803进一步用于:建立当前生成的网页的页面快照与指向该网页的书签之间的对应关系,以及根据所述对应关系存储所述网页的页面快照。In the embodiment of the present invention, in the device 800 for determining a bookmark to be browsed, the storage unit 803 is further configured to: establish a correspondence between a page snapshot of the currently generated webpage and a bookmark pointing to the webpage, and according to the correspondence The relationship stores a page snapshot of the web page.
在本发明的实施例中,在确定待浏览书签的装置800中,查看单元804进一步用于:将定点设备设置在所述书签上预定时间,以查看所述书签,其中所述预定时间大于阈值时间。In an embodiment of the present invention, in the device 800 for determining a bookmark to be browsed, the viewing unit 804 is further configured to: set a pointing device on the bookmark for a predetermined time to view the bookmark, wherein the predetermined time is greater than a threshold time.
由上可见,本发明实施例的书签存储装置在成功访问浏览器中的书签所指向的网页时或者在将当前访问的网页添加为书签时,生成并存储该网页的页面快照,同时对应存储该网页的页面快照,使得用户可以在不访问该网页的情况下,便可根据存储的该网页的页面快照查看到该网页的内容并识别出该网页,从而能够在不浪费上网流量的情况下,避免同名异址的书签造成用户混淆的问题,有效节省了用户的上网流量。It can be seen that, when the bookmark storage device of the embodiment of the present invention successfully accesses the webpage pointed by the bookmark in the browser or when the currently accessed webpage is added as a bookmark, the page snapshot of the webpage is generated and stored, and the corresponding storage is performed. The page snapshot of the webpage allows the user to view the content of the webpage and identify the webpage according to the stored page snapshot of the webpage without accessing the webpage, so that the webpage traffic can be wasted without wasting traffic. Avoiding the problem of user confusion caused by bookmarks with the same name and different addresses, effectively saving users' online traffic.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are all focused, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
本领域普通技术人员可以理解上述实施例中的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机 可读存储介质中,存储介质例如可以包括:只读存储器、随机存储器、磁盘或光盘等。One of ordinary skill in the art can understand that all or part of the various methods in the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer. In a readable storage medium, the storage medium may include, for example, a read only memory, a random access memory, a magnetic disk, or an optical disk.
以上对本发明所提供的一种书签存储方法及书签存储装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施例方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。 The above describes a bookmark storage method and a bookmark storage device provided by the present invention. The principles and embodiments of the present invention are described in detail herein. The description of the above embodiments is only for helping to understand the present invention. The method of the invention and its core idea; at the same time, for the person skilled in the art, according to the idea of the embodiment of the invention, there will be changes in the specific implementation manner and the scope of application. In summary, the content of the specification should not be understood. To limit the invention.

Claims (22)

  1. 一种书签存储方法,运行在终端设备上,其特征在于,所述书签存储方法包括:A bookmark storage method, running on a terminal device, wherein the bookmark storage method comprises:
    经由浏览器访问网页,其中,所述网页已被保存为所述浏览器的书签或所述网页待添加为所述浏览器的书签;Accessing a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or the webpage to be added as a bookmark of the browser;
    生成所述网页的页面快照,以展现所述网页的页面内容;以及Generating a page snapshot of the web page to display page content of the web page;
    在所述终端设备上存储所述网页的页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系。A page snapshot of the webpage is stored on the terminal device, wherein a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence.
  2. 根据权利要求1所述的方法,其特征在于,所述生成所述网页的页面快照之前还包括:The method according to claim 1, wherein the generating the page snapshot of the webpage further comprises:
    确定当前所述浏览器使用的网络为无线保真网络。It is determined that the network currently used by the browser is a wireless fidelity network.
  3. 根据权利要求1或2所述的方法,其特征在于,所述生成所述网页的页面快照之前,还包括:The method according to claim 1 or 2, wherein before the generating the page snapshot of the webpage, the method further comprises:
    确定在所述终端设备上未存储所述网页的页面快照。Determining that a page snapshot of the webpage is not stored on the terminal device.
  4. 根据权利要求1或2所述的方法,其特征在于,所述生成所述网页的页面快照之前,还包括:The method according to claim 1 or 2, wherein before the generating the page snapshot of the webpage, the method further comprises:
    确定在所述终端设备上已存储有所述网页的页面快照,且存储的所述网页的页面快照与当前所述网页的页面内容不一致。Determining that a page snapshot of the webpage has been stored on the terminal device, and the stored page snapshot of the webpage is inconsistent with the page content of the current webpage.
  5. 根据权利要求1或2所述的方法,其特征在于,所述存储所述网页的页面快照,包括:The method according to claim 1 or 2, wherein the storing a page snapshot of the webpage comprises:
    建立当前生成的所述网页的页面快照与指向所述网页的书签之间的对应关系;以及Establishing a correspondence between a currently generated page snapshot of the webpage and a bookmark pointing to the webpage;
    根据所述对应关系存储所述网页的页面快照。And storing a page snapshot of the webpage according to the correspondence.
  6. 一种书签存储装置,运行在终端设备上,其特征在于,所述书签存储装置包括:A bookmark storage device, running on a terminal device, wherein the bookmark storage device comprises:
    访问单元,用于经由浏览器访问网页,其中,所述网页已被保存为浏览器的书签或所述网页待添加为浏览器的书签;An access unit, configured to access a webpage via a browser, wherein the webpage has been saved as a bookmark of a browser or a bookmark of the webpage to be added as a browser;
    生成单元,生成所述网页的页面快照,以展现所述网页的页面内容;以 及Generating a unit, generating a page snapshot of the webpage to display page content of the webpage; and
    存储单元,用于在所述终端设备上存储所述生成单元生成的所述页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系。a storage unit, configured to store, on the terminal device, the page snapshot generated by the generating unit, wherein a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence relationship.
  7. 根据权利要求6所述的书签存储装置,其特征在于,还包括:The bookmark storage device according to claim 6, further comprising:
    第一确定单元,用于在所述生成单元生成所述网页的页面快照之前,确定当前所述浏览器使用的网络为无线保真网络。And a first determining unit, configured to determine, before the generating unit generates a page snapshot of the webpage, that the network currently used by the browser is a wireless fidelity network.
  8. 根据权利要求6或7所述的书签存储装置,其特征在于,还包括:The bookmark storage device according to claim 6 or 7, further comprising:
    第二确定单元,用于在所述生成单元生成所述页面快照之前,确定在所述终端设备上未存储所述网页的页面快照。a second determining unit, configured to determine, before the generating unit generates the page snapshot, that a page snapshot of the webpage is not stored on the terminal device.
  9. 根据权利要求6或7所述的书签存储装置,其特征在于,还包括:The bookmark storage device according to claim 6 or 7, further comprising:
    第三确定单元,还用于在所述生成单元生成所述网页的页面快照之前,确定在所述终端设备上已存储有所述网页的页面快照,且存储的所述网页的页面快照与当前所述网页的页面内容不一致。a third determining unit, configured to determine, before the generating unit generates a page snapshot of the webpage, that a page snapshot of the webpage has been stored on the terminal device, and the stored page snapshot of the webpage is current The page content of the webpage is inconsistent.
  10. 根据权利要求6或7所述的书签存储装置,其特征在于,所述存储单元进一步用于:The bookmark storage device according to claim 6 or 7, wherein the storage unit is further configured to:
    建立当前生成的所述网页的页面快照与指向所述网页的书签之间的对应关系,以及Establishing a correspondence between a currently generated page snapshot of the webpage and a bookmark pointing to the webpage, and
    根据所述对应关系存储所述网页的页面快照。And storing a page snapshot of the webpage according to the correspondence.
  11. 一种确定待浏览书签的方法,运行在终端设备上,其特征在于,所述方法包括:A method for determining a bookmark to be browsed, running on a terminal device, wherein the method includes:
    经由浏览器访问网页,其中,所述网页已被保存为所述浏览器的书签或所述网页待添加为所述浏览器的书签;Accessing a webpage via a browser, wherein the webpage has been saved as a bookmark of the browser or the webpage to be added as a bookmark of the browser;
    生成所述网页的页面快照,以展现所述网页的页面内容;Generating a page snapshot of the webpage to display page content of the webpage;
    在所述终端设备上存储所述网页的页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系;Storing a page snapshot of the webpage on the terminal device, wherein a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence;
    调用所述浏览器,并查看所述待浏览书签;Calling the browser and viewing the bookmark to be browsed;
    根据网页的页面快照与指向所述网页的书签之间的一一对应关系,确定所述待浏览书签对应的所述网页的页面快照;以及 Determining, according to a one-to-one correspondence between a page snapshot of the webpage and a bookmark pointing to the webpage, determining a page snapshot of the webpage corresponding to the bookmark to be browsed;
    在所述浏览器中显示所述待浏览书签对应的所述网页的页面快照。Displaying a page snapshot of the webpage corresponding to the bookmark to be browsed in the browser.
  12. 根据权利要求11所述的方法,其特征在于,所述生成所述网页的页面快照之前,还包括:The method according to claim 11, wherein before the generating the page snapshot of the webpage, the method further comprises:
    确定当前所述浏览器使用的网络为无线保真网络。It is determined that the network currently used by the browser is a wireless fidelity network.
  13. 根据权利要求11或12所述的方法,其特征在于,所述生成所述网页的页面快照之前,还包括:The method according to claim 11 or 12, wherein before the generating the page snapshot of the webpage, the method further comprises:
    确定在所述终端设备上未存储所述网页的页面快照。Determining that a page snapshot of the webpage is not stored on the terminal device.
  14. 根据权利要求11或12所述的方法,其特征在于,所述生成所述网页的页面快照之前,还包括:The method according to claim 11 or 12, wherein before the generating the page snapshot of the webpage, the method further comprises:
    确定在所述终端设备上已存储有所述网页的页面快照,且存储的所述网页的页面快照与当前所述网页的页面内容不一致。Determining that a page snapshot of the webpage has been stored on the terminal device, and the stored page snapshot of the webpage is inconsistent with the page content of the current webpage.
  15. 根据权利要求11或12所述的方法,其特征在于,所述存储所述网页的页面快照,包括:The method according to claim 11 or 12, wherein the storing a page snapshot of the webpage comprises:
    建立当前生成的所述网页的页面快照与指向所述网页的书签之间的对应关系;以及Establishing a correspondence between a currently generated page snapshot of the webpage and a bookmark pointing to the webpage;
    根据所述对应关系存储所述网页的页面快照。And storing a page snapshot of the webpage according to the correspondence.
  16. 根据权利要求11-15中任一项所述的方法,其特征在于,所述查看所述浏览器的书签包括:The method according to any one of claims 11 to 15, wherein the viewing of the bookmark of the browser comprises:
    将定点设备设置在所述书签上预定时间,以查看所述书签,其中所述预定时间大于阈值时间。A pointing device is set on the bookmark for a predetermined time to view the bookmark, wherein the predetermined time is greater than a threshold time.
  17. 一种用于确定待浏览书签的装置,运行在终端设备中,其特征在于,所述装置包括:An apparatus for determining a bookmark to be browsed, running in a terminal device, wherein the device comprises:
    访问单元,用于经由浏览器访问网页,其中,所述网页已被保存为浏览器的书签或所述网页待添加为浏览器的书签;An access unit, configured to access a webpage via a browser, wherein the webpage has been saved as a bookmark of a browser or a bookmark of the webpage to be added as a browser;
    生成单元,生成所述网页的页面快照,以展现所述网页的页面内容;Generating a unit, generating a page snapshot of the webpage to display page content of the webpage;
    存储单元,用于在所述终端设备中存储所述生成单元生成的所述页面快照,其中,所述网页的页面快照与指向所述网页的书签之间存在一一对应关系;a storage unit, configured to store, in the terminal device, the page snapshot generated by the generating unit, where a page snapshot of the webpage and a bookmark pointing to the webpage have a one-to-one correspondence relationship;
    查看单元,用于调用浏览器,并查看所述浏览器的书签; a viewing unit for invoking a browser and viewing a bookmark of the browser;
    快照确定单元,用于根据网页的页面快照与指向所述网页的书签之间的一一对应关系,确定所述待浏览书签对应的所述网页的页面快照;以及a snapshot determining unit, configured to determine a page snapshot of the webpage corresponding to the bookmark to be browsed according to a one-to-one correspondence between a page snapshot of the webpage and a bookmark of the webpage; and
    显示单元,用于在所述浏览器中显示所述待浏览书签对应的所述网页的页面快照。a display unit, configured to display, in the browser, a page snapshot of the webpage corresponding to the bookmark to be browsed.
  18. 根据权利要求17所述的装置,其特征在于,还包括:The device according to claim 17, further comprising:
    第一确定单元,用于在所述生成单元生成所述网页的页面快照之前,确定当前所述浏览器使用的网络为无线保真网络。And a first determining unit, configured to determine, before the generating unit generates a page snapshot of the webpage, that the network currently used by the browser is a wireless fidelity network.
  19. 根据权利要求17或18所述的书签存储装置,其特征在于,还包括:The bookmark storage device according to claim 17 or 18, further comprising:
    第二确定单元,用于在所述生成单元生成所述页面快照之前,确定在所述终端设备上未存储所述网页的页面快照。a second determining unit, configured to determine, before the generating unit generates the page snapshot, that a page snapshot of the webpage is not stored on the terminal device.
  20. 根据权利要求17或18所述的书签存储装置,其特征在于,还包括:The bookmark storage device according to claim 17 or 18, further comprising:
    第三确定单元,还用于在所述生成单元生成所述网页的页面快照之前,确定在所述终端设备上已存储有所述网页的页面快照,且存储的所述网页的页面快照与当前所述网页的页面内容不一致。a third determining unit, configured to determine, before the generating unit generates a page snapshot of the webpage, that a page snapshot of the webpage has been stored on the terminal device, and the stored page snapshot of the webpage is current The page content of the webpage is inconsistent.
  21. 根据权利要求17或18所述的装置,其特征在于,所述存储单元进一步用于:The device according to claim 17 or 18, wherein the storage unit is further configured to:
    建立当前生成的所述网页的页面快照与指向所述网页的书签之间的对应关系,以及Establishing a correspondence between a currently generated page snapshot of the webpage and a bookmark pointing to the webpage, and
    根据所述对应关系存储所述网页的页面快照。And storing a page snapshot of the webpage according to the correspondence.
  22. 根据权利要求17至21中任一项所述的装置,其特征在于,所述查看单元进一步用于:The apparatus according to any one of claims 17 to 21, wherein the viewing unit is further configured to:
    将定点设备设置在所述书签上预定时间,以查看所述书签,其中所述预定时间大于阈值时间。 A pointing device is set on the bookmark for a predetermined time to view the bookmark, wherein the predetermined time is greater than a threshold time.
PCT/CN2014/088172 2013-10-24 2014-10-09 Bookmark storage method and device, and method and device for determining bookmark to be browsed WO2015058614A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310507866.7A CN104572753A (en) 2013-10-24 2013-10-24 Bookmark storage method and bookmark storage device
CN201310507866.7 2013-10-24

Publications (1)

Publication Number Publication Date
WO2015058614A1 true WO2015058614A1 (en) 2015-04-30

Family

ID=52992239

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088172 WO2015058614A1 (en) 2013-10-24 2014-10-09 Bookmark storage method and device, and method and device for determining bookmark to be browsed

Country Status (2)

Country Link
CN (1) CN104572753A (en)
WO (1) WO2015058614A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372251B (en) * 2016-09-28 2020-03-03 北京京东尚科信息技术有限公司 Method and device for returning page display position
CN108829540A (en) * 2018-06-13 2018-11-16 珠海市君天电子科技有限公司 Backup method, device and the electronic equipment of web page contents
CN110858114B (en) * 2018-08-22 2021-12-10 北京字节跳动网络技术有限公司 Webpage display method, bookmark generation method, device, equipment and medium on mobile terminal
CN111428105A (en) * 2020-03-05 2020-07-17 广东睿江云计算股份有限公司 Webpage bookmark management method and system based on crawler cache

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007067899A2 (en) * 2005-12-05 2007-06-14 Google, Inc. Browser system and method for warning users of potentially fraudulent websites
CN102306181A (en) * 2011-08-29 2012-01-04 北京搜狗科技发展有限公司 Method and system for providing network resources
CN102646135A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Webpage collecting method, device and system
CN102750269A (en) * 2012-07-16 2012-10-24 西安体育学院 Method for establishing navigation bookmark during browsing of ultra-long and ultra-wide webpage

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045372A (en) * 2009-10-20 2011-05-04 上海及第熊软件科技有限公司 Website content publication method and system for realizing remote staticizing
CN102737121A (en) * 2012-06-01 2012-10-17 北京奇乐客科技有限公司 Webpage collection method, client side and server of cloud platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007067899A2 (en) * 2005-12-05 2007-06-14 Google, Inc. Browser system and method for warning users of potentially fraudulent websites
CN102306181A (en) * 2011-08-29 2012-01-04 北京搜狗科技发展有限公司 Method and system for providing network resources
CN102646135A (en) * 2012-03-31 2012-08-22 奇智软件(北京)有限公司 Webpage collecting method, device and system
CN102750269A (en) * 2012-07-16 2012-10-24 西安体育学院 Method for establishing navigation bookmark during browsing of ultra-long and ultra-wide webpage

Also Published As

Publication number Publication date
CN104572753A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
US10412176B2 (en) Website access method, apparatus, and website system
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US9495339B2 (en) Method and apparatus for displaying information in a browser
US10146750B2 (en) Method, apparatus, terminal, and storage medium for image processing
US10198410B2 (en) Method, device and mobile terminal for restoring page
TW201723897A (en) Method, device, and system for displaying information associated with a web page
TWI670611B (en) Web file sending method, webpage rendering method and device, webpage rendering system
US20110302288A1 (en) Enhanced Browser Cookie Management
WO2017133499A1 (en) Webpage access method and device
JP2013508807A (en) Method and apparatus for generating an internet navigation page
WO2014134934A1 (en) Method and system for displaying customized webpage on double webview
WO2015180601A1 (en) Method and device for starting operation of webapp and generating mirror image file
TW201416977A (en) Webpages with onboard hardware functions
Behl et al. Architectural pattern of progressive web and background synchronization
WO2015058614A1 (en) Bookmark storage method and device, and method and device for determining bookmark to be browsed
CN104361130B (en) Method for searching local area network or specified network segment equipment in webpage
TWI677223B (en) Page display method and device
US10021210B1 (en) Providing faster data access using multiple caching servers
WO2015154270A1 (en) Method and device for information search
CN109086304B (en) Electronic bookmark updating method, device and storage medium
US20150193393A1 (en) Dynamic Display of Web Content
JP6464031B2 (en) Electronic device, web page display method, and web page display program
CN107844537A (en) A kind of method and system of marking of web pages
JP2010102453A (en) Web page browsing method, information processor, and web page browsing program
WO2014071764A1 (en) Client side browser, server side browser and realization method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14854979

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 30/06/2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14854979

Country of ref document: EP

Kind code of ref document: A1