CN103514559A - On-line shopping price comparison method and device based on mobile terminal browser - Google Patents

On-line shopping price comparison method and device based on mobile terminal browser Download PDF

Info

Publication number
CN103514559A
CN103514559A CN201310446407.2A CN201310446407A CN103514559A CN 103514559 A CN103514559 A CN 103514559A CN 201310446407 A CN201310446407 A CN 201310446407A CN 103514559 A CN103514559 A CN 103514559A
Authority
CN
China
Prior art keywords
commodity
server
rate
url address
white list
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
CN201310446407.2A
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.)
Opera Norway AS
Original Assignee
Opera Software ASA
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 Opera Software ASA filed Critical Opera Software ASA
Priority to CN201310446407.2A priority Critical patent/CN103514559A/en
Publication of CN103514559A publication Critical patent/CN103514559A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an on-line shopping price comparison method and device based on a mobile terminal browser. The method includes the steps that a configuration file is preset in the mobile terminal browser, the configuration file comprises server information and a white list, and the white list comprises a plurality of URL addresses which respectively correspond to a plurality of pieces of E-commerce information stored in a server; a server object is built according to the server information; whether the current URL address of a commodity web page browsed through the mobile terminal browser is matched with the white list is detected, wherein the commodity web page comprises price information of a commodity; if the current URL address is matched with the white list, commodity price comparison request information corresponding to the current URL address is sent to the server corresponding to the white list; the commodity price comparison result information fed back by the server is received and analyzed; the commodity price comparison result information is displayed on the mobile terminal browser. When a user browses a commodity on a shopping website, the user can see price of the commodity on other shipping websites and can choose to buy the commodity on the website where the commodity is sold at a low price.

Description

