The invention discloses a method and a device for searching web pages according to tendency values. The method comprises the following steps of: A), acquiring a plurality of web pages, and downloading the web pages to a
web page database; B), performing name identification on characters of the plurality of web pages; C), performing tendency analysis on a plurality of names in the plurality of web pages to acquire the tendency values of the plurality of names of the plurality of web pages; D), making a forward index table, wherein the forward index table comprises the tendency values of the plurality of names; E), making an
inverted index table, wherein the
inverted index table comprises the tendency values of the plurality of names; F), inputting a search item, and decomposing the search item into at least one keyword; and G) calculating the sequencing weights of the web pages comprising the keywords according to the
inverted index table, and outputting a search result. According to the method and the device, the web pages containing the search keywords are mainly sequenced according to the tendency values, so that the web pages with depreciative or ameliorative tendency are sequenced in front, and the search satisfaction of a user is promoted.