CN108255993A - Extract method, apparatus, electronic equipment and the storage medium of service fields - Google Patents

Extract method, apparatus, electronic equipment and the storage medium of service fields Download PDF

Info

Publication number
CN108255993A
CN108255993A CN201711475224.8A CN201711475224A CN108255993A CN 108255993 A CN108255993 A CN 108255993A CN 201711475224 A CN201711475224 A CN 201711475224A CN 108255993 A CN108255993 A CN 108255993A
Authority
CN
China
Prior art keywords
configuration file
page
buries
service fields
bury
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
CN201711475224.8A
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201711475224.8A priority Critical patent/CN108255993A/en
Publication of CN108255993A publication Critical patent/CN108255993A/en
Priority to PCT/CN2018/110432 priority patent/WO2019128392A1/en
Pending legal-status Critical Current

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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the present invention provides a kind of method and apparatus for extracting service fields in the application, the application program is equipped with and buries point module automatically and bury a configuration file;The method includes:Automatic bury buries a configuration file, and detect page jump instruction described in point module reading;When detecting page jump instruction, corresponding service fields are extracted from the URL of the page according to the configuration file that buries;The service fields are sent to server.The embodiment of the present invention is realized can not need to administrator's manual association when burying and to occur automatically by URL associated services fields.

Description

Extract method, apparatus, electronic equipment and the storage medium of service fields
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of side for extracting service fields in the application Method, a kind of device, electronic equipment and storage medium for extracting service fields in the application.
Background technology
Bury a little, be a kind of common collecting method of web analytics, data bury be a little data analysis preparation, Data can just be obtained and analyzed by only burying to have put.
When processing business is buried, the click of user is not only tracked, the behaviors such as slides, want also association user ought Preceding context data is analyzed with auxiliary activities.Such as in hotel's details page, if user clicks fast-selling hotel nearby, Business buries the ID for needing to report the ID (identification number) in current hotel and the fast-selling hotel clicked.
However, a scheme is buried in automation on the market, for example a scheme of burying of Zhuge io etc. needs developer to close manually Connection buries a business datum, for example, developer is manually by the ID in current hotel and the ID in the fast-selling hotel clicked with burying a business Data are associated.The developer in this way, association on the one hand burying a business datum places one's entire reliance upon, on the other hand, exploit person Member will be buried after business datum association scheme writes, if wanting modification, need entire scheme being replaced.
Invention content
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of sides for extracting service fields in the application Method, the application program are equipped with and bury point module automatically and bury a configuration file;The method includes:
Automatic bury buries a configuration file, and detect page jump instruction described in point module reading;
When detecting page jump instruction, corresponding industry is extracted from the URL of the page according to the configuration file that buries Business field;
The service fields are sent to server.
Preferably, the configuration file that buries is distributed by the server in the application program.
Preferably, it further includes:
A configuration file update request is buried to server transmission;It is described to bury a configuration file update request including current Application version number, current Mai Dian configuration files version number;
If in server more recent application program version number higher than current application program version number and/or, it is newest to bury a configuration Fileversion number is higher than current Mai Dian configuration files version number, then receives the newest of server return and bury a configuration file version This number and bury a download address for configuration file incremental update data packet;
A download address for configuration file incremental update data packet is buried from described, a configuration file increment is buried more described in download New data packets;
A configuration file incremental update data packet is buried described in decapsulation, a configuration file incremental update data are buried in acquisition;
A configuration file incremental update data of burying are merged with the configuration file that buries.
Preferably, at least one for burying a configuration file including the following contents:The title of the page buries control a little, Or the parameter name of the service fields of extraction.
Preferably, each page has unique corresponding URL;
When page jump instruction is triggered, the application program jumps to next page by current page;
The corresponding ginseng of parameter name for burying service fields in the URL that the extraction current page is specified in a configuration file The corresponding parameter value of parameter name of service fields in the URL of numerical value and next page.
Preferably, it further includes:
If extracting corresponding service fields failure, the acquiescence service fields of the page are extracted.
Correspondingly, the embodiment of the invention also discloses a kind of device for extracting service fields in the application, it is described to answer It is equipped with program and buries point module automatically and bury a configuration file;The device includes:
Detection module, for automatic bury to be called to bury a configuration file, and detect page jump described in point module reading Instruction;
Extraction module, for when detect page jump instruction when, according to the configuration file that buries from the URL of the page Extract corresponding service fields;
Sending module, for sending the service fields to server.
Preferably, the configuration file that buries is distributed by the server in the application program.
Preferably, it further includes:
The sending module is additionally operable to bury a configuration file update request to server transmission;It is described to bury a configuration File update request includes current application program version number, current Mai Dian configuration files version number;
Receiving module, if for more recent application program version number in server higher than current application program version number and/ Or, newest Mai Dian configuration files version number then receives the server and returns most higher than current Mai Dian configuration files version number Xin Maidian configuration files version number and bury a download address for configuration file incremental update data packet;
Download module for burying a download address for configuration file incremental update data packet from described, buries a little described in download Configuration file incremental update data packet;
Decapsulation module, for decapsulate it is described bury a configuration file incremental update data packet, a configuration file is buried in acquisition Incremental update data;
Data combiners block, for a configuration file incremental update data of burying to be carried out with the configuration file that buries Merge.
Preferably, at least one for burying a configuration file including the following contents:The title of the page buries control a little, Or the parameter name of the service fields of extraction.
Preferably, each page has unique corresponding URL;
When page jump instruction is triggered, the application program jumps to next page by current page;
The corresponding ginseng of parameter name for burying service fields in the URL that the extraction current page is specified in a configuration file The corresponding parameter value of parameter name of service fields in the URL of numerical value and next page.
Preferably, the extraction module if being additionally operable to extract corresponding service fields failure, extracts the silent of the page Recognize service fields.
The embodiment of the invention also discloses a kind of electronic equipment, including memory, processor and are stored in the memory Computer program that is upper and can running on a processor, which is characterized in that the processor performs real during the computer program The method of extraction service fields described in existing above-mentioned any one.
The embodiment of the invention also discloses a kind of storage mediums, are stored thereon with computer program, which is characterized in that the journey The step of extraction service fields described in above-mentioned any one are realized when sequence is executed by processor.
The embodiment of the present invention includes advantages below:
In embodiments of the present invention, application program is equipped with and buries point module automatically and bury a configuration file, described to bury a little automatically Module buries a configuration file described in reading, and detects page jump instruction, when detecting page jump instruction, is buried according to described Point configuration file extracts corresponding service fields from the URL of the page, and sends the service fields to server.In this way, it buries Point can not need to administrator's manual association when generation automatically by URL associated services fields.
Description of the drawings
Fig. 1 is a kind of step flow chart one of the embodiment of the method for service fields of extraction in the application of the present invention;
Fig. 2 is a kind of step flowchart 2 of the embodiment of the method for service fields of extraction in the application of the present invention;
Fig. 3 is a kind of structure diagram of the device embodiment of service fields of extraction in the application of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
With reference to Fig. 1, the step of showing a kind of embodiment of the method for service fields of extraction in the application of the present invention Flow chart one, the application program are equipped with and bury point module automatically and bury a configuration file.
In the present invention, the mobile terminal can have following features:
(1) on hardware systems, equipment has central processing unit, memory, input part and output block, that is, It says, equipment is often the microcomputer devices for having communication function.Furthermore it is also possible to multiple input modes, such as key Disk, mouse, touch screen, transmitter and camera etc., and it can be adjusted input as needed.Meanwhile equipment often has A variety of way of outputs, such as receiver, display screen, can also be adjusted as needed;
(2) on software architecture, equipment must have operating system, as Windows Mobile, Symbian, Palm, Android, iOS etc..Meanwhile these operating systems are more and more open, of the operating system platform exploitation based on these openings Property application program emerge in an endless stream, such as address book, schedule, notepad, calculator and various types of games, it is dramatically full The foot demand of personalized user;
(3) in communication capacity, equipment has flexible access way and high-bandwidth communication performance, and can be selected by The business selected and residing environment, the communication mode selected by adjust automatically, so as to user-friendly.Equipment can support GSM (Global System for Mobile Communication, global system for mobile communications), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), CDMA2000 (Code Division Multiple Access, CDMA), TDSCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), Wi-Fi (WIreless-Fidelity, Wireless Fidelity) and WiMAX (Worldwide Interoperability for Microwave Access, worldwide interoperability for microwave accesses) etc., so as to adapt to multiple types net Network, not only supports speech business, more supports a variety of wireless data services;
(4) in function using upper, equipment more focuses on hommization, personalization and multifunction.With computer technology Development, equipment enter the pattern of " human-centred " from the pattern of " facility center management ", are integrated with embedding assembly, control skill Art, artificial intelligence technology and biometrics etc. have fully demonstrated people-oriented objective.Due to the hair of software technology Exhibition, equipment can be adjusted according to demands of individuals and be set, more personalized.Meanwhile equipment is integrated with numerous software and hardwares in itself, Function is also stronger and stronger.
In embodiments of the present invention, the application program specified is installed on the mobile terminal.Specifically, user can make The food and drink such as take-away are bought, and by the application program specified to meal in businessman by network with the application program specified Drink, businessman are evaluated, anyone can see on network businessman, food and drink all evaluations, such as " U.S. group " APP (Application, application program);Wherein, the evaluation for the modes such as evaluation can include word evaluation, picture is evaluated.
In a kind of preferred embodiment of the present invention, each page has unique corresponding URL (Uniform Resource Locator, uniform resource locator).Specifically, each page is no URL in itself in APP, therefore, it is necessary in management The decoupling of the page, that is, one URL of each page tax for APP are carried out by URL in the heart.For example, some hotel of APP Details page, the URL of details page decoupling is imeituan://www.meituan.com/hotel/poi&poiId= 5249291&checkinDate=201708 30&checkoutDate=20180901, then, other pages of APP can Hotel's details page is jumped to by this URL.
Wherein, some main business parameters of each page are carried in URL, for example the URL of hotel's details page is carried Parameter name be exactly this hotel ID, be unified naming method for identical service parameter name specification, such as poiId, OrderId etc. conveniently buries the extraction that the parameter value of parameter name in service fields is done when generation.For example, imeituan:// www.meituan.com/hotel/poi&poiId=5249291&checkinDate=201708 30&checkoutDate In=20180901, " poiId=5249291 " then entitled poiId of expression parameter, and parameter value, that is, the ID in hotel is 524929, in this way, it is exactly " poiId=5249291 " to be extracted when carrying out service fields extraction to the URL.
And administrative center can also carry out redirecting for the page other than the page assignment that can give APP.Specifically, user The use of the page face to face of APP is page A, at this point, user expects jumping to page B, then APP will send a URL and redirect Request, after URL jump requests are received, this URL can be responded either with or without the page by checking for administrative center, if so, will APP is fed back to, APP jumps to the corresponding page according to feedback, it is achieved thereby that jumping to page B from page A.
In a kind of preferred embodiment of the present invention, at least one for burying a configuration file including the following contents:The page Title, bury control a little or extraction service fields parameter name.
Specifically, in a kind of preferred embodiment of the present invention, a configuration file is buried by the server on mobile terminal It distributes in the application program, JSON forms, which in which page, the page buries can specifically illustrate inside configuration file A control needs to bury a little, needs that service fields extracted, that is, which parameter name extracted.For example, hotel's details page one Button, user needs to bury when click to be needed to extract the value of the poiId (parameter name) in current hotel when a little, burying.
It should be noted that the page in APP is there is no URL in itself, be need administrative center by URL come into The decoupling of the row page, so, be not in configuration file the page of direct record APP URL, but the name of the page of APP Claim.
Specifically it may comprise steps of:
Step 101, automatic bury buries a configuration file, and detect page jump instruction described in point module reading.
By taking " group of U.S. " APP as an example, when icon of the user in desktop click " group of U.S. " APP of mobile terminal, then start It, can be there are one " homepage ", similar to " homepage " in browser when " group of U.S. " APP, APP starts.Certainly, the URL of " homepage " It is the page that administrative center assigns APP.
In embodiments of the present invention, point module is buried automatically can read and bury a configuration file, and detect page jump instruction. The APP pages redirect, and need the support of control, for example, displaying has the picture in some hotel in the APP pages, and picture is and certain What a control was associated, in this way, when user clicks picture, the control being associated actually is clicked, so as to trigger URL jump requests are sent to administrative center, when administrative center detects the URL redirected the related pages, then feed back to APP, APP jumps to related pages according to feedback, during similar to clicking some link in some webpage of browser, jumps to link The effect of the webpage of direction.
Step 102, it when detecting page jump instruction, buries a configuration file according to described from the URL of the page and extracts Corresponding service fields.
It buries a little, is a kind of common collecting method of web analytics.Data, which are buried, is a little divided into primary, middle rank, advanced three Kind mode.It is a little a kind of good privatization deployment data acquisition modes that data, which are buried,.A simple analogy is played, is increased in APP Monitoring point can be clear from user from backstage in this way and do what etc. in this monitoring point.
Data bury be a little data analysis preparation, data can just be obtained and analyzed by only burying to have put, in data After burying a little, it is possible to desired target data is taken, including:
1st, behavioral data:Time, place, personage, interaction, interaction content;
2nd, qualitative data:Browser load condition, mistake exception etc.;
3rd, environmental data:The relevant metadata of browser and geography, operator etc.;
4th, operation data:PV, UV, conversion ratio, retention ratio (very intuitive data);
Redirecting for the page of APP needs control to support, so, in embodiments of the present invention, when user triggers some During control, need first to judge whether to need that the control bury a little.
In embodiments of the present invention, the application program also have bury point SDK (Software Development Kit, Software Development Kit).
SDK is typically all that some software engineers are specific software package, software frame, hardware platform, operating system etc. The set of developing instrument when establishing application software.Software Development Kit includes the phase referring broadly to a kind of software of auxiliary development Close the set of document, example and tool.Software Development Kit, which is some, to be used for by software engineer as specific software package, soft Part frame, hardware platform, operating system etc. create the set of the developing instrument of application software.It can simply be some program Design language provides some files of application programming interfaces API, it is also possible to including can be answered with what certain embedded system communicated Miscellaneous hardware.General tool includes the utility for debugging with other purposes.SDK also often includes code sample, branch The technical notes of holding property or other support documents that doubtful point is clarified for basic reference.
In embodiments of the present invention, SDK can be matched from local burying in a configuration file, if the control of user's triggering There are occurrences in a configuration file is buried for part, then it represents that user triggering control be bury a little, if there is no Occurrence, then it represents that the control of user's triggering does not need to bury a little.
Wherein, it is that administrator is configured in administrative center to bury a configuration file, for example, hotel's details page one is pressed Button, user needs to bury when click to be needed to extract the poiId in current hotel when a little, burying, then administrator is just configured The click event of this button needs to bury a little, needs to win poiId parameters and corresponding value in URL, such as hotel's details page URL be imeituan://www.meituan.com/hotel/poi&poiId=5249291&checkinDate= 201708 30&checkoutDate=20180901, then the parameter of extraction is exactly " poiId ", and the value of parameter is exactly “5249291”。
Certainly, it is local to bury that a configuration file be that APP is configured when installation or APP is being installed Later, user starts what is downloaded during APP from server for the first time, can also be other manner, the embodiment of the present invention does not make this Limitation.
In embodiments of the present invention, it is described when some control is triggered in the page, detect whether the control is deposited The step buried in a configuration file is stored in include:
When the control in the page of the application program is triggered, a Software Development Kit of burying detects the control Whether part is the control buried in a configuration file.
Specifically, when SDK some control detected in the page of APP is triggered, the identification information of the control is obtained, Then identification information is matched with burying a configuration file, if there are occurrences, then it represents that the control of user's triggering is desirable Bury a little, if there is no match item, then it represents that the control of user's triggering does not need to bury a little.
Step 103, the service fields are sent to server.
In a kind of preferred embodiment of the present invention, buried a little for control generation according to the configuration file that buries, and The step of extracting corresponding service fields according to the page includes:
When page jump instruction is triggered, the application program jumps to next page by current page;
The corresponding ginseng of parameter name for burying service fields in the URL that the extraction current page is specified in a configuration file The corresponding parameter value of parameter name of service fields in the URL of numerical value and next page.
For example, when user clicks the button of hotel's details page, SDK, which can be checked, buries a configuration file, it is found that this A control, which is stored in, to be buried in a configuration file, then will be generated and once be buried a little, moreover, burying can illustrate to need in a configuration file Need parameter name, the parameter value for the service fields extracted, then, SDK will be from current URL " imeituan:// www.meituan.com/hotel/poi&poiId=5249291&checkinDate=2017 0830&checkoutDate Extracting parameter name " poiId " and parameter value " 5249291 " in=20180901 ".
When the page jump of APP is completed to next page, SDK also will continue to the service fields of extraction next page. For example, URL " the imeituan from next page://www.meituan.com/hotel/poi&poiId=6542314& CheckinDate=2 0070101&checkoutDate=20070131 " extracting parameters names " poiId " and parameter value “6542314”。
In a kind of preferred embodiment of the present invention, if extracting corresponding service fields failure, the silent of the page is extracted Recognize service fields.
In practical applications, it is possible to will appear and bury in a configuration file explanation and to extract " poiId " parameter and its parameter Value, but there is no " poiId " parameter in URL, at this point, extracting corresponding service fields failure, then in this case, just Extraction APP current pages and the acquiescence service fields of the URL of next page that redirect, that is, give tacit consent to parameter name, parameter Value.Or by taking the button of hotel's details page as an example, if the poiId fields of specific extraction URL are not configured, SDK will give tacit consent to The service fields of extraction.Wherein, service fields include 7 service fields such as such as dealId, orderId.
Specifically, being stored with the pre-configured configuration file that buries of administrator in server, (administrator is in administrative center Middle configuration is sent to server after the completion of configuration), APP from server for the first time in use, can download pre-configured A configuration file is buried, during use, if the service fields a little and extracted of burying of generation are not belonging to preset bury and a little match Put file, then the service fields a little and extracted of burying of generation can be sent to server by APP, and server sends APP It buries and is a little buried in a configuration file to preset with service fields update, a little matched in this way, mobile terminal buries again from server download When putting file, it is new bury a configuration file just comprising reported before APP bury a little with service fields, on other mobile terminals APP is for the first time in use, the configuration file that buries downloaded to is exactly updated to bury a configuration file.
In embodiments of the present invention, application program is equipped with and buries point module automatically and bury a configuration file, described to bury a little automatically Module buries a configuration file described in reading, and detects page jump instruction, when detecting page jump instruction, is buried according to described Point configuration file extracts corresponding service fields from the URL of the page, and sends the service fields to server.In this way, it buries Point can not need to administrator's manual association when generation automatically by URL associated services fields, moreover, by associated services After field extracts, it is uploaded to server, the service fields of upload can be updated to by server preset buries a configuration text In part, realize and the dynamic for burying a configuration file is changed, flexible configuration.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
With reference to Fig. 2, the step of showing a kind of embodiment of the method for service fields of extraction in the application of the present invention Flowchart 2, the application program are equipped with and bury point module automatically and bury a configuration file;Specifically it may comprise steps of:
Step 201, automatic bury buries a configuration file, and detect page jump instruction described in point module reading;.
Step 202, it when detecting page jump instruction, buries a configuration file according to described from the URL of the page and extracts Corresponding service fields.
In practical applications, for ensure it is local bury a configuration file be it is newest bury a configuration file, APP can be by local The version number for burying a configuration file, current APP version numbers are sent to server and bury the update request of configuration file and send To server.
Step 203, the service fields are sent to server;
Step 204, if more recent application program version number higher than current application program version number and/or newest buries in server Point configuration file version number then receives the newest of the server return and buries a configuration higher than current Mai Dian configuration files version number Fileversion number and bury a download address for configuration file incremental update data packet.
Specifically, be stored in server administrator it is pre-configured bury a configuration file, still, each user makes During, new data more or less can be all uploaded to server, so, server, which can constantly update, buries a configuration text Part, therefore, the version number of configuration file can also be constantly updated, when server receive mobile terminal transmission bury a configuration file After update request, the version number of APP newest in the version number of APP in mobile terminal and server can be become attached to, it will be in APP Bury a configuration file version number and server in the newest version number for burying a configuration file compared, if newest in server Application version number higher than current application program version number and/or, newest Mai Dian configuration files version number is higher than currently burying a little Configuration file version number, then server obtains incremental update file according to the difference of Mai Dian configuration files version number, for example, Current Mai Dian configuration files version number is 10.1.25 in APP, and newest Mai Dian configuration files version number is in server 10.1.64, then server can obtain 10.1.25 and upgrade to the required incremental update files of 10.1.64, and based on increment more Then newest Mai Dian configuration files version number, download address are sent to mobile terminal by new file generated download address, mobile whole End receives newest Mai Dian configuration files version number and buries a download address for configuration file incremental update data packet.
When APP latest edition numbers are higher than APP version numbers in server, and Mai Dian configuration files version number without update or More recent application program version number is higher than current application program version number in server, while newest Mai Dian configuration files version number is high When current Mai Dian configuration files version number, update method does not just repeat herein as the above method.
Step 205, a download address for configuration file incremental update data packet is buried from described, a configuration text is buried described in download Part incremental update data packet.
Mobile terminal is after receiving and burying a download address for configuration file incremental update data packet, it is possible to from the download A configuration file incremental update data packet is buried described in downloading in address.
Step 206, a configuration file incremental update data packet is buried described in decapsulation, a configuration file incremental update is buried in acquisition Data.
Step 207, a configuration file incremental update data of burying are merged with the configuration file that buries.
Because being incremental update, incremental update data are added to burying for local can in configuration file.
In embodiments of the present invention, when user launches application after, application program can to server send bury a little Configuration file update request, if there is update in server, server can bury a configuration file according to update file generated and increase The download address of amount updated data package feeds back to application program, and application program buries a configuration file increment more from download address download New data packets are simultaneously updated this buried configuration file, then come again according to the newest configuration file that buries to application program The page bury a little and the extraction of service fields.In this way, application program can constantly update the local configuration file that buries, protect The instantaneity and accuracy rate for burying a configuration file have been demonstrate,proved, moreover, because being updated by the way of incremental update, Reduce the hardware spending of server, mobile terminal, while save flow when configuration file is buried in update.
With reference to Fig. 3, a kind of structure of the device embodiment of service fields of extraction in the application of the present invention is shown Block diagram, the application program are equipped with and bury point module automatically and bury a configuration file;Following module can specifically be included:
Detection module 301, for automatic bury to be called to bury a configuration file described in point module reading, and detect page jump Turn instruction;
Extraction module 302, for when detect page jump instruction when, according to the configuration file that buries from the page Corresponding service fields are extracted in URL;
Sending module 303, for sending the service fields to server.
In a kind of preferred embodiment of the present invention, it is described bury a configuration file distributed by the server it is described using journey In sequence.
In a kind of preferred embodiment of the present invention, further include:
The sending module is additionally operable to bury a configuration file update request to server transmission;It is described to bury a configuration File update request includes current application program version number, current Mai Dian configuration files version number;
Receiving module, for more recent application program version number in the server higher than current application program version number and/or Newest Mai Dian configuration files version number is higher than current Mai Dian configuration files version number, then receives newest the burying of the server return It puts configuration file version number and buries a download address for configuration file incremental update data packet;
Download module, the download address for burying a configuration file incremental update data packet from described download described in bury and a little match Put file increment updated data package;
Decapsulation module, for decapsulate it is described bury a configuration file incremental update data packet, a configuration file is buried in acquisition Incremental update data;
Data combiners block, for a configuration file incremental update data of burying to be carried out with the configuration file that buries Merge.
In a kind of preferred embodiment of the present invention, at least one for burying a configuration file including the following contents:The page Title, bury control a little or extraction service fields parameter name.
In a kind of preferred embodiment of the present invention, each page has unique corresponding URL;
When page jump instruction is triggered, the application program jumps to next page by current page;
The corresponding ginseng of parameter name for burying service fields in the URL that the extraction current page is specified in a configuration file The corresponding parameter value of parameter name of service fields in the URL of numerical value and next page.
In a kind of preferred embodiment of the present invention, the extraction module is additionally operable to extracting corresponding service fields failure When, extract the acquiescence service fields of the page.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Preferably, the embodiment of the present invention also provides electronic equipment, including memory, processor and is stored in the memory Computer program that is upper and can running on a processor, the processor realize said extracted industry when performing the computer program Each process of the embodiment of the method for field of being engaged in, and identical technique effect can be reached, it is repeated to avoid, which is not described herein again.
The embodiment of the present invention also provides a kind of storage medium, is stored thereon with computer program, which is held by processor Each process of the embodiment of the method for said extracted service fields is realized during row, and identical technique effect can be reached, to avoid It repeats, which is not described herein again.Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates packet The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps are performed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
Above to the method and one kind of a kind of service fields of extraction in the application provided by the present invention using journey Device, electronic equipment and the storage medium of service fields are extracted in sequence, is described in detail, specific case used herein The principle of the present invention and embodiment are expounded, the explanation of above example is only intended to help to understand side of the invention Method and its core concept;Meanwhile for those of ordinary skill in the art, thought according to the present invention, in specific embodiment And there will be changes in application range, in conclusion the content of the present specification should not be construed as limiting the invention.

Claims (14)

  1. A kind of 1. method for extracting service fields in the application, which is characterized in that the application program is equipped with and buries a little automatically Module and bury a configuration file;The method includes:
    Automatic bury buries a configuration file, and detect page jump instruction described in point module reading;
    When detecting page jump instruction, corresponding business word is extracted from the URL of the page according to the configuration file that buries Section;
    The service fields are sent to server.
  2. 2. according to the method described in claim 1, it is characterized in that, the configuration file that buries distributes institute by the server It states in application program.
  3. 3. it according to the method described in claim 2, it is characterized in that, further includes:
    A configuration file update request is buried to server transmission;It is described to bury the update request of configuration file and include current application Program version number, current Mai Dian configuration files version number;
    If more recent application program version number higher than current application program version number and/or newest buries a configuration file version in server This number is higher than current Mai Dian configuration files version number, then receives the newest Mai Dian configuration files version number that the server returns, And bury a download address for configuration file incremental update data packet;
    A download address for configuration file incremental update data packet is buried from described, a configuration file incremental update number is buried described in download According to packet;
    A configuration file incremental update data packet is buried described in decapsulation, a configuration file incremental update data are buried in acquisition;
    A configuration file incremental update data of burying are merged with the configuration file that buries.
  4. 4. according to any one of them method of claims 1 to 3, which is characterized in that the configuration file that buries is including following At least one of content:The title of the page buries control a little or the parameter name of the service fields of extraction.
  5. 5. according to any one of them method of claims 1 to 3, which is characterized in that each page has unique corresponding URL;
    When page jump instruction is triggered, the application program jumps to next page by current page;
    The corresponding parameter value of parameter name for burying service fields in the URL that the extraction current page is specified in a configuration file And in the URL of next page service fields the corresponding parameter value of parameter name.
  6. 6. it according to the method described in claim 1, it is characterized in that, further includes:
    If extracting corresponding service fields failure, the acquiescence service fields of the page are extracted.
  7. 7. a kind of device for extracting service fields in the application, which is characterized in that the application program is equipped with and buries a little automatically Module and bury a configuration file;The device includes:
    Detection module, for automatic bury to be called to bury a configuration file described in point module reading, and detect page jump instruction;
    Extraction module for when detecting page jump instruction, buries a configuration file from the URL of the page and extracts according to described Corresponding service fields;
    Sending module, for sending the service fields to server.
  8. 8. device according to claim 7, which is characterized in that the configuration file that buries distributes institute by the server It states in application program.
  9. 9. device according to claim 8, which is characterized in that further include:
    The sending module is additionally operable to bury a configuration file update request to server transmission;It is described to bury a configuration file Update request includes current application program version number, current Mai Dian configuration files version number;
    Receiving module, for more recent application program version number in the server higher than current application program version number and/or newest When Mai Dian configuration files version number is higher than current Mai Dian configuration files version number, receives newest bury that the server returns and a little match It puts fileversion number and buries a download address for configuration file incremental update data packet;
    Download module, for burying a configuration text from described in the download address download for burying a configuration file incremental update data packet Part incremental update data packet;
    Decapsulation module, for decapsulate it is described bury a configuration file incremental update data packet, a configuration file increment is buried in acquisition It updates the data;
    Data combiners block, for a configuration file incremental update data of burying to be closed with the configuration file that buries And.
  10. 10. according to any one of them device of claim 7 to 9, which is characterized in that the configuration file that buries is including following At least one of content:The title of the page buries control a little or the parameter name of the service fields of extraction.
  11. 11. according to any one of them device of claim 7 to 9, which is characterized in that each page has unique corresponding URL;
    When page jump instruction is triggered, the application program jumps to next page by current page;
    The corresponding parameter value of parameter name for burying service fields in the URL that the extraction current page is specified in a configuration file And in the URL of next page service fields the corresponding parameter value of parameter name.
  12. 12. device according to claim 7, which is characterized in that the extraction module is additionally operable to extracting corresponding business When field fails, the acquiescence service fields of the page are extracted.
  13. 13. a kind of electronic equipment, including memory, processor and it is stored on the memory and can runs on a processor Computer program, which is characterized in that the processor realizes claim 1 to 6 any one when performing the computer program The method of the extraction service fields.
  14. 14. a kind of storage medium, is stored thereon with computer program, which is characterized in that the program is realized when being executed by processor The step of extraction service fields described in claim 1 to 6 any one.
