CN102789460A - Method and device for obtaining title tag corresponding to short uniform resource locator (URL) - Google Patents

Method and device for obtaining title tag corresponding to short uniform resource locator (URL) Download PDF

Info

Publication number
CN102789460A
CN102789460A CN2011101301695A CN201110130169A CN102789460A CN 102789460 A CN102789460 A CN 102789460A CN 2011101301695 A CN2011101301695 A CN 2011101301695A CN 201110130169 A CN201110130169 A CN 201110130169A CN 102789460 A CN102789460 A CN 102789460A
Authority
CN
China
Prior art keywords
short url
corresponding page
obtains
page title
title
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011101301695A
Other languages
Chinese (zh)
Inventor
范禹
王波
蒋珍
闫清岭
吕旭辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN2011101301695A priority Critical patent/CN102789460A/en
Publication of CN102789460A publication Critical patent/CN102789460A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for obtaining a title tag corresponding to a short URL. The method includes a back stage service module calls an interface of a search engine to obtain a title tag corresponding to a short URL, if the obtaining succeeds, the title tag corresponding to the short URL is stored, and if the obtaining fails, local service is called to obtain the title tag corresponding to the short URL. The invention further discloses a device for obtaining the title tag corresponding to the short URL. Aiming at the short URLs in microblog messages, the corresponding title tags are obtained at the back stage, the tags are displayed in front end pages, and good experience can be provided for customers accordingly.

Description

Obtain the method and the device of the corresponding page title of short URL
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of ankle one URLs (Uniform/Universal Resource Locator, URL) method of corresponding page title and device of obtaining.
Background technology
Along with development of internet technology; Microblogging is rapid at Chinese development, and the user can share the URL address easily in microblogging, still; Because Twitter message is limited in 140 words; And a large amount of URL address sizes reach tens word lengths, and this has just limited the length that every message of user can be imported content, is unfavorable for user experience.
In the prior art, microblogging can provide automatically the service that will long URL converts short URL into, comes corresponding increase user can import the length of content; And; The microblogging front end page tends to when the short URL of one of user's mouse-pointing, eject a floating layer, the corresponding long URL of the short URL of prompting.
But; Both made and can obtain the corresponding long URL of short URL, the user also can't be known what page of this weak point URL sensing, thereby can't judge whether interested in and whether will open this page the content of pages; Find behind the page to have no interest and close again if open, can influence user experience.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method and device that obtains the corresponding page title of short URL, can improve user experience to the title of the corresponding page of the short URL of user prompt.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method of obtaining the corresponding page title of short uniform resource position mark URL, comprising: the interface of backstage service module calling search engine obtains short URL corresponding page title, obtains success, then stores the said short URL corresponding page title that obtains; Obtain failure, then call local service and obtain said short URL corresponding page title.
The interface of said backstage service module calling search engine obtains before the short URL corresponding page title, and this method also comprises: the user generates said short URL at the front end page; Front end page notice backstage service module obtains said short URL corresponding page title.
Said backstage service module calls local service and obtains said short URL corresponding page title and be: the backstage service module calls local service and grasps short URL corresponding page; After grabbing the page, the page that grasps is carried out text analyzing, convert the coded format of the page that grasps into the UTF-8 coded format, and analyze page structure, from the page, get access to page title.
This method also comprises: the backstage service module calls local service and obtains short URL corresponding page title failure, then behind the certain interval of time, obtains said short URL corresponding page title once more.
This method also comprises: the user is during with the short URL of mouse-pointing, and service module obtains and shows said short URL corresponding page title the front end page from the backstage.
A kind of device that obtains the corresponding page title of short URL comprises the backstage service module, and the interface that is used for calling search engine obtains short URL corresponding page title, obtains success, then stores the said short URL corresponding page title that obtains; Obtain failure, then call local service and obtain said short URL corresponding page title.
This device also comprises the front end page, is used for after the user generates short URL, and notice backstage service module obtains said short URL corresponding page title.
Said backstage service module calls local service and obtains short URL corresponding page title and be: the backstage service module calls local service and grasps short URL corresponding page; After grabbing the page, the page that grasps is carried out text analyzing, convert the coded format of the page that grasps into the UTF-8 coded format, and analyze page structure, from the page, get access to page title.
Said backstage service module also is used for after calling local service and obtaining the failure of short URL corresponding page title, and certain interval of time obtains said short URL corresponding page title again.
The said front end page also is used for the user during with the short URL of mouse-pointing, and service module obtains and shows said short URL corresponding page title from the backstage.
The present invention obtains the method and the device of the corresponding page title of short URL, and the interface of backstage service module calling search engine obtains short URL corresponding page title, obtains success, then stores the said short URL corresponding page title that obtains; Obtain failure, then call local service and obtain said short URL corresponding page title.The present invention is directed to the short-and-medium URL of Twitter message,, in the front end page, show this title, thereby better experience for the user through get access to the title of its corresponding page on the backstage.
Description of drawings
The method flow synoptic diagram of Fig. 1 corresponding page title of short URL for the present invention obtains.
Embodiment
The present invention proposes a kind of method that combines search engine and local page analysis gripping tool to combine and realize that short URL page title grasps.The method flow synoptic diagram of Fig. 1 corresponding page title of short URL for the present invention obtains, as shown in Figure 1, this method comprises:
Step 101: the user is after the front end page generates short URL, and front end page notice backstage service module obtains said short URL corresponding page title.
Step 102: the interface of backstage service module calling search engine (like the SOSO search engine) obtains said short URL corresponding page title, obtains failure, forwards step 103 to; Obtain success, forward step 104 to.
Here, have necessarily and delay because search engine is included the page, if when backstage service module calling search engine is obtained short URL corresponding page title, search engine is not included this weak point URL corresponding page as yet, then can cause obtaining failure.
Step 103: the backstage service module calls local service and obtains said short URL corresponding page title.
General, this step specifically comprises: the backstage service module calls local service and grasps short URL corresponding page; After grabbing the page, the page that grasps is carried out text analyzing, convert the coded format of the page that grasps into the UTF-8 coded format, and analyze page structure, from the page, get access to page title.
Step 104: the said short URL corresponding page title that service module storage in backstage is obtained.
Need to prove, obtain short URL corresponding page title failure, then, behind the general certain interval of time, obtain short URL corresponding page title once more in order to reduce the pressure of backstage service module if the backstage service module calls local service.
Need to prove, behind the short URL corresponding page of the backstage service module storage title, if the user with the said short URL of mouse-pointing, then the front end page can obtain and shows said short URL corresponding page title from the backstage service module.
The present invention also correspondingly proposes a kind of device that obtains the corresponding page title of short URL; This device comprises the backstage service module; The interface that is used for calling search engine obtains short URL corresponding page title, obtains success, then stores the said short URL corresponding page title that obtains; Obtain failure, then call local service and obtain said short URL corresponding page title.
This device also comprises the front end page, is used for after the user generates short URL, and notice backstage service module obtains said short URL corresponding page title.
Said backstage service module calls local service and obtains short URL corresponding page title and be:
The local service of calling the backstage service module grasps short URL corresponding page;
After grabbing the page, the page that grasps is carried out text analyzing, convert the coded format of the page that grasps into the UTF-8 coded format, and analyze page structure, from the page, get access to page title.
Said backstage service module also is used for after calling local service and obtaining the failure of short URL corresponding page title, and certain interval of time obtains said short URL corresponding page title again.
The said front end page also is used for the user during with the short URL of mouse-pointing, and service module obtains and shows said short URL corresponding page title from the backstage.
Its invention through get access to the title of its corresponding page on the backstage, shows this title to the short-and-medium URL of Twitter message in the front end page, better experience for the user; And the present invention can improve the efficient that grasps short URL page title, makes microblogging can get access to the page title that the user imports 90%~95% address, promotes user experience.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.

