WO2018027827A1 - 根据网址发送网页快照的方法和快照系统 - Google Patents

根据网址发送网页快照的方法和快照系统 Download PDF

Info

Publication number
WO2018027827A1
WO2018027827A1 PCT/CN2016/094720 CN2016094720W WO2018027827A1 WO 2018027827 A1 WO2018027827 A1 WO 2018027827A1 CN 2016094720 W CN2016094720 W CN 2016094720W WO 2018027827 A1 WO2018027827 A1 WO 2018027827A1
Authority
WO
WIPO (PCT)
Prior art keywords
snapshot
web address
webpage
content
unit
Prior art date
Application number
PCT/CN2016/094720
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 张焰焰
Priority to PCT/CN2016/094720 priority Critical patent/WO2018027827A1/zh
Publication of WO2018027827A1 publication Critical patent/WO2018027827A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/40Data acquisition and logging

Definitions

  • the invention belongs to the field of the Internet, and provides a method for sending a webpage snapshot according to a web address and a snapshot system.
  • Website snapshot (English: Web Cache) refers to a copy of the page content recorded in the search engine database.
  • the search engine gives a 'page snapshot' (or other similar name) link in the results, and the user clicks to see the page content in the search engine database.
  • the content in the webpage snapshot can be found as a reference.
  • the purpose of the web page snapshot is 1. When the web page you want to visit does not exist or the connection fails or the opening speed is very slow, you can access the web page by using the web page snapshot. 2. Since the web page snapshot is displayed faster, if you To find some texts that are not very fast, such as technical documents, materials, etc., can be viewed directly through the snapshot of the webpage, which will save a lot of time; 3. If you want to find the location of the keywords in the webpage quickly, and the keywords are red ( Or float any other color), you should use a snapshot; 4, the searched web page may have been updated, if you want to see the web page as before, you can use the snapshot.
  • Regular expressions also known as regular notation, regular notation (English: Regular Expression, often abbreviated as regex, regexp, or RE in code, is a concept in computer science. Regular expressions use a single string to describe and match a series of strings that conform to a syntax rule. In many text editors, regular expressions are often used to retrieve and replace text that conforms to a pattern.
  • the viewing is not intuitive, and the opening of the URL information is inconvenient, and a regular expression by the preset URL is provided.
  • the text information copied by the user is the URL information
  • the website information is obtained according to the website address.
  • a snapshot of a webpage when a user pastes the information of the webpage, takes a snapshot of the webpage, thereby intuitively and quickly understanding the webpage content contained in the webpage according to the webpage.
  • the embodiment of the invention provides a method for sending a webpage snapshot according to a web address, and the purpose is to provide a regular expression by using a preset web address when the user sends a webpage information by chatting, the viewing is not intuitive, and the opening of the webpage information is inconvenient.
  • the text information copied by the user is the web address information
  • the webpage snapshot is obtained according to the web address, and when the user pastes the webpage information, the webpage snapshot is taken out, so as to intuitively and quickly understand the webpage content included in the webpage according to the webpage.
  • a method for sending a web page snapshot according to a web address comprising the following steps:
  • the webpage snapshot is saved according to the text content
  • the embodiment of the invention further provides a snapshot system, comprising:
  • a recording unit for recording a regular expression of a web address
  • a detecting unit configured to detect the copied content when the user invokes the copy instruction
  • a storage unit wherein the input end is respectively connected to the recording unit and the detecting unit output end, and is configured to save the webpage according to the text content when the copied content is text information and the text information conforms to the regular expression of the web address Snapshot
  • the take-out unit has an input end connected to the output end of the save unit, and is used to automatically bring out a URL matching webpage snapshot when the user invokes the paste instruction.
  • the invention adopts a regular expression of a preset web address, and when the text information copied by the user is the web address information, the webpage snapshot is obtained according to the web address, and when the user pastes the webpage information, the webpage snapshot is taken out, thereby intuitively and quickly understanding according to the webpage.
  • the content of the webpage contained in the URL is the content of the webpage contained in the URL.
  • FIG. 1 is a schematic flowchart of a method for sending a webpage snapshot according to a web address according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a snapshot system according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for sending a webpage snapshot according to a web address according to an embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
  • step S100 a regular expression of the web address is recorded.
  • the standard URL regular expression is (http
  • step S101 when the user invokes the copy instruction, the copy content is detected.
  • the copied content is detected based on the above regular expression.
  • step S102 when the copied content is text information and the text information conforms to the regular expression of the web address, the webpage snapshot is saved according to the text content.
  • the technology is prior art, and a snapshot of a webpage corresponding to a web address can be captured according to a web address.
  • step S103 when the user invokes the paste instruction, the web page snapshot is automatically taken out.
  • the invention adopts a regular expression of a preset web address, and when the text information copied by the user is the web address information, the webpage snapshot is obtained according to the web address, and when the user pastes the webpage information, the webpage snapshot is taken out, thereby intuitively and quickly understanding according to the webpage.
  • the content of the webpage contained in the URL is the content of the webpage contained in the URL.
  • FIG. 2 is a schematic structural diagram of a snapshot system according to an embodiment of the present invention, where the snapshot system includes:
  • a recording unit 21 configured to record a regular expression of the web address
  • the detecting unit 22 is configured to detect the copied content when the user invokes the copy instruction
  • a storage unit 23 whose input ends are respectively connected to the output unit of the recording unit 21 and the detecting unit 22, for when the copy content is text information and the text information conforms to the regular expression of the web address, according to the text Content saves a snapshot of the web page;
  • the take-out unit 24 has an input end connected to the output end of the saving unit 23, and is used to automatically bring out a URL matching webpage snapshot when the user invokes the pasting instruction.
  • the working principle is: the recording unit 21 records a regular expression of the web address; the detecting unit 22 detects the copied content when the user invokes the copying instruction; the saving unit 23, when the copied content is text information and the text information meets the URL
  • the regular expression is used, the webpage snapshot is saved according to the text content; the bring-out unit 24 automatically takes out the webpage snapshot when the user invokes the paste instruction.
  • the invention adopts a regular expression of a preset web address, and when the text information copied by the user is the web address information, the webpage snapshot is obtained according to the web address, and when the user pastes the webpage information, the webpage snapshot is taken out, thereby intuitively and quickly understanding according to the webpage.
  • the content of the webpage contained in the URL is the content of the webpage contained in the URL.

Landscapes

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

Abstract

本发明属于互联网领域,提供了一种根据网址发送网页快照的方法以及快照系统,所述方法包括:记录网址的正则表达式;当用户调用复制指令时,检测复制内容;当所述复制内容为文本信息且文本信息符合所述网址的正则表达式时,根据该文本内容保存网页快照;当用户调用黏贴指令时,自动带出所述网页快照。本发明通过预设网址的正则表达式,当用户复制的文本信息是网址信息时,根据网址获得网页快照,当用户黏贴该条网址信息时,带出网页快照,从而根据网址直观快速的了解网址包含的网页内容。

Description

根据网址发送网页快照的方法和快照系统 技术领域
本发明属于互联网领域,提供了一种根据网址发送网页快照的方法以及快照系统。
背景技术
网站快照(英语:Web cache)指的是搜索引擎数据库中纪录的页面内容拷贝。搜索引擎在结果中给出'网页快照'(或其他类似称呼)链接,用户点击后看到的就是搜索引擎数据库中的页面内容。用户因为某种原因不能访问原始网页时,可以查出网页快照里的内容作为参考。
网页快照的用途是1、当你要访问的网页不存在或连接失效或者打开速度极慢时,你可以通过使用网页快照来访问这个网页;2、由于网页快照显示的速度比较快,因此如果你要查找一些更新不是很快的文字,比如技术文档,资料等,可以直接通过网页快照来查看,会节省很多时间;3、如果你希望很快找到网页中关键词的位置,并且关键词飘红(或飘什么别的颜色),则应使用快照;4、搜索到的网页可能已经更新,如果想看到网页从前的样子,可以使用快照。
正则表达式,又称正规表示法、常规表示法(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式使用单个字符串来描述、匹配一系列符合某个句法规则的字符串。在很多文本编辑器里,正则表达式通常被用来检索、替换那些符合某个模式的文本。
在用户聊天时,很多时候需要分享网址信息,例如淘宝物品链接,新闻链接,但是在聊天软件发送这些网址链接时,接收放看到的只是链接字符串,需要用户复制链接到浏览器打开,操作不方便,而且不直观,而且当用户处于不同网段时,有可能会有网址访问慢,甚至打不开的情况。
综上,需要针对用户聊天发送网址信息时,查看不直观,打开网址信息不方便的情况,提供一种通过预设网址的正则表达式,当用户复制的文本信息是网址信息时,根据网址获得网页快照,当用户黏贴该条网址信息时,带出网页快照,从而根据网址直观快速的了解网址包含的网页内容。
技术问题
本发明实施例提供了一种根据网址发送网页快照的方法,目的在于针对用户聊天发送网址信息时,查看不直观,打开网址信息不方便的情况,提供一种通过预设网址的正则表达式,当用户复制的文本信息是网址信息时,根据网址获得网页快照,当用户黏贴该条网址信息时,带出网页快照,从而根据网址直观快速的了解网址包含的网页内容。
技术解决方案
本发明是这样实现的:一种根据网址发送网页快照的方法,包括以下步骤:
记录网址的正则表达式;
当用户调用复制指令时,检测复制内容;
当所述复制内容为文本信息且文本信息符合所述网址的正则表达式时,根据该文本内容保存网页快照;
当用户调用黏贴指令时,自动带出所述网页快照。
本发明实施例还提供了一种快照系统,包括:
记录单元,检测单元,保存单元,带出单元,其中:
记录单元,用于记录网址的正则表达式;
检测单元,用于当用户调用复制指令时,检测复制内容;
保存单元,其输入端分别与所述记录单元及所述检测单元输出端连接,用于当所述复制内容为文本信息且文本信息符合所述网址的正则表达式时,根据该文本内容保存网页快照;
带出单元,其输入端与所述保存单元输出端连接,用于当用户调用黏贴指令时,自动带出网址匹配网页快照。
有益效果
本发明通过预设网址的正则表达式,当用户复制的文本信息是网址信息时,根据网址获得网页快照,当用户黏贴该条网址信息时,带出网页快照,从而根据网址直观快速的了解网址包含的网页内容。
附图说明
图1 是本发明实施例提供的一种根据网址发送网页快照的方法的流程示意图;
图2 是本发明实施例提供的快照系统的结构示意图。
本发明的实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
图1是发明实施例提供的一种根据网址发送网页快照的方法的流程示意图,为了便于说明,只示出了与本发明实施例相关的部分。
在步骤S100中,记录网址的正则表达式。
标准的网址正则表达式为(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?。
在步骤S101中,当用户调用复制指令时,检测复制内容。
根据上述正则表达式检测复制内容。
在步骤S102中,当所述复制内容为文本信息且文本信息符合所述网址的正则表达式时,根据该文本内容保存网页快照。
该技术为现有技术,可以根据网址抓取到网址对应网页快照。
在步骤S103中,当用户调用黏贴指令时,自动带出所述网页快照。
本发明通过预设网址的正则表达式,当用户复制的文本信息是网址信息时,根据网址获得网页快照,当用户黏贴该条网址信息时,带出网页快照,从而根据网址直观快速的了解网址包含的网页内容。
图2是本发明实施例提供的快照系统的结构示意图,该快照系统包括:
记录单元21,检测单元22,保存单元23,带出单元24,其中:
记录单元21,用于记录网址的正则表达式;
检测单元22,用于当用户调用复制指令时,检测复制内容;
保存单元23,其输入端分别与所述记录单元21及所述检测单元22输出端连接,用于当所述复制内容为文本信息且文本信息符合所述网址的正则表达式时,根据该文本内容保存网页快照;
带出单元24,其输入端与所述保存单元23输出端连接,用于当用户调用黏贴指令时,自动带出网址匹配网页快照。
其工作原理是:记录单元21,记录网址的正则表达式;检测单元22,当用户调用复制指令时,检测复制内容;保存单元23,当所述复制内容为文本信息且文本信息符合所述网址的正则表达式时,根据该文本内容保存网页快照;带出单元24,当用户调用黏贴指令时,自动带出所述网页快照。
本发明通过预设网址的正则表达式,当用户复制的文本信息是网址信息时,根据网址获得网页快照,当用户黏贴该条网址信息时,带出网页快照,从而根据网址直观快速的了解网址包含的网页内容。
以上仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (2)

  1. 一种根据网址发送网页快照的方法,其特征在于,所述方法包括如下步骤:
    记录网址的正则表达式;
    当用户调用复制指令时,检测复制内容;
    当所述复制内容为文本信息且文本信息符合所述网址的正则表达式时,根据该文本内容保存网页快照;
    当用户调用黏贴指令时,自动带出所述网页快照。
  2. 一种快照系统,其特征在于,所述快照系统包括:
    记录单元,检测单元,保存单元,带出单元,其中:
    记录单元,用于记录网址的正则表达式;
    检测单元,用于当用户调用复制指令时,检测复制内容;
    保存单元,其输入端分别与所述记录单元及所述检测单元输出端连接,用于当所述复制内容为文本信息且文本信息符合所述网址的正则表达式时,根据该文本内容保存网页快照;
    带出单元,其输入端与所述保存单元输出端连接,用于当用户调用黏贴指令时,自动带出网址匹配网页快照。
PCT/CN2016/094720 2016-08-11 2016-08-11 根据网址发送网页快照的方法和快照系统 WO2018027827A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/094720 WO2018027827A1 (zh) 2016-08-11 2016-08-11 根据网址发送网页快照的方法和快照系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/094720 WO2018027827A1 (zh) 2016-08-11 2016-08-11 根据网址发送网页快照的方法和快照系统

Publications (1)

Publication Number Publication Date
WO2018027827A1 true WO2018027827A1 (zh) 2018-02-15

Family

ID=61161668

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/094720 WO2018027827A1 (zh) 2016-08-11 2016-08-11 根据网址发送网页快照的方法和快照系统

Country Status (1)

Country Link
WO (1) WO2018027827A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102255A (zh) * 2007-08-13 2008-01-09 腾讯科技(深圳)有限公司 对包括超链接的即时通讯信息的处理方法及装置
CN102098234A (zh) * 2010-12-15 2011-06-15 百度在线网络技术(北京)有限公司 基于即时通信消息中超链接提供目标内容的方法与设备
CN102299869A (zh) * 2011-08-29 2011-12-28 上海量明科技发展有限公司 即时通信中对网络链接进行存储的方法、客户端及系统
CN104298744A (zh) * 2014-10-10 2015-01-21 广州三星通信技术研究有限公司 分享、获取网页内容的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102255A (zh) * 2007-08-13 2008-01-09 腾讯科技(深圳)有限公司 对包括超链接的即时通讯信息的处理方法及装置
CN102098234A (zh) * 2010-12-15 2011-06-15 百度在线网络技术(北京)有限公司 基于即时通信消息中超链接提供目标内容的方法与设备
CN102299869A (zh) * 2011-08-29 2011-12-28 上海量明科技发展有限公司 即时通信中对网络链接进行存储的方法、客户端及系统
CN104298744A (zh) * 2014-10-10 2015-01-21 广州三星通信技术研究有限公司 分享、获取网页内容的方法和装置

Similar Documents

Publication Publication Date Title
US9053086B2 (en) Electronic document source ingestion for natural language processing systems
WO2014200228A1 (ko) 통합 데이터 객체 관리 시스템 및 그 방법
WO2018027827A1 (zh) 根据网址发送网页快照的方法和快照系统
WO2017128357A1 (zh) 基于大数据的网页抓取方法及系统
WO2018027489A1 (zh) 文本路径打开文件位置的方法以及文件系统
JP3312593B2 (ja) ホストコンピュータ上の言語コンパイラが出力する翻訳リストのhtml化による管理方式
Möller et al. semiBlog—Semantic Publishing of Desktop Data
WO2018027743A1 (zh) 保存电脑进度的方法和保存系统
Kenney The Temple of Iconoclasts
WO2018027828A1 (zh) 发送网页快照时的专利信息推送方法和快照系统
WO2018027829A1 (zh) 快照发送技术的使用数据反馈方法和快照系统
Schon Ua Nattgiasdottir, yo soy de Reikiavik.(Ua Matthiasdottir, I Am from Reykjavik).
Flexman The Professor of Light.
Nurnberg The right approach to rights in China: Literary agent Andrew Nurnberg on Chinese publishers' growing appetite for translations.(International News).
Schon Diccionario basico de la lengua espanola.
Boyer The New York Intellectuals: Irving Howe, Irving Kristol, Daniel Bell, Nathan Glazer.
Quinn African American Women Writers of the Nineteenth Century.(Reference on the Web: Digitizing Black History)
Carpenter Regarding Children: A New Respect for Childhood and Families.
Pataki KOPI-an online plagiarism search and information portal
WO2018023650A1 (zh) 根据手机推送书籍的方法以及推送系统
Sanchez Julie Stephens 1998: Anti-Disciplinary Protest: Sixties Radicalism and Postmodernism
Mazzaferro Second-generation FDDI will speed up multimedia.
ALT Statement of intent
WO2018023430A1 (zh) 一种根据目的显示搜索结果时的信息推送方法以及搜索引擎
WO2018027850A1 (zh) 根据程序类型推送音乐的方法和推送系统

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16912282

Country of ref document: EP

Kind code of ref document: A1