Price comparing method based on the 3G mobile networkTechnical field
The present invention relates to the mobile radio network technical field, particularly relate to a kind of price comparing method based on the 3G mobile network.
Background technology
Now in the life of making rapid progress, type of merchandize is dazzled, particularly ecommerce popularizes, people have come to terms with by shopping at network, oneself admire and commodity that cost performance is higher in order to choose, usually people need compare multiple commodity, and the price comparing method to commodity normally compares at the commodity in the station, same website at present, and present price comparing method also can't use by portable terminal.
Summary of the invention
In view of above problem, fundamental purpose of the present invention is to provide a kind of price comparing method based on the 3G mobile network, and it has realized carrying out the rate of exchange on portable terminal.
In order to reach above purpose, the price comparing method based on the 3G mobile network provided by the invention may further comprise the steps:
A. server adopts the good regular crawler technology of a plurality of predefineds of distribution to the enterprising line data collection of each shopping website, and is kept in the database;
B. portable terminal sends to the key word information that the user submits in the server by wireless network, and server is retrieved its keyword;
C. server sends to portable terminal with the data result that retrieves by wireless network.
Wherein, described step a concrete steps are: at first adopt the htmlclient assembly to simulate the submission accessing operation, the info web that obtains returning, again the webpage html source code that returns is carried out the html webpage source code that rule match analyzes the targeted website, after drawing the data that need with regular expression or htmlparser assembly coupling, these data are sorted out preservation respectively, then the The data IK Analyzer assembly of obtaining is carried out the participle operation, adopt lucene to set up index file then;
Described step a adopts the quartz arrangement of components regularly to carry out, and the data with being gathered are regularly upgraded operation;
Among the described step a, the data of described collection comprise the title of commodity, price, popular degree, scoring etc.;
The concrete searching step of described step b is that server carries out semanteme identification and participle to its keyword, and utilizes the lucene assembly to carry out index operation in database;
Data result among the described step c can be according to any one sorts in popular degree, price height, the comment score value.
In sum, the price comparing method based on the 3G mobile network provided by the invention, it has realized carrying out rate of exchange operations by portable terminal, and the real-time update by database, makes comparison result more accurate true.
Description of drawings
Fig. 1 is a price comparing method schematic flow sheet of the present invention.
Embodiment
Below in conjunction with specific embodiment technical scheme of the present invention is further specified, but its qualification of not opposing:
As shown in Figure 1, the price comparing method based on the 3G mobile network provided by the invention may further comprise the steps:
S101. server adopts the good regular crawler technology of a plurality of predefineds of distribution to the enterprising line data collection of each shopping website, at first adopt the htmlclient assembly to simulate the submission accessing operation, the info web that obtains returning, again the webpage html source code that returns is carried out the html webpage source code that rule match analyzes the targeted website, after drawing the data that need with regular expression or htmlparser assembly coupling, these data are sorted out preservation respectively, then the The data IK Analyzer assembly of obtaining is carried out the participle operation, adopt lucene to set up index file then;
S102. portable terminal sends to the key word information that the user submits in the server by wireless network, and server carries out semanteme identification and participle to its keyword, and utilizes the lucene assembly to carry out index operation in database;
S103. server is according to the sort result optimization of height to retrieving of proportion score value;
S104. the result after the server optimization sends to portable terminal by wireless network.
Wherein, among the described step S101, described data comprise title, price, popular degree, scoring of commodity etc.;
Described step S101 adopts the quartz arrangement of components regularly to carry out, and the data with being gathered are regularly upgraded operation;
Can be among the described step S103 according to any one optimization of sorting in popular degree, price height, the comment score value.
In sum, the price comparing method based on the 3G mobile network provided by the invention, it has realized carrying out rate of exchange operations by portable terminal, and the real-time update by database, makes comparison result more accurate true.
Below technology contents of the present invention has been done detailed description.For persons skilled in the art, any conspicuous change of under the prerequisite that does not deviate from the principle of the invention it being done can not exceed the protection domain of the application's claims.