CN106951429A - Strengthen method, browser and the equipment of webpage comment display - Google Patents

Strengthen method, browser and the equipment of webpage comment display Download PDF

Info

Publication number
CN106951429A
CN106951429A CN201610012529.4A CN201610012529A CN106951429A CN 106951429 A CN106951429 A CN 106951429A CN 201610012529 A CN201610012529 A CN 201610012529A CN 106951429 A CN106951429 A CN 106951429A
Authority
CN
China
Prior art keywords
comment
web page
tree
page contents
display
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.)
Granted
Application number
CN201610012529.4A
Other languages
Chinese (zh)
Other versions
CN106951429B (en
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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer Technology 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 Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201610012529.4A priority Critical patent/CN106951429B/en
Publication of CN106951429A publication Critical patent/CN106951429A/en
Application granted granted Critical
Publication of CN106951429B publication Critical patent/CN106951429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Abstract

The present invention relates to for strengthening method, browser and the equipment of webpage comment display.This method comprises the following steps:Extract web page contents and multiple comment datas corresponding to the web page contents;According to the comment time sequencing and reply corresponding relation and reply corresponding relation priority algorithm of the multiple comment data, construction comment tree, the comment tree is using the web page contents as root, using the multiple comment data as each node;And while the web page contents are shown, the multiple comment data is shown with animation according to the depth-first traversal algorithm of the comment tree.The display that the present invention can comment on webpage becomes lively, so as to improve the reading experience of user, it is adaptable to web browser.

Description

Strengthen method, browser and the equipment of webpage comment display
Technical field
The present invention relates to web browser, and in particular to for strengthening the method for webpage comment display, browsing Device and equipment.
Background technology
Internet becomes increasingly popular so that the life style of people there occurs huge change.Domestic consumer Participation in internet news website is accustomed to, based on the news issued with reading website editor by Step is changed into makes comments when seeing news, or even some users are changed into see comment, reply comment Based on.
At present, most news websites still show the comment of user and to comment in a static manner Reply.Generally, due to comment quantity is more, comment reply between nested hierarchical relationship, Web page developer can only will comment on the end for being placed on body or need to open another webpage, And need to show substantial amounts of comment by paging.Some comments are particular for special in web page contents Attribute sentence, and comment on and do not shown together with text, user may need when reading such comment on Page turning or rolling webpage look for specific text sentence, bring inconvenience.
Domestic consumer may have the demand for reading comment in the lump, or even some use in browsed web content The main interest at family is that reading, and other people comment on and interact reply.Interactive reply is more much more multiple Miscellaneous, the plane typesetting of current static type more can not meet the demand of user.
As shown in figure 1, shared up to 26620 follow-up posts of certain news (commenting on) on Netease's news website. These comments can only be placed on other webpage by Web page developer, and user is by clicking on shown webpage on the left of Fig. 1 " follow-up 26620 " hyperlink in content can open webpage shown in right side, between some of which comment Form interaction reply relation.When this reply is more, the complexity of web displaying and the reading of user Difficulty can all increase.
The content of the invention
To overcome above mentioned problem, the present invention provides a kind of webpage that strengthens and comments on the technology shown, enables to The display of comment becomes lively.
It is used to strengthen the method for webpage comment display, the party there is provided a kind of according to an aspect of the present invention Method comprises the following steps:Extract web page contents and multiple comment datas corresponding to the web page contents;According to The comment time sequencing and reply corresponding relation and reply corresponding relation of the multiple comment data are preferentially calculated Method, construction comment tree, the comment tree is using the web page contents as root, using the multiple comment data as each Node;And show the web page contents while, according to the depth-first traversal algorithm of the comment tree with Animation shows the multiple comment data.
Preferably, can be with each section with the comment tree in the step of showing the multiple comment data The corresponding animation form of feature of point shows corresponding comment data, and the feature of each node can include Commonly, many replies, deep reply, many people support/opposition, group of composition certain effects etc..So, with phase The animation form answered emphasizes that the node of different characteristic is commented on, and the display of comment can become lively solid.
Alternatively, in the step of construction comment tree, duplicate removal, essence can be carried out to the multiple comment data Comment tree is reconstructed after letter processing.So, the display of comment can become succinct, the reading experience of user More preferably.
It is used to strengthen the browser of webpage comment display there is provided a kind of according to another aspect of the present invention, The browser includes:Extraction element, for extracting web page contents and being commented corresponding to the multiple of the web page contents By data;Processing unit, for the pass corresponding with reply of the comment time sequencing according to the multiple comment data System and reply corresponding relation priority algorithm, construction comment tree, the comment tree using the web page contents as root, Using the multiple comment data as each node;And display device, for showing the web page contents Meanwhile, the multiple comment data is shown with animation according to the depth-first traversal algorithm of the comment tree.
It is used to strengthen the equipment of webpage comment display there is provided a kind of according to a further aspect of the invention, should Equipment includes:Memory, web page contents downloaded for storing from network and corresponding to the web page contents Multiple comment datas;Processor, for extracting the web page contents and the multiple comment from the memory Data, and the comment time sequencing and reply corresponding relation according to the multiple comment data and reply pair Relation preference algorithm is answered, construction comment tree, the comment tree is commented using the web page contents as root with the multiple It is each node by data;And display, wherein, the processor controls the display so that the display Device is shown while the web page contents are shown according to the depth-first traversal algorithm of the comment tree with animation The multiple comment data.
The present invention with animation while web page contents are shown by showing multiple comment datas so that comment Display becomes lively, improves the reading experience of user.
Brief description of the drawings
By the way that the illustrative embodiments of the present invention are described in more detail with reference to accompanying drawing, the present invention Feature and advantage will be apparent, wherein:
Fig. 1 is the screenshot capture for the webpage comment display mode for illustrating prior art;
Fig. 2 is to be used to strengthen the flow chart of the method for webpage comment display according to an embodiment of the invention;
Fig. 3 is to be used to strengthen the structure chart of the equipment of webpage comment display according to an embodiment of the invention;
Fig. 4 is the screenshot capture of the display mode for certain news web page comment for illustrating prior art;And
Fig. 5 is the display mode that the illustration contrasted with Fig. 4 is commented on according to the news web page of the present invention Screenshot capture.
Embodiment
The preferred embodiments of the present invention are more fully described below with reference to accompanying drawings.
Flows of the Fig. 2 exemplified with the method for being used to strengthen webpage comment display according to an embodiment of the invention.
In step S21, web page contents and multiple comment datas corresponding to the web page contents are extracted.Webpage Content and corresponding comment data are downloaded from network (such as internet), are generally temporarily stored in In local storage, it is extracted when needed.
In step S22, comment time sequencing and reply corresponding relation and reply according to multiple comment datas Corresponding relation priority algorithm, construction comment tree.The comment tree is using web page contents as root, with multiple comment datas For each node.Commented it is alternatively possible to be reconstructed after multiple comment datas are carried out with duplicate removal, processing is simplified By tree, make it that constructed comment tree is succinct.
Some in the multiple comment data are probably the comment directly against web page contents, and some are probably then Reply to other comments.In the comment tree constructed, directly against multiple comment datas of web page contents According to comment time sequencing arrangement, also pressed as multiple comment datas of the direct reply to same comment data According to comment time sequencing arrangement, and it is used as lower floor's comment data then structure of the direct reply to upper strata comment data Into the child node of the upper strata comment data (i.e. father node).
For example, by step S22, web page contents and corresponding all comments are likely to form following structure Comment tree:
Web page contents
A is commented on
B is commented on
The D comments replied " B comments "
The E comments replied " D comments "
The F comments replied " B comments "
C is commented on
The G comments replied " C comments "
……
In step S23, while web page contents are shown, according to the depth-first traversal algorithm of the comment tree Multiple comment datas are shown with animation.For the comment tree example of said structure, according to the depth of comment tree First traversal algorithm, the display order of each comment data is A-B-D-E-F-C-G ....This Sample, user read web page contents when, can see on same webpage with animation show successively it is many Individual comment data.
For example, Fig. 4 is contrasted exemplified with the display mode of certain news web page comment of prior art Ground, Fig. 5 is exemplified with the display mode commented on according to the news web page of the present invention.As shown in figure 5, Show web page contents while, for the web page contents multiple comments one by one in order with animation Form is shown on the webpage.
Preferably, can be with animation corresponding with the feature of each node of the comment tree in step S23 Form shows corresponding comment data.The feature of each node can include common, many replies, return deeply Multiple, many people's support/oppositions, the group for constituting certain effects etc..
For example, according to the feature of each node in comment tree, each node can be classified as:Ordinary node, Many recovery of node (many people are interested), deep recovery of node (root of some topic), many people support/anti- To node and constitute certain effects node cluster (for example region attack, from ancient times second floor go out XX). According to node diagnostic classification, it is possible to implement different animation display modes:Ordinary node, will in chronological order Show as early as possible;Many recovery of node and deep recovery of node, it will rest on screen are strong by animation child node Adjust the importance of this node;The node of many people's support/oppositions, by with the speed warp slower than ordinary node Cross screen, and given and emphasize by the animation effect of support/opposition;The node cluster of certain effects is constituted, will Shown in painted eggshell form.So, each comment is classified by node diagnostic, and is shown using corresponding animation Mode is emphasized and (emphasizes common concern, emphasize topic root, emphasize to support, emphasize opposition etc.), from And make it that the display of each comment becomes lively solid.
Knots of the Fig. 3 exemplified with the equipment 30 for being used to strengthen webpage comment display according to an embodiment of the invention Structure.Equipment 30 can perform the method for strengthening webpage comment display described above by reference to Fig. 2.Such as Shown in Fig. 3, equipment 30 includes memory 31, processor 32 and display 33.
Memory 31 can store the web page contents downloaded from network and corresponding to many of the web page contents Individual comment data.Processor 32 can extract the web page contents and multiple comment datas from memory 31, And the comment time sequencing according to the multiple comment data is corresponding with reply corresponding relation and reply to close It is priority algorithm, construction comment tree.The comment tree is using the web page contents as root, with the multiple comment number According to for each node.Alternatively, processor 32 can carry out duplicate removal to multiple comment datas, simplify place Comment tree is reconstructed after reason, make it that constructed comment tree is succinct.Moreover, processor 32 can be controlled Make the display 33 so that display 33 is while the web page contents are shown, according to the comment tree Depth-first traversal algorithm shows the multiple comment data with animation.
Preferably, processor 32 can control display 33 so that display 33 with the comment tree The corresponding animation form of feature of each node shows corresponding comment data.The feature of each node can With including common, many replies, deep reply, many people support/opposition, the group for being constituted certain effects etc..
It is also possible to be embodied as a kind of computer program, the computer program includes being used to perform The computer program code instruction of each step of the above method of the present invention.Or, the present invention can also be realized For a kind of computer program product, the computer program product includes computer-readable medium, in the computer The computer program of each step for the above method being stored with computer-readable recording medium for performing the present invention.
For example, the present invention can be implemented as in the comment management module in the browser that runs in a computer Display enhancing submodule.Except display enhancing submodule, the comment management module can also include detection injection Submodule, loading submodule, prompting submodule.
Detection injection submodule carries out easy detection to determine whether to the net when there is new web page loading completion Page is applicable the present invention, and will show that enhancing submodule is injected into webpage and performs ring when judging applicable of the invention Border, otherwise exits comment management module.For example, detection injection submodule can scan webpage, if in webpage In find keyword " comment ", " comment " or " follow-up ", then judge can be applicable the present invention.
Submodule is loaded according to domain name and web page address feature, whether decision needs additionally for current web page Load private file.For example, domain name, net can be contained in the display enhancer block code being injected into Page address feature, private file mapping table, for example:
According to above code, loading submodule determines to support the comment of 2 channels of Sina website and 1 channel of Netease's net Display enhancing, wherein Sina News channel need extra loading one special Comments-improve-news-sina-v1.0.js files, other channels use general file.
Prompting submodule shows a prompting interface to point out this webpage of user can to support enhanced on webpage Comment display.User can select to open by clicking on " unlatching " or " closing " in the prompting interface With or do not enable comment show enhanced scheme.If user's selection is not enabled, display enhancing submodule is not run Block, without causing other influences to webpage.
Display enhancing submodule is used to perform each step above by reference to Fig. 2 method of the present invention described, can So that including extraction assembly, processing assembly, display module, these components correspond respectively to each step of methods described Rapid S21~S23.
It will be appreciated by those skilled in the art that above-mentioned various illustrative logical blocks, module, component can be by It is embodied as the combination of electronic hardware, computer software or both.
Embodiments of the invention are the foregoing described, described above is only illustrative, and not restrictive. Based on described above, one of ordinary skill in the art is readily apparent that to the various of embodiments of the invention Modifications and changes, these modifications and changes are within.The choosing of term used herein The principle, practical application or the improvement to the technology in market for being intended to best explain each embodiment are selected, Or those skilled in the art is understood that each embodiment disclosed herein.

Claims (9)

1. a kind of be used to strengthen the method for webpage comment display, comprise the following steps:
Extract web page contents and multiple comment datas corresponding to the web page contents;
Closed according to the comment time sequencing of the multiple comment data is corresponding with reply corresponding relation and reply It is priority algorithm, construction comment tree, the comment tree is using the web page contents as root, with the multiple comment number According to for each node;And
It is aobvious with animation according to the depth-first traversal algorithm of the comment tree while web page contents are shown Show the multiple comment data.
2. method according to claim 1, wherein, in the step of showing the multiple comment data, Corresponding comment data is shown in animation form corresponding with the feature of each node of the comment tree, it is described each The feature of individual node include it is common, more reply, deep replys, many people support/opposition, composition certain effects Group.
3. according to the method for claim 1 or 2, wherein, in the step of construction comment is set, to described Multiple comment datas carry out duplicate removals, simplify processing after reconstruct comment tree.
4. a kind of be used to strengthen the browser of webpage comment display, including:
Extraction element, for extracting web page contents and multiple comment datas corresponding to the web page contents;
Processing unit, for the comment time sequencing according to the multiple comment data and reply corresponding relation with And corresponding relation priority algorithm is replied, construction comment is set, and the comment tree is using the web page contents as root, with institute Multiple comment datas are stated for each node;And
Display device, for while the web page contents are shown, according to the depth-first time of the comment tree Go through algorithm and the multiple comment data is shown with animation.
5. browser according to claim 4, wherein, the display device is with each with the comment tree The corresponding animation form of feature of node shows corresponding comment data, and the feature of each node is including general Logical, many replies, deep reply, many people support/opposition, the group for constituting certain effects.
6. according to the browser of claim 4 or 5, wherein, the processing unit is commented to the multiple By data carry out duplicate removal, simplify processing after reconstruct comment tree.
7. a kind of be used to strengthen the equipment of webpage comment display, including:
Memory, web page contents downloaded for storing from network and corresponding to the multiple of the web page contents Comment data;
Processor, for extracting the web page contents and the multiple comment data from the memory, and is pressed Comment time sequencing and reply corresponding relation and reply corresponding relation according to the multiple comment data is preferential Algorithm, construction comment tree, the comment tree, using the web page contents as root, is each using the multiple comment data Individual node;And
Display,
Wherein, the processor controls the display so that the display show the web page contents while, The multiple comment data is shown with animation according to the depth-first traversal algorithm of the comment tree.
8. equipment according to claim 7, wherein, the processor controls the display so that the display Device shows corresponding comment data in animation form corresponding with the feature of each node of the comment tree, described The feature of each node includes common, many replies, deep reply, many people support/opposition, composition certain effects Group.
9. according to the equipment of claim 7 or 8, wherein, the processor is to the multiple comment data Carry out duplicate removal, simplify processing after reconstruct comment tree.
CN201610012529.4A 2016-01-06 2016-01-06 Method, browser and equipment for enhancing webpage comment display Active CN106951429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610012529.4A CN106951429B (en) 2016-01-06 2016-01-06 Method, browser and equipment for enhancing webpage comment display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610012529.4A CN106951429B (en) 2016-01-06 2016-01-06 Method, browser and equipment for enhancing webpage comment display

Publications (2)

Publication Number Publication Date
CN106951429A true CN106951429A (en) 2017-07-14
CN106951429B CN106951429B (en) 2020-07-31

Family

ID=59465285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610012529.4A Active CN106951429B (en) 2016-01-06 2016-01-06 Method, browser and equipment for enhancing webpage comment display

Country Status (1)

Country Link
CN (1) CN106951429B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020124933A1 (en) * 2018-12-20 2020-06-25 网易(杭州)网络有限公司 Comment information processing method and apparatus, and storage medium and electronic device
CN113157165A (en) * 2021-05-12 2021-07-23 北京字跳网络技术有限公司 Information display method and device, electronic equipment and program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161164A1 (en) * 2007-03-22 2011-06-30 Monica Anderson Advertising Feedback in Messaging Systems
US20120173508A1 (en) * 2010-10-14 2012-07-05 Cheng Zhou Methods and Systems for a Semantic Search Engine for Finding, Aggregating and Providing Comments
CN103345347A (en) * 2013-07-17 2013-10-09 华为技术有限公司 Method and device for commenting page content
CN104133862A (en) * 2014-07-16 2014-11-05 北京奇虎科技有限公司 Search page commenting method and search page commenting device
CN104462132A (en) * 2013-09-23 2015-03-25 华为技术有限公司 Comment information display method and device
JP2015057896A (en) * 2006-12-11 2015-03-26 株式会社ドワンゴ Comment distribution system, terminal device, comment distribution method, and program
CN104572883A (en) * 2014-12-22 2015-04-29 东软集团股份有限公司 Method and device for implementing quick replies and clues between comments
CN105045899A (en) * 2015-08-03 2015-11-11 北京金山安全软件有限公司 Comment content providing method and device and terminal equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015057896A (en) * 2006-12-11 2015-03-26 株式会社ドワンゴ Comment distribution system, terminal device, comment distribution method, and program
US20110161164A1 (en) * 2007-03-22 2011-06-30 Monica Anderson Advertising Feedback in Messaging Systems
US20120173508A1 (en) * 2010-10-14 2012-07-05 Cheng Zhou Methods and Systems for a Semantic Search Engine for Finding, Aggregating and Providing Comments
CN103345347A (en) * 2013-07-17 2013-10-09 华为技术有限公司 Method and device for commenting page content
CN104462132A (en) * 2013-09-23 2015-03-25 华为技术有限公司 Comment information display method and device
CN104133862A (en) * 2014-07-16 2014-11-05 北京奇虎科技有限公司 Search page commenting method and search page commenting device
CN104572883A (en) * 2014-12-22 2015-04-29 东软集团股份有限公司 Method and device for implementing quick replies and clues between comments
CN105045899A (en) * 2015-08-03 2015-11-11 北京金山安全软件有限公司 Comment content providing method and device and terminal equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020124933A1 (en) * 2018-12-20 2020-06-25 网易(杭州)网络有限公司 Comment information processing method and apparatus, and storage medium and electronic device
US11620043B2 (en) 2018-12-20 2023-04-04 Netease (Hangzhou) Network Co., Ltd. Comment information processing method and apparatus, and storage medium and electronic device
CN113157165A (en) * 2021-05-12 2021-07-23 北京字跳网络技术有限公司 Information display method and device, electronic equipment and program product

Also Published As

Publication number Publication date
CN106951429B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
JP6818050B2 (en) Website building system and method
CN108154395B (en) Big data-based customer network behavior portrait method
JP7395475B2 (en) System and method for generating and editing text content in a website construction system
CN109271594B (en) Recommendation method of electronic book, electronic equipment and computer storage medium
US10402479B2 (en) Method, server, browser, and system for recommending text information
CN107526776A (en) The Computerized method and system of search result is presented
CN102968451B (en) The browser form page loads method and the client of website data
CN100581108C (en) Super interlinking resident searching method
CN103577171B (en) A kind of method and mobile terminal of display web page contents
CN109522562B (en) Webpage knowledge extraction method based on text image fusion recognition
CN103729356B (en) Web page address reminding method and device
CN104239298A (en) Text message recommendation method, server, browser and system
CN106021383A (en) Method and device for computing similarity of webpages
CN106033415A (en) A text content recommendation method and device
CN105022775A (en) Apparatus and method for structuring web page access history
CN104077273A (en) Method and device for extracting webpage contents
CN105095175A (en) Method and device for obtaining truncated web title
US9842162B1 (en) Navigating a taxonomy using search queries
US20110314372A1 (en) Document representation transitioning
CN105205845B (en) Web animation rendering intent and device
Karatzoglou et al. RecSys' 16 workshop on deep learning for recommender systems (DLRS)
CN106951429A (en) Strengthen method, browser and the equipment of webpage comment display
Niu et al. Web scraping tool for newspapers and images data using jsonify
US9117178B1 (en) System for assisting creation of messages by automatically recommending data to be included therein
CN109165264B (en) Webpage analysis method and device based on diversified thermodynamic diagrams

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200709

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio square 14 storey tower

Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant