WO2013185554A1 - 一种离线浏览网页的方法及装置、计算机存储介质 - Google Patents

一种离线浏览网页的方法及装置、计算机存储介质 Download PDF

Info

Publication number
WO2013185554A1
WO2013185554A1 PCT/CN2013/076796 CN2013076796W WO2013185554A1 WO 2013185554 A1 WO2013185554 A1 WO 2013185554A1 CN 2013076796 W CN2013076796 W CN 2013076796W WO 2013185554 A1 WO2013185554 A1 WO 2013185554A1
Authority
WO
WIPO (PCT)
Prior art keywords
url
offline
web page
download
user
Prior art date
Application number
PCT/CN2013/076796
Other languages
English (en)
French (fr)
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 WO2013185554A1 publication Critical patent/WO2013185554A1/zh
Priority to US14/564,636 priority Critical patent/US10262074B2/en

Links

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/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Definitions

  • the invention belongs to the technical field of IOS terminals, and particularly relates to a method and device for browsing a web page offline under the IOS platform, and a computer storage medium. Background technique
  • Existing IOS-based terminal devices can access the Internet in a wireless way and browse content on the Internet.
  • the existing IOS-based terminal device browses the webpage, the corresponding webpage resource file is downloaded through the system control of the IOS terminal device, and the downloaded webpage resource file is distributed and stored in a folder.
  • the stored web resource file is loaded by UlWebView for offline display.
  • UlWebView loading web resource files when UlWebView loads each scattered web resource file, some web resource files may be incompletely loaded or not loaded, resulting in incomplete page display, affecting users.
  • the decentralized storage of web resource files wastes the storage space of the system and affects the efficiency of loading web resource files. Summary of the invention
  • An object of the present invention is to provide a method for browsing a webpage offline, which solves the problem that the webpage resource file is incompletely loaded and the loading efficiency is low in the prior art.
  • the embodiment of the present invention is implemented by the method for offline browsing a webpage, and the method package Includes:
  • the URL selected by the user from the offline browsing list is received, and the stored executable file corresponding to the selected URL is loaded to implement offline browsing of the webpage.
  • Another object of the present invention is to provide an apparatus for browsing a webpage offline, the apparatus comprising:
  • a receiving unit configured to receive a uniform resource locator URL input by the user
  • a downloading unit configured to: when receiving an instruction that the user adds the URL, store the URL to a preset offline browsing list, and download the webpage resource file in the webpage corresponding to the URL to a specified storage location, The downloaded web resource file is compressed into an executable document;
  • an offline loading unit configured to receive, in an offline state, a URL selected by the user from the offline browsing list, and load the stored executable file corresponding to the selected URL, to implement offline browsing of the webpage.
  • a further object of the embodiments of the present invention is to provide a computer storage medium in which computer executable instructions are stored for performing the method of browsing a webpage offline as described in the embodiments of the present invention.
  • the embodiment of the present invention pre-downloads the required webpage resource file, and compresses the downloaded webpage resource file into an executable document.
  • the executable document is loaded to implement offline browsing of the webpage. Since the downloaded webpage resource file is compressed into an executable document, the problem of waste of storage space and low loading efficiency caused by excessively scattered existing webpage resource file storage can be effectively avoided. and, The embodiment of the present invention directly loads the executable document, and does not load each distributed webpage resource file, thereby effectively avoiding the problem that the webpage resource file is incompletely loaded.
  • FIG. 1 is a flowchart of an implementation of an offline browsing webpage method according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of an implementation of an offline browsing webpage method according to Embodiment 2 of the present invention
  • FIG. 3 is an offline browsing provided by Embodiment 3 of the present invention
  • the composition diagram of the web device The composition diagram of the web device. detailed description
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 1 is a flowchart showing an implementation process of an offline browsing webpage method according to Embodiment 1 of the present invention. The process of the method is as follows:
  • step S101 a Uniform Resource Locator (URL) input by the user is received.
  • URL Uniform Resource Locator
  • the terminal device based on the IOS platform receives the URL input by the user through a browser (for example, a QQ browser) of the terminal device in an online (network connected) state.
  • a browser for example, a QQ browser
  • step S102 when the user receives an instruction to add the URL, the URL is Loading the specified web resource file into an executable file.
  • an offline browsing list is preset, and when receiving an instruction to add a URL by the user, the current URL is stored in the offline browsing list, and the download is performed.
  • the URL corresponds to a web resource file in a webpage. It should be noted that when the URL is stored, the URL needs to be converted into a corresponding webpage name and displayed in the offline browsing list.
  • the embodiment will download the webpage resource file in the URL corresponding webpage to the specified storage. Position, compress the downloaded web resource file into an executable document. The contents of the same web page are stored in the same location, such as the same folder.
  • the URLs in the offline browsing list may be prioritized, deleted, sorted, and the like. It should be noted that, when the URL deletion operation is performed, the stored executable file corresponding to the URL needs to be deleted.
  • step S103 in the offline state, the URL selected by the user from the offline browsing list is received, and the stored executable file corresponding to the selected URL is loaded to implement offline browsing of the webpage.
  • the stored URL with the selected URL can be loaded by the control UlWebView Corresponding to the executable document.
  • control UlWebView is a control device based on the terminal device under the IOS platform.
  • the URL selected by the user from the offline browsing list or the webpage name corresponding to the URL is received, and the URL corresponding to the URL selected by the specified storage location is loaded by the private interface of the control UlWebView. Execute the documentation.
  • the downloaded web resource file is compressed into an executable document, the problem of waste of storage space and low loading efficiency caused by excessively scattered existing web resource file storage can be effectively avoided.
  • the executable document is directly loaded by the UlWebView, and the executable file includes all the webpage resource files, so that the prior art loads some webpages of each of the scattered webpage resource files.
  • the resource file is not fully loaded.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 2 is a flowchart showing an implementation process of an offline browsing webpage method according to Embodiment 2 of the present invention, and the method is detailed as follows:
  • step S201 the URL input by the user is received.
  • step S201 when receiving an instruction that the user adds the URL, the URL is stored to a preset offline browsing list.
  • step S203 the downloading condition set by the user is received, and the webpage resource file corresponding to the URL and corresponding to the download condition is downloaded to the specified storage location, and the downloaded webpage resource file is compressed into an executable file. Documentation.
  • the downloading conditions include, but are not limited to, at least one of the following: a file type, a file size, and a specified number of webpage layers.
  • the file types include html, txt, pdf, doc, jpg, bmp, gif, png, mpg, mp2, mp3, avi, wav, mid, exe, zi, and the like.
  • a setting interface of a download condition may be displayed, and the user selects a type to be downloaded, a size of the limited download file (for example, less than 100M), and a finger according to the file type displayed by the setting interface. The number of web pages, etc.
  • the download process is controlled, for example, when the download is slow, the download is terminated.
  • the embodiment further includes: displaying the download progress while downloading the web resource file, for example, displaying the download progress through the progress bar.
  • step S204 in the offline state, the URL selected by the user from the offline browsing list is received, and the stored executable file corresponding to the selected URL is loaded to implement offline browsing of the webpage.
  • the stored executable file corresponding to the selected URL may be loaded by the control UlWebView.
  • step S103 The specific implementation process of the step is as described in step S103 in the first embodiment, and details are not described herein again.
  • step S103 by downloading the download condition in advance, only the web resource file that meets the download condition is downloaded, which can effectively save download traffic and download time, and improve download efficiency.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • FIG. 3 is a block diagram showing the structure of an offline browsing webpage device according to Embodiment 3 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
  • the offline browsing webpage device may be a software unit, a hardware unit or a combination of software and hardware running in each terminal device (for example, IPHONE, IPAD, etc.), or may be integrated into an application system of the terminal device as a separate pendant. .
  • the offline browsing webpage device includes a receiving unit 31, a downloading unit 32, and an offline loading unit 33.
  • the specific functions of each unit are as follows:
  • a receiving unit 31 configured to receive a URL input by a user
  • the downloading unit 32 is configured to: when receiving an instruction that the user adds the URL, store the URL to a preset offline browsing list, and download the webpage resource file in the webpage corresponding to the URL to a specified storage location, Compressing the downloaded web resource file into an executable file
  • the offline loading unit 33 is configured to receive, in an offline state, a URL selected by the user from the offline browsing list, and load the stored executable file corresponding to the selected URL to implement offline browsing of the webpage. .
  • the offline loading unit 33 can load the stored executable file corresponding to the selected URL through the control UlWebView.
  • the device further includes a setting unit 34 for prioritizing, deleting or sorting the URLs in the offline browsing list.
  • download unit 32 further includes:
  • the downloading module 322 is configured to download the webpage resource file corresponding to the URL and corresponding to the download condition set by the setting module 321 to the specified storage location.
  • the device also includes:
  • the progress display unit 35 is configured to display the download progress while downloading the web resource file.
  • the downloading conditions include, but are not limited to, at least one of the following: a file type, a file size, and a specified number of webpage layers.
  • the offline browsing webpage device provided in this embodiment may be used in the foregoing corresponding offline browsing webpage method.
  • the offline browsing webpage device provided in this embodiment may be used in the foregoing corresponding offline browsing webpage method.
  • each unit and module included in the third embodiment is only divided according to functional logic, but is not limited to the above division, as long as the corresponding functions can be implemented;
  • the specific names of the modules are also for convenience of distinguishing from each other and are not intended to limit the scope of protection of the present invention.
  • the embodiment of the present invention pre-downloads a required web resource file, and compresses the downloaded web resource file into an executable document.
  • the executable document is loaded by the control UlWeb View to realize offline browsing of the webpage. Due to The downloaded web resource file is compressed into an executable document, which can effectively avoid the waste of storage space and low loading efficiency caused by excessively scattered existing web resource file storage.
  • the embodiment of the present invention directly loads the executable document through UlWebView, and does not load each distributed webpage resource file, thereby effectively avoiding the problem that the webpage resource file is incompletely loaded due to the uncontrollability of the UlWebView.
  • by downloading the download condition in advance only the web resource file that meets the download condition is downloaded, which can effectively save download traffic and download time, and improve download efficiency.
  • the embodiment of the invention is simple to implement, easy to use, and strong in practicability.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer executable instructions are used to execute the method for offline browsing of a webpage according to an embodiment of the present invention.

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