Claims (10)

1. method of obtaining the corresponding page title of short uniform resource position mark URL is characterized in that this method comprises:
The interface of backstage service module calling search engine obtains short URL corresponding page title, obtains success, then stores the said short URL corresponding page title that obtains; Obtain failure, then call local service and obtain said short URL corresponding page title.
2. the method for obtaining the corresponding page title of short URL according to claim 1 is characterized in that the interface of said backstage service module calling search engine obtains before the short URL corresponding page title, and this method also comprises:
The user generates said short URL at the front end page;
Front end page notice backstage service module obtains said short URL corresponding page title.
3. the method for obtaining the corresponding page title of short URL according to claim 1 is characterized in that, said backstage service module calls local service and obtains said short URL corresponding page title and be:
The local service of calling the backstage service module grasps short URL corresponding page;
After grabbing the page, the page that grasps is carried out text analyzing, convert the coded format of the page that grasps into the UTF-8 coded format, and analyze page structure, from the page, get access to page title.
4. according to each described method of obtaining the corresponding page title of short URL of claim 1 to 3; It is characterized in that; This method also comprises: the backstage service module calls local service and obtains short URL corresponding page title failure; Then behind the certain interval of time, obtain said short URL corresponding page title once more.
5. according to each described method of obtaining the corresponding page title of short URL of claim 1 to 3; It is characterized in that; This method also comprises: the user is during with the short URL of mouse-pointing, and service module obtains and shows said short URL corresponding page title the front end page from the backstage.
6. device that obtains the corresponding page title of short URL; It is characterized in that this device comprises the backstage service module, the interface that is used for calling search engine obtains short URL corresponding page title; Obtain success, then store the said short URL corresponding page title that obtains; Obtain failure, then call local service and obtain said short URL corresponding page title.
7. the device that obtains the corresponding page title of short URL according to claim 6 is characterized in that this device also comprises the front end page, is used for after the user generates short URL, and notice backstage service module obtains said short URL corresponding page title.
8. the device that obtains the corresponding page title of short URL according to claim 6 is characterized in that, said backstage service module calls local service and obtains short URL corresponding page title and be:
The local service of calling the backstage service module grasps short URL corresponding page;
After grabbing the page, the page that grasps is carried out text analyzing, convert the coded format of the page that grasps into the UTF-8 coded format, and analyze page structure, from the page, get access to page title.
9. according to each described device that obtains the corresponding page title of short URL of claim 6 to 8; It is characterized in that; Said backstage service module also is used for after calling local service and obtaining the failure of short URL corresponding page title, and certain interval of time obtains said short URL corresponding page title again.
10. according to each described device that obtains the corresponding page title of short URL of claim 6 to 8; It is characterized in that; The said front end page also is used for the user during with the short URL of mouse-pointing, and service module obtains and shows said short URL corresponding page title from the backstage.
CN2011101301695A 2011-05-19 2011-05-19 Method and device for obtaining title tag corresponding to short uniform resource locator (URL) Pending CN102789460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101301695A CN102789460A (en) 2011-05-19 2011-05-19 Method and device for obtaining title tag corresponding to short uniform resource locator (URL)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101301695A CN102789460A (en) 2011-05-19 2011-05-19 Method and device for obtaining title tag corresponding to short uniform resource locator (URL)

Publications (1)

Publication Number Publication Date
CN102789460A true CN102789460A (en) 2012-11-21

Family

ID=47154864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101301695A Pending CN102789460A (en) 2011-05-19 2011-05-19 Method and device for obtaining title tag corresponding to short uniform resource locator (URL)

Country Status (1)