A kind of online shopping price comparing method and device based on browser of mobile terminal
Technical field
The invention relates to browser technology, particularly about browser of mobile terminal technology, concretely, is about a kind of online shopping price comparing method and device based on browser of mobile terminal.
Background technology
Fast development along with the universal and 3G business of network, the various mobile terminals such as mobile phone, panel computer, electronic reader are being brought into play more and more important effect in network online shopping as new user terminal, user, by mobile terminal connecting Internet, realizes the overall process of querying commodity information, goods orders submission and on-line payment.
Utilize the shopping process of mobile terminal mainly as follows: by browser of mobile terminal, to log in shopping website/electronics businessman (" electric business's ") shopping webpage, search the commodity that need purchase; The commodity that selection will be bought, put into and buy car; Place an order and confirm to buy the commodity in shopping cart; By modes of payments such as Net silver, Alipays, pay the expense of buying commodity; Receive express delivery deliver goods, complete shopping online.
But, along with emerging in multitude of electric business (as Taobao, Jingdone district, brilliance, when working as etc.), same commodity all may occur on various electricity Shang website, the price of this kind of commodity of different electricity Shang website may be far short of what is expected, user wants these the most economical commodity of buying, just need to login respectively different query site prices, waste a large amount of time.In addition, when user is during by keyword search commodity, will search the satisfactory merchandise news of a lot of bars, user needs therefrom to differentiate one by one, and efficiency is very low.
Summary of the invention
The invention provides a kind of online shopping price comparing method and device based on browser of mobile terminal, so that in the commodity of user on browsing certain shopping website, can see the pricing information of these commodity on other shopping websites, be convenient to user and select more cheap businessman to buy this commodity.
To achieve these goals, the invention provides a kind of online shopping price comparing method based on browser of mobile terminal, the method comprises: preset configuration file in described browser of mobile terminal, wherein, described configuration file comprises server info and white list, described white list comprises a plurality of URL address, corresponding with a plurality of electric business's information of storing in server respectively; According to described server info, set up server object; Whether the current URL address of the commodity webpage that detection browser of mobile terminal is browsed mates described white list, wherein, and the pricing information that described commodity webpage comprises these commodity; If white list described in described current URL matching addresses, sends parity rate of commodity solicited message corresponding to this current URL address to server corresponding to described white list; Receive and resolve the parity rate of commodity object information of described server feedback; On described browser of mobile terminal, show described parity rate of commodity object information.
Further, in described server info, comprising the rate of exchange please seek template, and the described parity rate of commodity solicited message sending to described server meets the described rate of exchange and please seek template.
In one embodiment, this online shopping price comparing method also comprises: detection could be obtained parity rate of commodity object information corresponding to described current URL address when not connecting described server.Further, detection could be obtained parity rate of commodity object information corresponding to described current URL address when not connecting described server, comprising: detect whether described current URL address is present in comparison result buffer memory and not out of date.
Further, if can obtain the price comparison object information of commodity corresponding to described current URL address when not connecting described server, show parity rate of commodity object information corresponding to current URL address described in described comparison result buffer memory.
In one embodiment, this online shopping price comparing method also comprises: the described URL address described in precompile in white list Optimized Matching logic.
In one embodiment, described method also comprises: the comparison result buffer memory described in upgrading according to the time interval of storing in described comparison result buffer memory.
In one embodiment, this online shopping price comparing method also comprises: according to the predetermined time interval in described configuration file, upgrade described configuration file.
In one embodiment, described reception is also resolved the parity rate of commodity object information of described server feedback, comprise: receive described parity rate of commodity object information, from described parity rate of commodity object information, extract and comprise the data structure of electric business's title, trade name, commodity price and commodity link and show described data structure.
To achieve these goals, the present invention also provides a kind of online shopping rate of exchange device based on browser of mobile terminal, this device comprises: configuration file preset unit, be used at described browser of mobile terminal preset configuration file, wherein, described configuration file comprises server info and white list, and described white list comprises a plurality of URL address, corresponding with a plurality of electric business's information of storing in server respectively; Server object creating unit, for setting up server object according to described server info; URL address detected unit, whether the current URL address of the commodity webpage of browsing for detection of browser of mobile terminal mates described white list, wherein, the pricing information that described commodity webpage comprises these commodity; Rate of exchange request unit, for sending parity rate of commodity solicited message corresponding to this current URL address to server corresponding to described white list; Comparison result resolution unit, for receiving and resolve the parity rate of commodity object information of described server feedback; Comparison result display unit, for showing described parity rate of commodity object information on described browser of mobile terminal.
Further, in described server info, comprising the rate of exchange please seek template, and the described parity rate of commodity solicited message that described rate of exchange request unit sends to described server meets the described rate of exchange and please seek template.
In one embodiment, this online shopping rate of exchange device also comprises: detecting unit, and for detection of the price comparison object information that could obtain commodity corresponding to described current URL address when not connecting described server.Further, whether described detecting unit is specifically for detecting described current URL address and be present in comparison result buffer memory and not out of date.
Further, described comparison result display unit is also for showing parity rate of commodity object information corresponding to current URL address described in described comparison result buffer memory.
In one embodiment, this online shopping rate of exchange device also comprises: comparison result buffer update unit, the comparison result buffer memory described in upgrading for the time interval of storing according to described comparison result buffer memory.
In one embodiment, this online shopping rate of exchange device also comprises: white list pretreatment unit, and for described URL address the Optimized Matching logic of white list described in precompile.
In one embodiment, this online shopping rate of exchange device also comprises: configuration file updating block, and for upgrading described configuration file according to the predetermined time interval of described configuration file.
In one embodiment, described comparison result resolution unit specifically for: receive described parity rate of commodity object information, from described parity rate of commodity object information, extract and comprise the data structure of electric business's title, trade name, commodity price and commodity link and show described data structure.
The beneficial effect of the embodiment of the present invention is, by the present invention, in the commodity of user on browsing certain shopping website, can see the pricing information of these commodity on other shopping websites, is convenient to user and selects more cheap businessman to buy this commodity.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is can be for realizing the structural representation of the equipment 100 of exemplary embodiment of the present invention;
Fig. 2 is the online shopping price comparing method process flow diagram based on browser of mobile terminal of the embodiment of the present invention;
Fig. 3 is the rate of exchange module of browser of mobile terminal and the support module of the server exchange schematic diagram of the embodiment of the present invention;
Fig. 4 is that schematic diagram is shown in the inside of embodiment of the present invention comparison result;
Fig. 5 is the display interface schematic diagram of embodiment of the present invention parity rate of commodity object information;
Fig. 6 is the rate of exchange flow chart of steps of another embodiment of the present invention;
Fig. 7 is the structured flowchart of the online shopping rate of exchange device of the embodiment of the present invention based on browser of mobile terminal.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 shows can be for realizing the equipment 100 of various aspects environment of the present invention.Element in Fig. 1 can be realized on all mobile terminals that browser of mobile terminal is installed, and still, those skilled in the art can understand, and form, performance and the function of various assemblies on dissimilar equipment can be different.
As shown in Figure 1, equipment 100 can comprise CPU (central processing unit) (CPU) 101, storer 102, communication port or input/output end port (hereinafter referred is " I/O ") 103, display unit 104 and network interface 105.These unit can communicate each other by system bus 106.
Storer 102 can be the storer of any other combination of ROM, RAM, flash memory, hard disk drive or fixing and removable memory.Each component software of storage system can comprise basic input/output (BIOS), operating system, the various computer programs that comprise application program and device driver, various data, and other executable file such as macro instruction and script or instruction etc.
I/O port one 03 can be connected to one or more local devices, as user input device (for example, keyboard, mouse, touch-screen display or telepilot), printer, media player, external memory devices, and the specific use equipment such as GPS receiver (GPS) or television set top box.I/O port one 03 can be any combination of the port such as USB, PS/2, RS-232, infrared ray (IR), bluetooth, printer port or any other standardization or private communication interface of local device.
Display unit 104 can be external monitor such as IXD display or integrated display.Display unit 104 can be connected with other parts by video interface.Again for example, display unit 104 can be the touch-screen display with touch sensitive screen, and in this case, display unit 104 can double as user input device.
By acting on user input device, in the user interface that user can show at display unit 104, input needs the service object's of browser of mobile terminal access resource locator (URL, Uniform Resource Locator).Browser of mobile terminal can position identification to the resource of user's request access according to this URL, and wants service object's (for example, webpage) of access to be presented on display unit 104 user.
Network interface 105 provides the ability that is connected to network for equipment 100, to communicate with remote equipment 107.The communication network that is only illustrated as the circuit of interconnection network interface 105 and remote equipment 107 in Fig. 1 can be that for example, the network of connection comprises LAN (Local Area Network) or the Internet etc.Remote equipment 107 can be to have any computing equipment of similar communication capacity with equipment 100 in principle, still, conventionally can be to provide server or other unit of network service.It will be understood by those skilled in the art that communication network can be any network that can openly access, or the combination of network, comprise the Internet, the honeycomb fashion mobile network such as GSM, public telephone network, or analog or digital broadcast or satellite.
The equipment 100 shown in Fig. 1 that it will be appreciated by persons skilled in the art that is being not limited only to any customized configuration or embodiment aspect form or resource.Shown various assembly can be implemented as the one or more integrated unit of equipment 100 or is distributed to a plurality of unit.Certainly, also can there is other unit or ability.In addition, equipment 100 can be personal digital assistant (PDA), mobile phone, panel computer or electronic reader.Various aspects of the present invention can be comprised forming as application program being arranged in the assembly and/or function of user agent on equipment 100 or browser, or with together with them, use.
As shown in Figure 2, the embodiment of the present invention provides a kind of online shopping price comparing method based on browser of mobile terminal, and this online shopping price comparing method comprises:
S201: preset configuration file in described browser of mobile terminal, wherein, described configuration file comprises server info and white list, and described white list comprises a plurality of URL address, corresponding with a plurality of electric business's information of storing in described server respectively;
S202: set up server object according to described server info;
S203: whether the current URL address of the commodity webpage that detection browser of mobile terminal is browsed mates described white list, wherein, the pricing information that described commodity webpage comprises these commodity;
S204: if white list described in described current URL matching addresses sends parity rate of commodity solicited message corresponding to this current URL address to described server;
S205: the parity rate of commodity object information that receives and resolve described server feedback;
S206: show described parity rate of commodity object information on described browser of mobile terminal.
Flow process is as shown in Figure 2 known, and in the embodiment of the present invention, first mobile terminal sets up server object according to the server info in configuration file preset in browser, and reads the white list information in configuration file; Then when the URL matching addresses white list of the current webpage that comprises commodity price information of browsing of browser of mobile terminal being detected, to server, send parity rate of commodity solicited message corresponding to GaiURL address; The parity rate of commodity object information of mobile terminal resolution server feedback, and show the parity rate of commodity object information of resolving by the display screen of mobile terminal.User carries out commodity price comparison without entering a plurality of shopping websites, and by showing the parity rate of commodity object information of screen display, user just can select more cheap businessman to buy a certain commodity, has also saved commodity shopping program simultaneously.
When S201 specifically implements, configuration file can be preset in the installation kit of browser, and upgrades with the renewal of browser installation kit version.The type of configuration file can have multiple, and such as Config file, the embodiment of the present invention is only usingd Config file and described as configuration file, and this Config file can be XML form, can be also extended formatting.In preset configuration file, comprise server info and white list information, wherein, server info comprises information such as accepting the server name of rate of exchange request and respective request template, and the parity rate of commodity solicited message that mobile terminal sends to server need to meet these rate of exchange and please seek template.White list comprises a plurality of URL address, corresponding with a plurality of electric business's information of storing in server respectively.
An exemplary Config file below:
Figure BDA0000388140080000061
Figure BDA0000388140080000071
As shown in above-mentioned Config file, the server name comprising in this configuration file is called oupeng server, configuration
What in file, comprise please seek template as http://price.oupeng.com/product.php url=%s
Corresponding white list list is:
Figure BDA0000388140080000072
In above-mentioned Config file, comprise a server oupeng server, what to this server, send request please seek template, and a plurality of URL address corresponding to electric business's information of this server stores, i.e. white list.During concrete enforcement, Config file also can comprise a plurality of servers, correspondingly, also comprises and corresponds respectively to a plurality of of the plurality of server and please seek template.In the situation that Config file comprises a plurality of server, the white list in Config file can be many parts of white lists corresponding to a plurality of servers difference, or same a white list corresponding to a plurality of server.In the situation of many parts of white lists, in every part of white list, comprise a plurality of URL address corresponding to electric business's information of its corresponding server stores; In the situation of a white list, in this part of white list, gathered a plurality of URL address corresponding to electric business's information of Servers-all storage.
When S202 specifically implements, need to set up server object according to the server name in server info and request template, first, read the server info that pricing information is provided in Config file, if server name non-NULL, read please seek template in Config file, according to the server name reading and request template, set up server object, in order to send parity rate of commodity solicited message corresponding to this current URL address to server in follow-up S204, and the parity rate of commodity object information that resolution server feeds back in S205.For example, in above-mentioned exemplary Config file, utilize server name (oupeng server) and please seek template (http://price.oupeng.com/product.php url=%s), set up the server object of " oupeng server " by name, the form that the JSON of each server object responds is not quite similar, concerning " oupeng server ", the key assignments of the pricing information list in the JSON of its response is " Items ", the key assignments of electric business in each pricing information is that " SiteName " is (such as all visitors, Jingdone district etc.), so, for different servers, have the code of different its responses of parsing.
In an exemplary embodiment, set up after server info, need to read every white list in Config listed files, and the white list that reads of pre-service, i.e. URL address in precompile white list Optimized Matching logic.For example, use the compile method in the java.util.regex.Patten of JAVA storehouse, be compiled into the Pattern object of a JAVA, now, each element in white list list is observed Java schema object, with the white list of raising the efficiency and carry out after a while, screens.Particularly, current white list is carried out to pre-service when compiling, can add the information of some similar length restriction etc. to accelerate matching process.Such as comprising http://www.baidu.com/.* in the list in white list, mate this regular expression, at least must there be more than 20 length current URL address, if be less than 20, certainly do not mate, now just can directly return to the result of " not mating ", and without whole completeer results that just shows " not mating ".
S201, S202 are the rate of exchange initialization step of online shopping price comparing method, after pre-service completes to white list, have just completed the information initializing in online shopping price comparing method.Because this online shopping price comparing method is the rate of exchange module by browser of mobile terminal, realize, taking of data traffic and CPU processor is all vital parameter.By above-mentioned S201, S202, can significantly save flow, and reduce taking of processor.For example: in S201, configuration file is preset in browser, makes at initial phase without sending request and can obtain initial server information and white list to server, thereby saved the consumption of network traffics.Again for example: the white list pre-service in S201 can significantly reduce taking of processor.
In addition, from the above, white list contains specific format list, the details page (being commonly used to describe the webpage of commodity details) of commodity is only mated in this list, by white list, can significantly reduce request number of times, therefore save the data traffic of mobile terminal and reduce the load of server.
S203, S204, S205 and S206 are the rate of exchange step of online shopping price comparing method, during concrete enforcement, user uses browser of mobile terminal to browse commodity webpage, whether the current URL address that the rate of exchange module of browser of mobile terminal can detect this commodity webpage mates white list list, wherein, the pricing information that this commodity webpage comprises these commodity, i.e. the details page of commodity.If current URL can not mate white list list in address, rate of exchange failure.If current URL matching addresses white list list, the URL address information that meets this white list list Zhong Mou businessman, also prove the rate of exchange information that comprises above-mentioned commodity in this server object, browser of mobile terminal sends and meets the solicited message that please seek template to server, server returns to comparison result, on mobile terminal displaying and its display screen.
In specific embodiment, as previously mentioned, if during a plurality of server of Config file including, the plurality of server can be distinguished corresponding many parts of white lists or share with a white list.
The in the situation that of many parts of white lists, whether the current URL address that the rate of exchange module of browser of mobile terminal can detect this commodity webpage one by one mates every a white list list.If current URL can not mate address any a white list list, rate of exchange failure.If a white list list of current URL matching addresses detected, stop coupling, to this part of server corresponding to white list, send and meet the solicited message that please seek template, server returns to comparison result.
The in the situation that of a white list, whether the current URL address that the rate of exchange module of browser of mobile terminal can detect this commodity webpage mates this part of white list list.If can not mate, rate of exchange failure.If can mate, to each server, send request information one by one, the comparison result that each server is returned gathers.
As shown in Figure 3,302 of the rate of exchange modules of browser of mobile terminal 301 send parity rate of commodity solicited message corresponding to this current URL address to server 303, and server 303 comprises corresponding support module 304.
The support module 304 of server is resolved the parity rate of commodity solicited message of sending on mobile terminal, generate parity rate of commodity object information (JSON response) and be issued to this mobile terminal, rate of exchange module 302 in browser of mobile terminal receives parity rate of commodity object information, from commodity comparison result information, extract and comprise that server name, trade name, commodity are in each electric business's price and the data structure of commodity link, and show data structure (carrying out inside shows).
Fig. 4 is that schematic diagram is shown in the inside of comparison result, what in Fig. 4, " Result " was corresponding is rate of exchange information lists, element in list is to comprise the server name extracting in JSON response, trade name, a data structure of commodity price and commodity link, what " Source " was corresponding is the server of storage rate of exchange information, and browser of mobile terminal can identify different servers with it.The data structure that rate of exchange module 302 is shown inside is compiled as user oriented information, finally on browser of mobile terminal, shows described parity rate of commodity object information, and display interface as shown in Figure 5.
In another embodiment, as shown in Figure 6, rate of exchange step of the present invention comprises:
S601: user uses browser of mobile terminal to browse commodity webpage.
S602: whether the current URL address of detecting the commodity webpage of browsing mates white list, if not, rate of exchange failure, process ends; If the current URL matching addresses white list of the commodity webpage of browsing, carries out step S603.Wherein, the pricing information that described commodity webpage comprises these commodity.
S603: detection could be obtained the price comparison object information of commodity corresponding to described current URL address when not connecting described server, if can obtain the price comparison object information of commodity corresponding to described current URL address when not connecting described server, carry out S608, show parity rate of commodity object information corresponding to current URL address in comparison result buffer memory; If can not obtain the price comparison object information of commodity corresponding to described current URL address when not connecting described server, carry out S604.
During concrete enforcement, the price comparison object information that detection could be obtained commodity corresponding to described current URL address when not connecting described server comprises: detect whether described current URL address is present in comparison result buffer memory (cache) and not out of date.
S604: send parity rate of commodity solicited message corresponding to this current URL address to server, the rate of exchange module of browser of mobile terminal sends parity rate of commodity solicited message corresponding to this current URL address to server, server comprises corresponding support module 304, as shown in Figure 3.
S605: receive the also parity rate of commodity object information of resolution server feedback, the rate of exchange module 302 in browser of mobile terminal receives parity rate of commodity object informations, comprises the information such as server name, trade name, commodity price and commodity link.
S606: the inner comparison result information of showing.Rate of exchange module in browser of mobile terminal receives parity rate of commodity object information, extracts the data structure that comprises server name, trade name, commodity price and commodity link from commodity comparison result information, carries out inside and shows, as shown in Figure 4.
S607: upgrade comparison result buffer memory.
In the embodiment of the present invention, use a circular buffer zone (after a data element is used up, remainder data element does not need mobile its memory location) store comparison result buffer memory (cache), the size of buffer zone is fixed, for example, can be made as 20 data.The URL link that data in comparison result buffer memory comprise commodity, the rate of exchange information of commodity, and the time that acquires rate of exchange information.When obtaining the rate of exchange information of certain commodity, first check to be that the URL of commodity and a certain data in comparison result buffer memory are equal to, if, and interval storage time of present time and cache mileage certificate is no more than the expired threshold value of comparison result buffer memory, and (expired threshold value can adopt empirical value, for example can be made as five minutes), just directly return to the data in cache; If overtime interval, can clear out this record, then again to server request rate of exchange information.If commodity URL is not in comparison result buffer memory, to server request rate of exchange information.When getting rate of exchange information, generate a URL link that comprises commodity, the rate of exchange information of commodity, and the data that acquire the time of rate of exchange information, be then stored in comparison result buffer memory, upgrades comparison result buffer memory.Because the capacity of comparison result buffer memory is fixed, so the local data with existing that will write can be capped.
S608: display of commodity comparison result information on described browser of mobile terminal (comprise and show parity rate of commodity object information that current URL address in comparison result buffer memory is corresponding and the user oriented parity rate of commodity object information obtaining from the comparison result information analysis of server feedback), display interface as shown in Figure 5.
In one embodiment, after the rate of exchange step of Fig. 2 and Fig. 6, also comprise rate of exchange module step of updating, according to the predetermined time interval Reconfigurations file in configuration file.Configuration file can be customized by external source, such as, can send the configuration file form of XML file (for example with) from server dynamic push.Now, client/browser of mobile terminal can listen to change, and resolves configuration file, subsequently store configuration files, according to reconfiguring Config information in Fig. 2 shown in S202, generation server object (the server white list in this server object etc. may upgrade to some extent).In order to reduce the load of server and to save the flow of client, a field that can add " next inspection intervals " in configuration file, be used for telling when mobile terminal should check renewal again, " next inspection intervals " is given by server, can on-the-fly modify according to the frequent degree of server load condition and config update, for example, when the load of server is heavier, " next inspection intervals " time in the configuration file pushing can be corresponding elongated, and when configuration file upgrades comparatively frequently, " next inspection intervals " time in the configuration file of server push can shorter.
Because general browser is all supported many based tab navigations, so just have a plurality of rate of exchange requests when a plurality of based tab navigation commodity page, for each rate of exchange request, can produce a thread and go asynchronous processing rate of exchange solicited message, thereby not block the processing of other event.When this thread is got after rate of exchange information, can go to notify by certain mechanism the renewal of browser of mobile terminal data, thereby show user, do not repeat them here.
It should be noted that, for the specific embodiment of the present invention is clearly described, the above-mentioned concept of having used rate of exchange initialization step and rate of exchange step, is not intended to limit protection scope of the present invention.
As shown in Figure 7, the embodiment of the present invention provides a kind of online shopping rate of exchange device/rate of exchange module based on browser of mobile terminal, to the explanation of Fig. 7, can carry out in conjunction with Fig. 1.This online shopping rate of exchange device can be integrated in browser of mobile terminal, and is stored in the storer 102 of equipment 100.User by equipment 100 on the browser of operation while carrying out commodity webpage to browse, this online shopping rate of exchange device running in CPU101 can obtain the price comparison result of current commodity from remote equipment/server 107 by network interface 105, and is shown on display unit 104.
Above-mentioned online shopping rate of exchange device comprises: configuration file generation unit 701, server object creating unit 702, URL address detected unit 703, rate of exchange request unit 704, comparison result resolution unit 705 and comparison result display unit 706.
Configuration file generation unit 701 is at described browser of mobile terminal preset configuration file, wherein, described configuration file comprises server info and white list, and described white list comprises a plurality of URL address, corresponding with a plurality of electric business's information of storing in described server respectively.Configuration file can be preset in the installation kit of browser, and upgrades with the renewal of browser installation kit version.The type of configuration file can have multiple, and such as Config file, the embodiment of the present invention is only usingd Config file and described as configuration file, and this Config file can be XML form, can be also extended formatting.In preset configuration file, comprise server info and white list information, wherein, server info comprises information such as accepting the server name of rate of exchange request and respective request template, and the parity rate of commodity solicited message that mobile terminal sends to server need to meet these rate of exchange and please seek template.
Server object creating unit 702 is for setting up server object according to described server info.During concrete operations, first server object creating unit 702 reads the server info that pricing information is provided in Config file, if server name non-NULL, read please seek template in Config file, according to the server name reading and request template, set up server object, in order to follow-up, by rate of exchange request unit 704, to server, send parity rate of commodity solicited message corresponding to this current URL address, and by the parity rate of commodity object information of comparison result resolution unit 705 resolution server feedbacks.
By above-mentioned configuration file generation unit 701 and server object creating unit 702, can significantly save flow, and reduce taking of processor.For example: configuration file generation unit 701 is preset in configuration file in browser, make at initial phase without sending request and can obtain initial server information and white list to server, thereby saved the consumption of network traffics.Again for example: the white list pre-service of configuration file generation unit 701 can significantly reduce taking of processor.
Therefore white list contains specific format list, and the details page (being commonly used to describe the webpage of commodity details) of commodity is only mated in this list, by white list, can significantly reduce request number of times, saves the data traffic of mobile terminal and reduces the load of server.
Whether the current URL address of the commodity webpage that URL address detected unit 703 is browsed for detection of browser of mobile terminal mates described white list, wherein, and the pricing information that described commodity webpage comprises these commodity; Rate of exchange request unit 704 is for sending parity rate of commodity solicited message corresponding to this current URL address to server; Comparison result resolution unit 705 is for the parity rate of commodity object information receiving and resolution server feeds back; Comparison result resolution unit 706 is for display of commodity comparison result information on browser of mobile terminal.
User uses browser of mobile terminal to browse commodity webpage, whether the current URL address that the rate of exchange module of browser of mobile terminal can detect this commodity webpage mates white list list, wherein, the pricing information that this commodity webpage comprises these commodity, i.e. the details page of commodity.If current URL can not mate white list list in address, rate of exchange failure.If current URL matching addresses white list list, the URL address information that meets this white list list Zhong Mou businessman, also prove the rate of exchange information that comprises above-mentioned commodity in this server object, 302 of the rate of exchange modules of browser of mobile terminal 301 send parity rate of commodity solicited message corresponding to this current URL address to server 303, server comprises corresponding support module 304, as shown in Figure 3.
The support module 304 of server is resolved the parity rate of commodity solicited message of sending on mobile terminal, generate parity rate of commodity object information (JSON response) and be issued to this mobile terminal, rate of exchange module 302 in browser of mobile terminal 301 receives parity rate of commodity object information, from commodity comparison result information, extract and comprise that server name, trade name, commodity are in each electric business's price and the data structure of commodity link, and show data structure, as shown in Figure 4.The data structure that rate of exchange module 302 is shown inside is compiled as user oriented information, finally on browser of mobile terminal, shows described parity rate of commodity object information, and display interface as shown in Figure 5.
In an exemplary embodiment, set up after server info, need to read every white list in Config listed files, and the white list that reads of pre-service.Online shopping rate of exchange device also comprises: white list pretreatment unit 707, and for described URL address the Optimized Matching logic of white list described in precompile.Illustrate, for example use the compile method in the java.util.regex.Patten of JAVA storehouse, be compiled into the Pattern object of a JAVA, now, each element in white list list is observed Java schema object, with the white list of raising the efficiency and carry out after a while, screens.Particularly, current white list is carried out to pre-service when compiling, can add the information of some similar length restriction etc. to accelerate matching process.Such as comprising http://www.baidu.com/.* in the list in white list, mate this regular expression, at least must there be more than 20 length current URL address, if be less than 20, certainly do not mate, now just can directly return to the result of " not mating ", and without whole completeer results that just shows " not mating ".
In one embodiment, online shopping rate of exchange device also comprises detecting unit 708, for detection of could obtain parity rate of commodity object information corresponding to described current URL address when not connecting described server, specifically for detecting whether current URL address is present in comparison result buffer memory and not out of date.
If can obtain the price comparison object information of commodity corresponding to current URL address when not connecting described server, comparison result display unit 706 can also show parity rate of commodity object information corresponding to current URL address in described comparison result buffer memory.
In one embodiment, this online shopping rate of exchange device also comprises: comparison result buffer update unit 709, the comparison result buffer memory described in upgrading for the time interval of storing according to described comparison result buffer memory.
In the embodiment of the present invention, use a circular buffer zone (after a data element is used up, remainder data element does not need mobile its memory location) to store comparison result buffer memory (cache), the size of buffer zone is fixed, such as being made as 20 data.The URL link that data in comparison result buffer memory comprise commodity, the rate of exchange information of commodity, and the time that acquires rate of exchange information.When obtaining the rate of exchange information of certain commodity, first check to be that the URL of commodity and a certain data in comparison result buffer memory are equal to, if, and interval storage time of present time and cache mileage certificate is no more than the expired threshold value of comparison result buffer memory, and (expired threshold value can adopt empirical value, for example can be made as five minutes), just directly return to the data in cache; If overtime interval, can clear out this record, then again to server request rate of exchange information.If commodity URL is not in comparison result buffer memory, to server request rate of exchange information.When getting rate of exchange information, generate a URL link that comprises commodity, the rate of exchange information of commodity, and the data that acquire the time of rate of exchange information, be then stored in comparison result buffer memory, upgrades comparison result buffer memory.Because the capacity of comparison result buffer memory is fixed, so the local data with existing that will write can be capped.
In one embodiment, online shopping rate of exchange device also comprises: configuration file updating block 710, and for according to the predetermined time interval Reconfigurations file of configuration file.Configuration file can be customized by external source, such as, can send configuration file (with the form of XML file) from server dynamic push.Now, client/browser of mobile terminal can listen to change, and resolves configuration file, subsequently store configuration files, by server object creating unit 702, reconfigure Config information, generation server object (the server white list in this server object etc. may upgrade to some extent).In order to reduce the load of server and to save the flow of client, a field that can add " next inspection intervals " in configuration file, be used for telling when mobile terminal should check renewal again, " next inspection intervals " is given by server, can on-the-fly modify according to the frequent degree of server load condition and config update, for example, when the load of server is heavier, " next inspection intervals " time in the configuration file pushing can be corresponding elongated, and when configuration file upgrades comparatively frequently, " next inspection intervals " time in the configuration file of server push can shorter.
By the present invention, in the commodity of user on browsing certain shopping website, can see the pricing information of these commodity on other shopping websites, be convenient to user and select more cheap businessman to buy this commodity.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block scheme each flow process and/or the flow process in square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computing machine or other programmable data processing device is produced for realizing the device in the function of flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame on computing machine or other programmable devices.
In the present invention, applied specific embodiment principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (18)

1. the online shopping price comparing method based on browser of mobile terminal, is characterized in that, described method comprises:
Preset configuration file in described browser of mobile terminal, wherein, described configuration file comprises server info and white list, and described white list comprises a plurality of URL address, corresponding with a plurality of electric business's information of storing in server respectively;
According to described server info, set up server object;
Whether the current URL address of the commodity webpage that detection browser of mobile terminal is browsed mates described white list, wherein, and the pricing information that described commodity webpage comprises these commodity;
If white list described in described current URL matching addresses, sends parity rate of commodity solicited message corresponding to this current URL address to server corresponding to described white list;
Receive and resolve the parity rate of commodity object information of described server feedback;
On described browser of mobile terminal, show described parity rate of commodity object information.
2. method according to claim 1, is characterized in that, in described server info, comprising the rate of exchange please seek template, and the described parity rate of commodity solicited message sending to described server meets the described rate of exchange and please seek template.
3. method according to claim 1, is characterized in that, described method also comprises: detection could be obtained parity rate of commodity object information corresponding to described current URL address when not connecting described server.
4. method according to claim 3, it is characterized in that, detection could be obtained parity rate of commodity object information corresponding to described current URL address when not connecting described server, comprising: detect whether described current URL address is present in comparison result buffer memory and not out of date.
5. method according to claim 4, it is characterized in that, if can obtain the price comparison object information of commodity corresponding to described current URL address when not connecting described server, show parity rate of commodity object information corresponding to current URL address described in described comparison result buffer memory.
6. method according to claim 4, is characterized in that, described method also comprises: the comparison result buffer memory described in upgrading according to the time interval of storing in described comparison result buffer memory.
7. method according to claim 1, is characterized in that, described method also comprises: the described URL address described in precompile in white list Optimized Matching logic.
8. method according to claim 1, is characterized in that, described method also comprises: according to the predetermined time interval in described configuration file, upgrade described configuration file.
9. method according to claim 1, it is characterized in that, described reception is also resolved the parity rate of commodity object information of described server feedback, comprise: receive described parity rate of commodity object information, from described parity rate of commodity object information, extract and comprise the data structure of electric business's title, trade name, commodity price and commodity link and show described data structure.
10. the online shopping rate of exchange device based on browser of mobile terminal, is characterized in that, described device comprises:
Configuration file preset unit, be used at described browser of mobile terminal preset configuration file, wherein, described configuration file comprises server info and white list, described white list comprises a plurality of URL address, corresponding with a plurality of electric business's information of storing in server respectively;
Server object creating unit, for setting up server object according to described server info;
URL address detected unit, whether the current URL address of the commodity webpage of browsing for detection of browser of mobile terminal mates described white list, wherein, the pricing information that described commodity webpage comprises these commodity;
Rate of exchange request unit, for sending parity rate of commodity solicited message corresponding to this current URL address to server corresponding to described white list;
Comparison result resolution unit, for receiving and resolve the parity rate of commodity object information of described server feedback;
Comparison result display unit, for showing described parity rate of commodity object information on described browser of mobile terminal.
11. devices according to claim 10, is characterized in that, in described server info, comprising the rate of exchange please seek template, and the described parity rate of commodity solicited message that described rate of exchange request unit sends to described server meets the described rate of exchange and please seek template.
12. devices according to claim 10, is characterized in that, described device also comprises:
Detecting unit, for detection of could obtain parity rate of commodity object information corresponding to described current URL address when not connecting described server.
13. devices according to claim 12, is characterized in that, whether described detecting unit is specifically for detecting described current URL address and be present in comparison result buffer memory and not out of date.
14. devices according to claim 13, is characterized in that, described comparison result display unit is also for showing parity rate of commodity object information corresponding to current URL address described in described comparison result buffer memory.
15. devices according to claim 13, is characterized in that, described device also comprises:
Comparison result buffer update unit, the comparison result buffer memory described in upgrading for the time interval of storing according to described comparison result buffer memory.
16. devices according to claim 10, is characterized in that, described device also comprises:
White list pretreatment unit, for described URL address the Optimized Matching logic of white list described in precompile.
17. devices according to claim 10, is characterized in that, described device also comprises:
Configuration file updating block, for upgrading described configuration file according to the predetermined time interval of described configuration file.
18. devices according to claim 10, it is characterized in that, described comparison result resolution unit specifically for: receive described parity rate of commodity object information, from described parity rate of commodity object information, extract comprise electric business's title, trade name, commodity price and with described electric business's merchandise news respectively corresponding URL address data structure and show described data structure.
CN201310446407.2A 2013-09-26 2013-09-26 On-line shopping price comparison method and device based on mobile terminal browser Pending CN103514559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310446407.2A CN103514559A (en) 2013-09-26 2013-09-26 On-line shopping price comparison method and device based on mobile terminal browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310446407.2A CN103514559A (en) 2013-09-26 2013-09-26 On-line shopping price comparison method and device based on mobile terminal browser

Publications (1)

Publication Number Publication Date
CN103514559A true CN103514559A (en) 2014-01-15

Family

ID=49897241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310446407.2A Pending CN103514559A (en) 2013-09-26 2013-09-26 On-line shopping price comparison method and device based on mobile terminal browser

Country Status (1)

Country Link
CN (1) CN103514559A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944876A (en) * 2014-02-27 2014-07-23 小米科技有限责任公司 Router access controlling method and device, and router
CN104616155A (en) * 2015-01-22 2015-05-13 上海钢富电子商务有限公司 Steel trade industry online inquiring and ordering method and steel trade industry online inquiring and ordering system
CN104657177A (en) * 2015-02-12 2015-05-27 北京深思数盾科技有限公司 Program automatic update method
CN105427154A (en) * 2015-11-09 2016-03-23 无锡阅威信息科技有限公司 Virtual shopping trolley system for network
CN106157109A (en) * 2016-06-24 2016-11-23 北京奇虎科技有限公司 price comparing method, device and terminal
CN106688007A (en) * 2015-10-08 2017-05-17 华为技术有限公司 Online shopping method and related equipment
CN107256509A (en) * 2017-05-27 2017-10-17 北京小米移动软件有限公司 Price comparing method and device, terminal, server and storage medium
CN107395857A (en) * 2017-06-05 2017-11-24 维沃移动通信有限公司 A kind of correlating event based reminding method and mobile terminal
CN108664609A (en) * 2018-05-10 2018-10-16 中国银行股份有限公司 A kind of method of data sharing, the network equipment and terminal
CN109118325A (en) * 2018-08-02 2019-01-01 广州友米科技有限公司 More electric business shopping saving systems and real-time price comparing method
CN111815398A (en) * 2020-06-09 2020-10-23 深圳市元征科技股份有限公司 Information pushing method, information pushing device and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867266A (en) * 2012-08-27 2013-01-09 北京联时空网络通信设备有限公司 Inquiry method and device
CN102930453A (en) * 2012-09-25 2013-02-13 深圳市记我账上网络科技有限公司 Method and system for integrating online shopping information
CN103258280A (en) * 2012-02-17 2013-08-21 盛趣信息技术(上海)有限公司 Price comparative method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258280A (en) * 2012-02-17 2013-08-21 盛趣信息技术(上海)有限公司 Price comparative method and system
CN102867266A (en) * 2012-08-27 2013-01-09 北京联时空网络通信设备有限公司 Inquiry method and device
CN102930453A (en) * 2012-09-25 2013-02-13 深圳市记我账上网络科技有限公司 Method and system for integrating online shopping information

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944876B (en) * 2014-02-27 2018-07-06 小米科技有限责任公司 router access control method, device and router
WO2015127754A1 (en) * 2014-02-27 2015-09-03 小米科技有限责任公司 Method and device for router access control and router
CN103944876A (en) * 2014-02-27 2014-07-23 小米科技有限责任公司 Router access controlling method and device, and router
CN104616155A (en) * 2015-01-22 2015-05-13 上海钢富电子商务有限公司 Steel trade industry online inquiring and ordering method and steel trade industry online inquiring and ordering system
CN104616155B (en) * 2015-01-22 2017-04-19 上海找钢网信息科技股份有限公司 Steel trade industry online inquiring and ordering method and steel trade industry online inquiring and ordering system
CN104657177A (en) * 2015-02-12 2015-05-27 北京深思数盾科技有限公司 Program automatic update method
CN106688007A (en) * 2015-10-08 2017-05-17 华为技术有限公司 Online shopping method and related equipment
CN105427154A (en) * 2015-11-09 2016-03-23 无锡阅威信息科技有限公司 Virtual shopping trolley system for network
CN106157109A (en) * 2016-06-24 2016-11-23 北京奇虎科技有限公司 price comparing method, device and terminal
CN107256509A (en) * 2017-05-27 2017-10-17 北京小米移动软件有限公司 Price comparing method and device, terminal, server and storage medium
CN107256509B (en) * 2017-05-27 2021-05-14 北京小米移动软件有限公司 Price comparison method and device, terminal, server and storage medium
CN107395857A (en) * 2017-06-05 2017-11-24 维沃移动通信有限公司 A kind of correlating event based reminding method and mobile terminal
CN107395857B (en) * 2017-06-05 2020-04-10 维沃移动通信有限公司 Associated event reminding method and mobile terminal
CN108664609A (en) * 2018-05-10 2018-10-16 中国银行股份有限公司 A kind of method of data sharing, the network equipment and terminal
CN108664609B (en) * 2018-05-10 2021-04-30 中国银行股份有限公司 Data sharing method, network equipment and terminal
CN109118325A (en) * 2018-08-02 2019-01-01 广州友米科技有限公司 More electric business shopping saving systems and real-time price comparing method
CN111815398A (en) * 2020-06-09 2020-10-23 深圳市元征科技股份有限公司 Information pushing method, information pushing device and server

Similar Documents

Publication Publication Date Title
CN103514559A (en) On-line shopping price comparison method and device based on mobile terminal browser
US10210554B2 (en) System and method for automatically distributing and controlling electronic catalog content from remote merchant computers to a catalog server computer over a communications network
US8833652B2 (en) Product information system and method using a tag and mobile device
US20140164193A1 (en) Electronic receipt system, commodity sales data processing apparatus, electronic receipt management server and method
KR20060101905A (en) Method and system for providing price information of commodity
CN108153848B (en) Method and device for searching light application data and electronic device
CN106415648B (en) Method and system for facilitating transactions
CN103473302A (en) Lock screen information display method, device and system
JP2017528782A (en) System and method for connecting data by routing data through interaction between user and content data
CN201111143Y (en) System for collecting and enquiring commercial product concluded price information
US9626702B2 (en) Method and apparatus for providing embedded transaction modules
CN101887565A (en) Mobile electronic commerce information publishing and interaction platform
CN105488205A (en) Page generation method and page generation apparatus
CN104504068A (en) Browser-based shopping information query method and browser device
JP2008192144A (en) Internet bulletin statement registration system and internet bulletin statement registration method including article merchandising link
CN111861598A (en) Object display method and device, electronic equipment and readable medium
KR20210116854A (en) Method for providing dynamic landing page based on search keyword and apparatus using the same
CN103902598A (en) Mobile terminal and method for querying commodity information
CN105242965A (en) Cloud computing method, cloud server and terminal
CN107798023A (en) Web page resources loading method and web page resources loading device
CN103577601A (en) Method and device for obtaining data
CN103377215A (en) Information promotion method and system
KR100943480B1 (en) Apparatus and method for identifying temporary connector
KR101352259B1 (en) Advertisement providing method for general personal computer or mobile terminal and mobile advertisement building method for supporting the same
JP7402260B2 (en) Information provision device, information provision method, and information provision program

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