本发明适用于IOS终端技术领域,提供了一种离线浏览网页的方法及装置、计算机存储介质,所述方法包括:接收用户输入的统一资源定位符(URL);在接收到用户添加所述URL的指令时,将所述URL存储至预设的离线浏览列表,并将所述URL对应网页中的网页资源文件下载到指定的存储位置,将下载后的所述网页资源文件压缩成一个可执行文档;在离线状态下,接收用户从所述离线浏览列表中选定的URL,并加载存储的与所述选定的URL对应的所述可执行文档,实现网页的离线浏览。通过本发明可有效解决现有技术存在的网页资源文件加载不完全以及加载效率低的问题。

Description

一种离线浏览网页的方法及装置、 计算机存储介质 本专利申请要求 2012 年 6 月 11 日提交的中国专利申请号为 201210190621.1 , 申请人为腾讯科技(深圳)有限公司, 发明名称为 "一种 离线浏览网页的方法及装置" 的优先权, 该申请的全文以引用的方式并入 本申请中。 技术领域
本发明属于 IOS终端技术领域, 尤其涉及一种 IOS平台下离线浏览网 页的方法及装置、 计算机存储介质。 背景技术
现有基于 IOS的终端设备 (例如 IPHONE、 IPAD等)大多可以通过无 线的方式访问互联网, 浏览互联网上的内容。 现有基于 IOS的终端设备在 浏览网页时是通过 IOS终端设备的系统控件下载对应的网页资源文件, 并 将下载后的网页资源文件分散的存储至一个文件夹。 在离线状态下通过 UlWebView加载所存储的网页资源文件进行显示。 然而, 由于 UlWebView 加载网页资源文件的不可控性, UlWebView在加载每个分散的网页资源文 件时, 会出现某些网页资源文件加载不完整或者不加载, 导致页面显示不 完全的问题, 影响用户的体验。 而且, 网页资源文件的分散存储会浪费系 统的存储空间并影响网页资源文件加载的效率。 发明内容
本发明实施例的目的在于提供一种离线浏览网页的方法, 以解决现有 技术存在的网页资源文件加载不完全以及加载效率低的问题。
本发明实施例是这样实现的, 一种离线浏览网页的方法, 所述方法包 括:
接收用户输入的统一资源定位符 URL;
在接收到用户添加所述 URL的指令时, 将所述 URL存储至预设的离 线浏览列表, 并将所述 URL对应网页中的网页资源文件下载到指定的存储 位置, 将下载后的所述网页资源文件压缩成一个可执行文档;
在离线状态下, 接收用户从所述离线浏览列表中选定的 URL, 并加载 存储的与所述选定的 URL对应的所述可执行文档, 实现网页的离线浏览。
本发明实施例的另一目的在于提供一种离线浏览网页的装置, 所述装 置包括:
接收单元, 用于接收用户输入的统一资源定位符 URL;
下载单元, 用于在接收到用户添加所述 URL 的指令时, 将所述 URL 存储至预设的离线浏览列表, 并将所述 URL对应网页中的网页资源文件下 载到指定的存储位置, 将下载后的所述网页资源文件压缩成一个可执行文 档;
离线加载单元, 用于在离线状态下, 接收用户从所述离线浏览列表中 选定的 URL, 并加载存储的与所述选定的 URL对应的所述可执行文档, 实 现网页的离线浏览。
本发明实施例的再一目的在于提供一种计算机存储介质, 其中存储有 计算机可执行指令, 该计算机可执行指令用于执行本发明实施例所述的离 线浏览网页的方法。
从上述技术方案可以看出, 本发明实施例预先下载需要的网页资源文 件, 并将下载后的所述网页资源文件压缩成一个可执行文档。 在离线 (网 络断开)状态下, 加载所述可执行文档, 实现网页的离线浏览。 由于所下 载的网页资源文件压缩成了一个可执行文档, 从而可有效避免现有网页资 源文件存储过于分散导致的存储空间浪费以及加载效率低的问题。 而且, 本发明实施例是直接加载所述可执行文档, 不是加载每个分散的网页资源 文件, 从而可有效避免网页资源文件加载不完全的问题。 附图说明
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中 的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不 付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例一提供的离线浏览网页方法的实现流程图; 图 2是本发明实施例二提供的离线浏览网页方法的实现流程图; 图 3是本发明实施例三提供的离线浏览网页装置的组成结构图。 具体实施方式
为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图 及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体 实施例仅仅用以解释本发明, 并不用于限定本发明。
为了说明本发明所述的技术方案, 下面通过具体实施例来进行说明。
实施例一:
图 1 示出了本发明实施例一提供的离线浏览网页方法的实现流程, 该 方法过程详述如下:
在步驟 S101 中, 接收用户输入的统一资源定位符(Uniform Resource Locator, URL )。
在本实施例中, 基于 IOS平台下的终端设备在上线 (网络连通)状态 下接收用户通过所述终端设备的浏览器(例如 QQ浏览器 )输入的 URL。
在步驟 S102中, 在接收到用户添加所述 URL的指令时, 将所述 URL 载到指定的存储位置, 将下载后的所述网页资源文件压缩成一个可执行文 档。
在本实施例中, 为了方便用户在离线状态下选择需要浏览的网页, 预 先设置一离线浏览列表, 在接收到用户添加 URL的指令时,将当前的 URL 存储至所述离线浏览列表, 并下载所述 URL对应网页中的网页资源文件。 需要说明的是, 在存储 URL时, 需要将所述 URL转换成对应的网页名称, 显示在所述离线浏览列表中。
优选的是, 为了避免网页资源文件加载不完整, 存储的网页资源文件 过于分散浪费存储空间以及影响后续加载的效率, 本实施例将将所述 URL 对应网页中的网页资源文件下载到指定的存储位置, 将下载后的所述网页 资源文件压缩成一个可执行文档。 其中, 同一网页的内容存储至同一位置, 例如同一文件夹中。
需要说明的是, 现有个人计算机 ( Personal Computer, PC ) 的离线浏 览大都是将下载的网页资源文件分散存储, 一个网页可能包含几十个 ( hypertext markup language, html )、 图片等资源文件, 如果分散存 4诸, 过 多的小文件容易造成磁盘空间使用率的下降, 降低后续 UlWebView加载的 效率以及可能导致的某些网页资源文件加载不完整或者不加载。
优选的是,为避免离线浏览表中存储的 URL过多,不便于用户的查找, 本实施例还可以对离线浏览列表中的 URL进行优先级设置、 删除、 排序等 操作。 需要说明的是, 在进行 URL删除操作时, 需要删除与该 URL对应 的已存储的所述可执行文档。
在步驟 S103中, 在离线状态下, 接收用户从所述离线浏览列表中选定 的 URL, 并加载存储的与所述选定的 URL对应的所述可执行文档, 实现网 页的离线浏览。
优选的是, 可以通过控件 UlWebView加载存储的与所述选定的 URL 对应的所述可执行文档。
在本实施例中, 所述控件 UlWebView为基于 IOS平台下终端设备的控 件。 在离线状态下, 接收用户从所述离线浏览列表中选定的 URL或者所述 URL对应的网页名称,通过控件 UlWebView的私有接口加载所述指定存储 位置用户所选定的 URL对应的所述可执行文档。
由于所下载的网页资源文件压缩成了一个可执行文档, 从而可有效避 免现有网页资源文件存储过于分散导致的存储空间浪费以及加载效率低的 问题。 而且, 本发明实施例是通过 UlWebView直接加载所述可执行文档, 所述可执行文档包含了所有的网页资源文件, 从而可有效解决现有技术加 载每个分散的网页资源文件出现的某些网页资源文件加载不完全的问题。
实施例二:
图 2示出了本发明实施例二提供的离线浏览网页方法的实现流程, 该 方法过程详述如下:
在步驟 S201中, 接收用户输入的 URL。
该步驟具体实施过程如实施例一中的步驟 S101所述, 在此不再赘述。 在步驟 S201中, 在接收到用户添加所述 URL的指令时, 将所述 URL 存储至预设的离线浏览列表。
在步驟 S203 中, 接收用户设定的下载条件, 将所述 URL对应的且符 合所述下载条件的网页资源文件下载到指定的存储位置, 将下载后的所述 网页资源文件压缩成一个可执行文档。
在本实施例中, 所述下载条件包括但不限于以下至少一项: 文件类型、 文件大小及指定的网页层数。 所述文件类型包括 html、 txt、 pdf、 doc, jpg、 bmp、 gif、 png、 mpg、 mp2、 mp3、 avi、 wav、 mid、 exe、 zi 等。 在实际 应用中, 可显示一个下载条件的设置界面, 用户根据该设置界面显示的文 件类型选择需要下载的类型、 限定下载文件的大小(例如小于 100M )及指 定的网页层数等。
优选的是, 为方便用户及时了解下载情况, 对下载过程进行控制, 例 如在下载緩慢时, 终止下载等。 本实施例还包括: 在下载网页资源文件的 同时, 显示下载进度, 例如通过进度条显示下载进度。
在步驟 S204中, 在离线状态下, 接收用户从所述离线浏览列表中选定 的 URL , 并加载存储的与所述选定的 URL对应的所述可执行文档, 实现网 页的离线浏览。
优选的是, 可以通过控件 UlWebView加载存储的与所述选定的 URL 对应的所述可执行文档。
该步驟具体实施过程如实施例一中的步驟 S103所述, 在此不再赘述。 本实施例通过预先设定下载条件, 只下载符合所述下载条件的网页资 源文件, 可有效节省下载流量以及下载时间, 提高下载的效率。
实施例三:
图 3 示出了本发明实施例三提供的离线浏览网页装置的组成结构, 为 了便于说明, 仅示出了与本发明实施例相关的部分。
该离线浏览网页装置可以是运行于各终端设备(例如 IPHONE、 IPAD 等) 内的软件单元、 硬件单元或者软硬件相结合的单元, 也可以作为独立 的挂件集成到所述终端设备的应用系统中。
该离线浏览网页装置包括接收单元 31、下载单元 32以及离线加载单元 33。 其中, 各单元的具体功能如下:
接收单元 31 , 用于接收用户输入的 URL;
下载单元 32,用于在接收到用户添加所述 URL的指令时,将所述 URL 存储至预设的离线浏览列表, 并将所述 URL对应网页中的网页资源文件下 载到指定的存储位置, 将下载后的所述网页资源文件压缩成一个可执行文 离线加载单元 33 , 用于在离线状态下, 接收用户从所述离线浏览列表 中选定的 URL, 并加载存储的与所述选定的 URL对应的所述可执行文档, 实现网页的离线浏览。
进一步的, 离线加载单元 33可以通过控件 UlWebView加载存储的与 所述选定的 URL对应的所述可执行文档。
进一步的,所述装置还包括设置单元 34,用于对离线浏览列表中的 URL 进行优先级设置、 删除或排序。
进一步的, 所述下载单元 32还包括:
设定模块 321 , 用于设定下载条件;
下载模块 322, 用于将所述 URL对应的且符合所述设定模块 321设定 的下载条件的网页资源文件下载到指定的存储位置。
所述装置还包括:
进度显示单元 35, 用于在下载网页资源文件的同时, 显示下载进度。 在本实施例中, 所述下载条件包括但不限于以下至少一项: 文件类型、 文件大小及指定的网页层数。
本实施例提供的离线浏览网页装置可以使用在前述对应的离线浏览网 页方法, 详情参见上述离线浏览网页方法实施例一和二的相关描述, 在此 不再赘述。
本领域普通技术人员可以理解为实施例三所包括的各个单元、 模块只 是按照功能逻辑进行划分的, 但并不局限于上述的划分, 只要能够实现相 应的功能即可; 另外, 各功能单元、 模块的具体名称也只是为了便于相互 区分, 并不用于限制本发明的保护范围。
综上所述, 本发明实施例预先下载需要的网页资源文件, 并将下载后 的所述网页资源文件压缩成一个可执行文档。 在离线(网络断开)状态下, 通过控件 UlWeb View加载所述可执行文档, 实现网页的离线浏览。 由于所 下载的网页资源文件压缩成了一个可执行文档, 从而可有效避免现有网页 资源文件存储过于分散导致的存储空间浪费以及加载效率低的问题。 而且, 本发明实施例是通过 UlWebView直接加载所述可执行文档, 不是加载每个 分散的网页资源文件, 从而可有效避免 UlWebView不可控性导致的网页资 源文件加载不完全的问题。 另外, 本实施例通过预先设定下载条件, 只下 载符合所述下载条件的网页资源文件, 可有效节省下载流量以及下载时间 , 提高下载的效率。 本发明实施例实现简单、 易用性好、 实用性强。
本领域普通技术人员还可以理解, 实现上述实施例方法中的全部或部 分步驟是可以通过程序来指令相关的硬件来完成, 所述的程序可以在存储 于一计算机可读取存储介质中, 所述的存储介质, 包括 ROM/RAM、 磁盘、 光盘等。 因此, 本发明实施例还提供一种计算机存储介质, 其中存储有计 算机可执行指令, 该计算机可执行指令用于执行本发明实施例所述的离线 浏览网页的方法。
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在 本发明的精神和原则之内所作的任何修改、 等同替换和改进等, 均应包含 在本发明的保护范围之内。