CN201711475224.8A 2017-12-29 2017-12-29 Extract method, apparatus, electronic equipment and the storage medium of service fields Pending CN108255993A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711475224.8A CN108255993A (en) 2017-12-29 2017-12-29 Extract method, apparatus, electronic equipment and the storage medium of service fields
PCT/CN2018/110432 WO2019128392A1 (en) 2017-12-29 2018-10-16 Method and apparatus for extracting service field, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711475224.8A CN108255993A (en) 2017-12-29 2017-12-29 Extract method, apparatus, electronic equipment and the storage medium of service fields

Publications (1)

Publication Number Publication Date
CN108255993A true CN108255993A (en) 2018-07-06

Family

ID=62724578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711475224.8A Pending CN108255993A (en) 2017-12-29 2017-12-29 Extract method, apparatus, electronic equipment and the storage medium of service fields

Country Status (2)

Country Link
CN (1) CN108255993A (en)
WO (1) WO2019128392A1 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040252A (en) * 2018-08-07 2018-12-18 平安科技(深圳)有限公司 Document transmission method, system, computer equipment and storage medium
CN109669716A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Page control method, device, equipment and readable storage medium storing program for executing
CN109684583A (en) * 2018-11-12 2019-04-26 深圳壹账通智能科技有限公司 Analysis method, device, terminal and the readable storage medium storing program for executing of Page user behavior
WO2019128392A1 (en) * 2017-12-29 2019-07-04 北京三快在线科技有限公司 Method and apparatus for extracting service field, and electronic device and storage medium
CN110099101A (en) * 2019-04-01 2019-08-06 厦门美柚信息科技有限公司 It is a kind of to bury method, system, equipment and its a storage medium for dynamic setting
CN110263070A (en) * 2019-05-30 2019-09-20 北京创鑫旅程网络技术有限公司 Event report method and device
CN110515821A (en) * 2019-08-30 2019-11-29 北京东软望海科技有限公司 Based on the event-handling method, electronic equipment and computer storage medium buried a little
CN110750431A (en) * 2019-10-24 2020-02-04 阿里巴巴(中国)有限公司 Data buried point configuration method and device
CN111371649A (en) * 2020-03-03 2020-07-03 恒为科技(上海)股份有限公司 Deep packet detection method and device
CN111375200A (en) * 2018-12-28 2020-07-07 广州市百果园网络科技有限公司 Method and system for intelligently configuring game resources, computer storage medium and equipment
CN111459511A (en) * 2020-03-31 2020-07-28 北京百度网讯科技有限公司 Application program downloading method and device and electronic equipment
CN111858293A (en) * 2019-11-21 2020-10-30 北京嘀嘀无限科技发展有限公司 Detection method, detection device, electronic equipment and readable storage medium
KR20210066012A (en) * 2020-02-19 2021-06-04 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Mini App Material Handling Methods, Devices, Electronic Equipment and Media
CN113010395A (en) * 2021-03-02 2021-06-22 中国工商银行股份有限公司 Data acquisition method, apparatus, device, medium, and program product
JP2022524670A (en) * 2020-02-19 2022-05-10 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Applet material processing methods, appliances, electronic devices, computer-readable storage media and computer programs

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741046B (en) * 2019-11-07 2023-01-31 北京沃东天骏信息技术有限公司 Data reporting method, data acquisition method, device, equipment and medium
CN113821193B (en) * 2020-11-26 2023-09-26 北京京东振世信息技术有限公司 Information generation method, device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079768A (en) * 2006-05-25 2007-11-28 阿里巴巴公司 A method for computing click data of webpage link
CN105721224A (en) * 2016-03-31 2016-06-29 网易(杭州)网络有限公司 Method, device and system for processing uniform resource locator
CN105786965A (en) * 2016-01-27 2016-07-20 久远谦长(北京)技术服务有限公司 URL-based user behavior analysis method and device
CN106446113A (en) * 2016-09-18 2017-02-22 成都九鼎瑞信科技股份有限公司 Mobile big data analysis method and device
CN106469185A (en) * 2016-08-29 2017-03-01 浪潮电子信息产业股份有限公司 Method for collecting data in website statistics
CN106528432A (en) * 2016-12-12 2017-03-22 北京三快在线科技有限公司 Construction method and apparatus for test scene data, and buried point test method
CN106649120A (en) * 2016-12-28 2017-05-10 中国银联股份有限公司 Data acquisition method, and data analysis method and system
CN106844217A (en) * 2017-01-26 2017-06-13 网易(杭州)网络有限公司 Control to applying bury method and device, readable storage medium storing program for executing a little
CN107025222A (en) * 2016-01-29 2017-08-08 五八同城信息技术有限公司 A kind of distributed information log acquisition method and device
CN107436832A (en) * 2016-05-27 2017-12-05 阿里巴巴集团控股有限公司 A kind of dynamic buries method, apparatus and electronic equipment a little

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220230A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of information collecting method and device, and a kind of intelligent terminal
CN106909372B (en) * 2017-01-23 2020-08-18 武汉奇米网络科技有限公司 Method and system for calculating purchase path of mobile terminal user
CN107343091A (en) * 2017-06-27 2017-11-10 努比亚技术有限公司 Data reporting method and system
CN108255993A (en) * 2017-12-29 2018-07-06 北京三快在线科技有限公司 Extract method, apparatus, electronic equipment and the storage medium of service fields

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079768A (en) * 2006-05-25 2007-11-28 阿里巴巴公司 A method for computing click data of webpage link
CN105786965A (en) * 2016-01-27 2016-07-20 久远谦长(北京)技术服务有限公司 URL-based user behavior analysis method and device
CN107025222A (en) * 2016-01-29 2017-08-08 五八同城信息技术有限公司 A kind of distributed information log acquisition method and device
CN105721224A (en) * 2016-03-31 2016-06-29 网易(杭州)网络有限公司 Method, device and system for processing uniform resource locator
CN107436832A (en) * 2016-05-27 2017-12-05 阿里巴巴集团控股有限公司 A kind of dynamic buries method, apparatus and electronic equipment a little
CN106469185A (en) * 2016-08-29 2017-03-01 浪潮电子信息产业股份有限公司 Method for collecting data in website statistics
CN106446113A (en) * 2016-09-18 2017-02-22 成都九鼎瑞信科技股份有限公司 Mobile big data analysis method and device
CN106528432A (en) * 2016-12-12 2017-03-22 北京三快在线科技有限公司 Construction method and apparatus for test scene data, and buried point test method
CN106649120A (en) * 2016-12-28 2017-05-10 中国银联股份有限公司 Data acquisition method, and data analysis method and system
CN106844217A (en) * 2017-01-26 2017-06-13 网易(杭州)网络有限公司 Control to applying bury method and device, readable storage medium storing program for executing a little

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128392A1 (en) * 2017-12-29 2019-07-04 北京三快在线科技有限公司 Method and apparatus for extracting service field, and electronic device and storage medium
CN109040252A (en) * 2018-08-07 2018-12-18 平安科技(深圳)有限公司 Document transmission method, system, computer equipment and storage medium
CN109669716A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Page control method, device, equipment and readable storage medium storing program for executing
CN109684583A (en) * 2018-11-12 2019-04-26 深圳壹账通智能科技有限公司 Analysis method, device, terminal and the readable storage medium storing program for executing of Page user behavior
CN111375200A (en) * 2018-12-28 2020-07-07 广州市百果园网络科技有限公司 Method and system for intelligently configuring game resources, computer storage medium and equipment
CN111375200B (en) * 2018-12-28 2021-05-28 广州市百果园网络科技有限公司 Method and system for intelligently configuring game resources, computer storage medium and equipment
CN110099101A (en) * 2019-04-01 2019-08-06 厦门美柚信息科技有限公司 It is a kind of to bury method, system, equipment and its a storage medium for dynamic setting
CN110263070B (en) * 2019-05-30 2021-10-08 北京创鑫旅程网络技术有限公司 Event reporting method and device
CN110263070A (en) * 2019-05-30 2019-09-20 北京创鑫旅程网络技术有限公司 Event report method and device
CN110515821B (en) * 2019-08-30 2023-11-14 望海康信(北京)科技股份公司 Event processing method based on buried point, electronic equipment and computer storage medium
CN110515821A (en) * 2019-08-30 2019-11-29 北京东软望海科技有限公司 Based on the event-handling method, electronic equipment and computer storage medium buried a little
CN110750431A (en) * 2019-10-24 2020-02-04 阿里巴巴(中国)有限公司 Data buried point configuration method and device
CN110750431B (en) * 2019-10-24 2023-11-03 阿里巴巴(中国)有限公司 Data embedded point configuration method and device
CN111858293A (en) * 2019-11-21 2020-10-30 北京嘀嘀无限科技发展有限公司 Detection method, detection device, electronic equipment and readable storage medium
JP7249406B2 (en) 2020-02-19 2023-03-30 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Applet material processing method, apparatus, electronic device, computer readable storage medium and computer program
JP2022524670A (en) * 2020-02-19 2022-05-10 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Applet material processing methods, appliances, electronic devices, computer-readable storage media and computer programs
KR20210066012A (en) * 2020-02-19 2021-06-04 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Mini App Material Handling Methods, Devices, Electronic Equipment and Media
KR102647732B1 (en) * 2020-02-19 2024-03-15 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Mini App material processing methods, devices, electronic equipment and media
CN111371649A (en) * 2020-03-03 2020-07-03 恒为科技(上海)股份有限公司 Deep packet detection method and device
CN111459511A (en) * 2020-03-31 2020-07-28 北京百度网讯科技有限公司 Application program downloading method and device and electronic equipment
CN113010395A (en) * 2021-03-02 2021-06-22 中国工商银行股份有限公司 Data acquisition method, apparatus, device, medium, and program product