Country Link
CN (1) CN102789460A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519084A (en) * 2013-09-27 2015-04-15 华为终端有限公司 Method and device for displaying messages
CN104717185A (en) * 2013-12-16 2015-06-17 腾讯科技(北京)有限公司 Display and response method, device, server and system for short uniform resource locator
CN106548068A (en) * 2016-10-31 2017-03-29 珠海市魅族科技有限公司 Short website information display system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082917A (en) * 2006-06-02 2007-12-05 千橡世纪科技发展(北京)有限公司 Method and apparatus for rapid previewing summary of web page content
CN101273347A (en) * 2005-09-26 2008-09-24 微软公司 Preview information for web-browsing
CN101355587A (en) * 2008-09-17 2009-01-28 杭州华三通信技术有限公司 Method and apparatus for obtaining URL information as well as method and system for implementing searching engine
US20100274775A1 (en) * 2009-04-24 2010-10-28 Paul Fontes System and method of displaying related sites

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273347A (en) * 2005-09-26 2008-09-24 微软公司 Preview information for web-browsing
CN101082917A (en) * 2006-06-02 2007-12-05 千橡世纪科技发展(北京)有限公司 Method and apparatus for rapid previewing summary of web page content
CN101355587A (en) * 2008-09-17 2009-01-28 杭州华三通信技术有限公司 Method and apparatus for obtaining URL information as well as method and system for implementing searching engine
US20100274775A1 (en) * 2009-04-24 2010-10-28 Paul Fontes System and method of displaying related sites

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519084A (en) * 2013-09-27 2015-04-15 华为终端有限公司 Method and device for displaying messages
CN104519084B (en) * 2013-09-27 2017-12-05 华为终端有限公司 A kind of method and device of display information
CN104717185A (en) * 2013-12-16 2015-06-17 腾讯科技(北京)有限公司 Display and response method, device, server and system for short uniform resource locator
CN104717185B (en) * 2013-12-16 2019-03-26 腾讯科技(北京)有限公司 Displaying response method, device, server and the system of short uniform resource locator
CN106548068A (en) * 2016-10-31 2017-03-29 珠海市魅族科技有限公司 Short website information display system and method

Similar Documents

Publication Publication Date Title
CN104077341B (en) The method and apparatus that keyword automatically replies mapping relations is generated in instant messaging
US20150156154A1 (en) Storage and retrieval of electronic messages using linked resources
US20140330860A1 (en) Reminding Method, Terminal, Cloud Server, and System
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
RU2009104043A (en) METHOD AND SYSTEM FOR SIGNING SHORT MESSAGES AND DEVICE FOR PROCESSING SHORT MESSAGES
CA3061623C (en) File sending in instant messaging applications
CN104111935A (en) Server and microblog pushing method and system
CN104010035A (en) Method and system for application program distribution
CN103186533A (en) Method and device for uploading picture in comment or reply
CN102110168A (en) Method and device for extending functions of mobile terminal browser
CN103297498A (en) Relevant content pushing method based on mobile phone client side
US9465814B2 (en) Annotating search results with images
CN103312523A (en) Business reminding message pushing method, device and system
JP2020522043A5 (en)
CN110855555A (en) Mail sending method, device, equipment and computer readable storage medium
KR101287371B1 (en) Method and Device for Collecting Web Contents and Computer-readable Recording Medium for the same
CN102789460A (en) Method and device for obtaining title tag corresponding to short uniform resource locator (URL)
CN104375997A (en) Method and device for adding note information to instant messaging audio information
CN101777067B (en) System for recognizing and managing web page contents for mobile communication equipment terminals
CN106156262A (en) A kind of search information processing method and system
CN103493047A (en) Dictionary database update device, input system, input method, and terminal
CN105279159A (en) Contact prompting method and device
CN105095180A (en) Chinese name broadcasting method and device
CN103853777A (en) Method and device for accessing websites through keywords
CN104881453B (en) A kind of method and apparatus identifying type of webpage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121121