Claims

权利要求书
1、 一种离线浏览网页的方法, 其特征在于, 所述方法包括: 接收用户输入的统一资源定位符 URL;
在接收到用户添加所述 URL的指令时, 将所述 URL存储至预设的 离线浏览列表, 并将所述 URL对应网页中的网页资源文件下载到指定的 存储位置, 将下载后的所述网页资源文件压缩成一个可执行文档;
在离线状态下, 接收用户从所述离线浏览列表中选定的 URL, 并加 载存储的与所述选定的 URL对应的所述可执行文档, 实现网页的离线浏
2、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括: 对离线浏览列表中的 URL进行优先级设置、 删除或排序。
3、 如权利要求 1所述的方法, 其特征在于, 所述将 URL对应的网 页资源文件下载到指定的存储位置包括:
设定下载条件;
将所述 URL对应的且符合所述下载条件的网页资源文件下载到指定 的存储位置。
4、 如权利要求 3所述的方法, 其特征在于, 所述下载条件包括以下 至少一项: 文件类型、 文件大小及指定的网页层数。
5、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括: 在下载网页资源文件的同时, 显示下载进度。
6、 如权利要求 1 所述的方法, 其特征在于, 通过控件 UlWebView 加载存储的与所述选定的 URL对应的所述可执行文档。
7、 一种离线浏览网页的装置, 其特征在于, 所述装置包括: 接收单元, 用于接收用户输入的统一资源定位符 URL;
下载单元, 用于在接收到用户添加所述 URL的指令时, 将所述 URL 存储至预设的离线浏览列表, 并将所述 URL对应网页中的网页资源文件 下载到指定的存储位置, 将下载后的所述网页资源文件压缩成一个可执 行文档;
离线加载单元, 用于在离线状态下, 接收用户从所述离线浏览列表 中选定的 URL ,并加载存储的与所述选定的 URL对应的所述可执行文档, 实现网页的离线浏览。
8、 如权利要求 7所述的装置, 其特征在于, 所述装置还包括: 设置单元, 用于对离线浏览列表中的 URL进行优先级设置、 删除或 排序。
9、 如权利要求 7所述的装置, 其特征在于, 所述下载单元还包括: 设定模块, 用于设定下载条件;
下载模块, 用于将所述 URL对应的且符合所述设定模块设定的下载 条件的网页资源文件下载到指定的存储位置。
10、 如权利要求 9 所述的装置, 其特征在于, 所述下载条件包括以 下至少一项: 文件类型、 文件大小及指定的网页层数。
11、 如权利要求 7所述的装置, 其特征在于, 所述装置还包括: 进度显示单元, 用于在下载网页资源文件的同时, 显示下载进度。
12、 如权利要求 7所述的装置, 其特征在于, 所述离线加载单元通 过控件 UlWebView加载存储的与所述选定的 URL对应的所述可执行文 档。
13、 一种计算机存储介质, 其特征在于, 其中存储有计算机可执行 指令, 该计算机可执行指令用于执行所述权利要求 1至 6任一项所述的 方法。
PCT/CN2013/076796 2012-06-11 2013-06-05 一种离线浏览网页的方法及装置、计算机存储介质 WO2013185554A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/564,636 US10262074B2 (en) 2012-06-11 2014-12-09 Method and device for offline webpage browsing, and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210190621.1 2012-06-11
CN201210190621.1A CN103488636B (zh) 2012-06-11 2012-06-11 一种离线浏览网页的方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/564,636 Continuation US10262074B2 (en) 2012-06-11 2014-12-09 Method and device for offline webpage browsing, and computer storage medium