Also Published As

Publication number Publication date
WO2019128392A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
CN108255993A (en) Extract method, apparatus, electronic equipment and the storage medium of service fields
CN106528432B (en) The construction method and device of test scene data bury a test method
KR102317535B1 (en) Methods and systems for implementing data tracking with software development kits
US9483388B2 (en) Discovery of application states
CN103150513B (en) The method of the implantation information in interception application program and device
CN104423983B (en) For developing, testing and the method and apparatus of application deployment
CN104067276B (en) Client-side minimum is downloaded and the page navigation feature of simulation
US8880567B2 (en) Discovery and management of configuration data contained within mashups
CN107168726A (en) A kind of method and apparatus of dynamic configuration application program
CN103152392B (en) Installation kit supplying method, acquisition methods, equipment and system
CN101405723A (en) Estimation of initial dynamic rendering control data
US9983769B2 (en) Transitioning browser tabs from one environment context to another
CN104615700A (en) Method for collecting webpage objects in browser, browser client side and system
WO2016145009A1 (en) Method and system for rapid deployment and execution of customized functionality across multiple distinct platforms
CN104142788A (en) Terminal application sharing method and intelligent terminal
CN102629194B (en) Novel application store adaptor facing mobile terminals
CN100458782C (en) Display and installation of portlets on a client platform
WO2019157275A1 (en) Techniques for selecting additional links
CN105808642A (en) Recommendation method and device
CN110780894B (en) Thermal upgrade processing method and device and electronic equipment
CN105739717B (en) Data inputting method and device
CN107608672A (en) A kind of UI module managements, UI module management methods and system
CN109582347B (en) Method and device for acquiring front-end codes
JP6300750B2 (en) Verification program, verification apparatus, and verification method
US9342530B2 (en) Method for skipping empty folders when navigating a file system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706

RJ01 Rejection of invention patent application after publication