Publications (1)

Publication Number Publication Date
WO2013185554A1 true WO2013185554A1 (zh) 2013-12-19

Family

ID=49757509

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/076796 WO2013185554A1 (zh) 2012-06-11 2013-06-05 一种离线浏览网页的方法及装置、计算机存储介质

Country Status (3)

Country Link
US (1) US10262074B2 (zh)
CN (1) CN103488636B (zh)
WO (1) WO2013185554A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960767A (zh) * 2019-01-25 2019-07-02 深圳壹账通智能科技有限公司 页面显示方法、装置、计算机装置及计算机可读存储介质

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902061A (zh) * 2014-03-03 2015-09-09 联想(北京)有限公司 一种信息处理方法及电子设备
CN105760290B (zh) * 2014-12-17 2018-11-13 阿里巴巴集团控股有限公司 基于网页前端测试的问题定位方法及相关装置、系统
CN104572981B (zh) * 2014-12-31 2017-11-24 广东欧珀移动通信有限公司 一种网页页面缓存处理方法和移动终端设备
CN106326223A (zh) * 2015-06-16 2017-01-11 广州市动景计算机科技有限公司 一种网页资源获取方法和装置
CN105512280B (zh) * 2015-12-07 2019-05-21 福建天晴数码有限公司 缓存站点文件的方法及其系统
CN106055588A (zh) * 2016-05-20 2016-10-26 青岛海信电器股份有限公司 离线资源处理方法及装置
US20180225129A1 (en) * 2017-02-08 2018-08-09 International Business Machines Corporation Mobile application publishing
CN107038219B (zh) * 2017-03-17 2019-03-15 武汉斗鱼网络科技有限公司 iOS中加载GIF动画的方法及装置
CN109327522A (zh) * 2018-10-23 2019-02-12 芜湖汉科信息技术有限公司 一种数据信息外部传输文件的处理系统
CN109299423A (zh) * 2018-10-30 2019-02-01 中译语通科技股份有限公司 一种获取网络数据的方法
CN111310084A (zh) * 2018-12-12 2020-06-19 北京嘀嘀无限科技发展有限公司 页面加载方法、装置、系统、用户终端及可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1846212A (zh) * 2003-09-03 2006-10-11 国际商业机器公司 利用移动设备的离线浏览
CN101690128A (zh) * 2007-06-29 2010-03-31 诺基亚公司 用于下载内容以便离线浏览的系统、方法、设备以及计算机程序产品
CN101997853A (zh) * 2009-08-31 2011-03-30 中兴通讯股份有限公司 数据下载方法及终端
CN102298599A (zh) * 2010-06-28 2011-12-28 宏碁股份有限公司 离线浏览网页方法及其系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020065800A1 (en) * 2000-11-30 2002-05-30 Morlitz David M. HTTP archive file
US8935609B2 (en) * 2007-12-18 2015-01-13 International Business Machines Corporation Method and system to secure the display of advertisements on web browsers
JP2010140347A (ja) * 2008-12-12 2010-06-24 Canon Inc Webサーバ装置、クライアント装置、その制御方法およびプログラム
US8380710B1 (en) * 2009-07-06 2013-02-19 Google Inc. Ordering of ranked documents
US20110154213A1 (en) * 2009-12-18 2011-06-23 Nokia Corporation Method and apparatus for presenting content download progress
US8281232B2 (en) * 2010-04-22 2012-10-02 Rockmelt, Inc. Integrated adaptive URL-shortening functionality
US9823917B2 (en) * 2011-10-20 2017-11-21 Facebook, Inc. Update application user interfaces on client devices
US8656265B1 (en) * 2012-09-11 2014-02-18 Google Inc. Low-latency transition into embedded web view

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1846212A (zh) * 2003-09-03 2006-10-11 国际商业机器公司 利用移动设备的离线浏览
CN101690128A (zh) * 2007-06-29 2010-03-31 诺基亚公司 用于下载内容以便离线浏览的系统、方法、设备以及计算机程序产品
CN101997853A (zh) * 2009-08-31 2011-03-30 中兴通讯股份有限公司 数据下载方法及终端
CN102298599A (zh) * 2010-06-28 2011-12-28 宏碁股份有限公司 离线浏览网页方法及其系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960767A (zh) * 2019-01-25 2019-07-02 深圳壹账通智能科技有限公司 页面显示方法、装置、计算机装置及计算机可读存储介质

Also Published As

Publication number Publication date
US20150095765A1 (en) 2015-04-02
CN103488636A (zh) 2014-01-01
CN103488636B (zh) 2016-04-13
US10262074B2 (en) 2019-04-16

Similar Documents

Publication Publication Date Title
WO2013185554A1 (zh) 一种离线浏览网页的方法及装置、计算机存储介质
CN110688595B (zh) 一种文件在线预览方法、装置、设备和存储介质
US9201634B2 (en) Method and system for controlling user experience with an application on a client device
US20140351341A1 (en) Systems and methods for adding digital content to content management service accounts
US20120331394A1 (en) Batch uploading of content to a web-based collaboration environment
WO2014139300A1 (en) Method and device for loading a plug-in
WO2012167662A1 (zh) 一种epub电子书加载方法及装置
WO2014110978A1 (zh) 预加载浏览器中浏览页面的服务器、客户端、系统和方法
WO2013034094A1 (zh) 一种网页浏览方法、装置及存储介质
WO2015109832A1 (zh) 页面切换方法及电子设备
US8108441B2 (en) Efficient creation, storage, and provision of web-viewable documents
CN104378428A (zh) 一种用于文件下载的方法和装置
CN102955852A (zh) 一种网页资源处理方法、装置及设备
EP3306510A1 (en) Threat detection method and apparatus, and network system
CN112182445A (zh) 一种优化客户端页面性能的方法和装置
CN107566503B (zh) 一种电子阅读对象的自动下载方法、装置和终端设备
CN104111940A (zh) 移动终端及其文件存储方法
CN111314478B (zh) 文件传输方法、装置和计算机设备
EP2898433A1 (en) Method and apparatus for obtaining information
CN105955980B (zh) 一种文件下载设备和方法
CN112182446B (zh) 页面的展示方法、装置、终端设备及计算机可读存储介质
US20140019565A1 (en) Apparatus and method for selecting multiple files in an electronic device
CN114491369A (zh) 一种页面文件获取方法、页面加载方法及装置
WO2012177242A1 (en) Batch uploading of content to a web-based collaboration environment
US20150373080A1 (en) Devices and methods for opening online documents

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: 13803924

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 17/02/2015)

122 Ep: pct application non-entry in european phase

Ref document number: 13803924

Country of ref document: EP

Kind code of ref document: A1