CN108763512A - A kind of information processing method, device and server - Google Patents
A kind of information processing method, device and server Download PDFInfo
- Publication number
- CN108763512A CN108763512A CN201810541872.7A CN201810541872A CN108763512A CN 108763512 A CN108763512 A CN 108763512A CN 201810541872 A CN201810541872 A CN 201810541872A CN 108763512 A CN108763512 A CN 108763512A
- Authority
- CN
- China
- Prior art keywords
- information
- target
- query result
- content
- information content
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of information processing method, device and servers.Wherein method may include:It obtains query result information and parses the query result information, obtain the information content that the query result information includes;To determine information type according to described information content;Further, the corresponding target information report template of described information type is inquired in the database, and the corresponding information report template of at least one information type is stored in the database;Finally by described information content matching to the target information report template, reported with generating query result.Automation parsing can be carried out to query result information using the embodiment of the present invention, and generate query result report, improve the treatment effeciency to query result information.
Description
Technical field
The present invention relates to a kind of computer realm more particularly to information processing method, device and servers.
Background technology
In today's society, user can pass through effective identity certificate to the feelings such as the credit of bank's querying individual and loan
Condition namely reference situation, in order to user according to the credit situation of oneself determine whether loan buy house, buying car or progress
Other related transaction of providing a loan.Currently, the method that bank provides user's reference situation is typically the user that server will inquire
Reference situation is returned with labeling language html format, and staff understands the information of these html formats, and will be interpreted and
Information filling table in, generate a reference situation report table.Such method needs manually to understand simultaneously html format
Audit, and then reference situation report table, not only waste of manpower are generated according to the content of deciphering, while also reducing reference situation and looking into
The efficiency of inquiry.
Invention content
An embodiment of the present invention provides a kind of information processing method, device and server, can to query result information into
Row automation parsing, and query result report is generated, improve the treatment effeciency to query result information.
In a first aspect, an embodiment of the present invention provides a kind of information processing methods, including:
Query result information is parsed, the information content that query result information includes is obtained;
Information type is determined according to the information content;
The corresponding target information report template of Query Information type in the database stores at least one information in database
The corresponding information report template of type;
The information content is matched in target information report template, to generate query result report.
Optionally, the information content is matched in target information report template, including:
Determine the target location in target information report template;
The target information content needed for target location is obtained from the information content;
Target information content is filled up to target location.
Optionally, the target location in target information report template is determined, including:
The target location in target information report template is positioned using configuration file, configuration file includes needing in fill message
The location information of the position of appearance.
Optionally, the target information content needed for target location is obtained from the information content, including:
Determine the information content item title needed for target location;
Target information content corresponding with information content item title is searched from the information content.
Optionally, target information content corresponding with information content item title is searched from the information content, including:
Obtain the corresponding regular expression of information content item title;
It is searched and the information content of regular expression matching from the information content using regular expression;
Target information content corresponding with information content item title is extracted from the matched information content.
Optionally, the information content item title needed for target location is determined, including:
Obtain the content at the previous position of target location in target information report template;
Using the content at previous position as the information content item title needed for target location.
Optionally, query result information is parsed, the information content that query result information includes is obtained, including:
Query result information is parsed using html tag analysis mode, is obtained in the information that query result information includes
Hold.
Second aspect, an embodiment of the present invention provides a kind of information processing units, including:
Acquiring unit, for obtaining query result information, the format of query result information is labeling language HTML;
Resolution unit obtains the information content that query result information includes for parsing query result information;
Determination unit, for determining information type according to the information content;
Query unit is deposited for the corresponding target information report template of Query Information type in the database in database
The corresponding information report template of at least one information type of storage;
Matching unit, for the information content to be matched in target information report template, to generate query result report.
Optionally, matching unit is specifically used for:
Determine the target location in target information report template;
The target information content needed for target location is obtained from the information content;
Target information content is filled up to target location.
Optionally, the target location in target information report template is determined, including:
The target location in target information report template is positioned using configuration file, configuration file includes needing in fill message
The location information of the position of appearance.
Optionally, the target information content needed for target location is obtained from the information content, including:
Determine the information content item title needed for target location;
Target information content corresponding with information content item title is searched from the information content.
Optionally, target information content corresponding with information content item title is searched from the information content, including:
Obtain the corresponding regular expression of information content item title;
It is searched and the information content of regular expression matching from the information content using regular expression;
Target information content corresponding with information content item title is extracted from the matched information content
Optionally, the information content item title needed for target location is determined, including:
Obtain the content at the previous position of target location in target information report template;
Using the content at previous position as the information content item title needed for target location.
Optionally, resolution unit is specifically used for:
Query result information is parsed using html tag analysis mode, is obtained in the information that query result information includes
Hold.
The third aspect, the embodiment of the present invention additionally provide a kind of server, including processor, network interface and memory,
Processor, network interface and memory interconnect, wherein for storing computer program, computer program includes memory
Program instruction, processor are configured for the information processing method of caller instruction execution first aspect.
Correspondingly, the embodiment of the present invention additionally provides a kind of computer storage media, and computer storage media is stored with meter
Calculation machine program, computer program include program instruction, and the information processing of first aspect is executed when program instruction is executed by processor
Method.
Server of the embodiment of the present invention parses the query result information got to obtain the information content, further
Information type is determined according to the information content, and target information report template is found according to the information type in the database.It connects
It, the information content is matched in target information report template to generate query result report by server, is realized and is tied to inquiry
Fruit information automation parses, and generates query result report, improves the treatment effeciency to query result information.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of information processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of showing for method that the information content is matched to target information report template provided in an embodiment of the present invention
It is intended to;
Fig. 3 is the flow diagram of another information processing method provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram for the method that a kind of configuration file provided in an embodiment of the present invention determines target location;
Fig. 5 is the method that the information content is matched to target information report template by another kind provided in an embodiment of the present invention
Schematic diagram;
Fig. 6 is a kind of structural schematic diagram of information processing unit provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific implementation mode
Below in conjunction with the accompanying drawings, embodiments herein is described.
In the research handled query result information, the processing of reference information is especially returned to bank or other mechanisms
Research when find, it is all labeling language (Hyper that server, which receives the reference information that bank or other mechanisms return,
Text Markup Language, HTML) format information, staff needs the information of these html formats of human interpretation,
And filled out the information come is interpreted in corresponding table, a reference situation report table is generated, for subsequent data analysis and certainly
Used in dynamicization audit.Such method needs that manually html format is understood and audited, and then is generated according to the content of deciphering
Reference situation report table, not only waste of manpower, while also reducing the efficiency of reference status inquiry.The embodiment of the present application proposes
A kind of information processing method:Server is obtained by being parsed to the query result information got in query result information
Including the information content, and can determine information type according to the information content;Then, server according to information type in the database
Inquire target information report template;Further, the information content that parsing obtains is matched to target information report mould by server
It to generate query result report in plate, realizes and parsing is automated to query result information, and generate query result report, promoted
To the treatment effeciency of query result information.
It is a kind of flow diagram of information processing method provided by the embodiments of the present application with reference to figure 1.The information processing side
Method can be applicable to the People's Bank's reference inquiry field, information processing method as shown in Figure 1, it may include following steps:
S101, server obtain query result information.
Wherein, the format of query result information can be HTML, and query result information can be reference information, loan letter
Breath, credit card application information can be the information of other any html formats.Optionally, server obtains query result letter
Breath can be information that server is got from other databases or other mechanisms, for example server is obtained from bank server
Reference information.For example, in a kind of feasible application scenarios of the present embodiment, it is assumed that user wishes through the sign in terminal
Believe that the reference situation of inquiry system querying individual, first user can input reference in the reference inquiry system designated position of terminal
Information inquiring request, the inquiry request include user information, such as address name, age and identity etc.;Terminal receives
After the reference information inquiring request of user, which is sent to server;Server inquires Institution Services to reference
Device such as bank server sends the inquiry request;Reference inquiry authority server inquires query result according to the inquiry request
Information, and the query result information is sent to server;So far, server gets query result information.
Optionally, it can also be that server is got from local data base that server, which gets query result information,
Assuming that server stores the query result information got in the local database in the example above, if next server
The inquiry request of the same user is received, then server can obtain query result information from local data.
S102, server parse query result information, obtain the information content that query result information includes.
S103, server determine information type according to the information content.
Optional in S102, server parses query result information, obtains in the information that query result information includes
Hold, including:Server by utilizing html tag analysis mode parses query result information, obtains the letter that query result information includes
Cease content.That is, since the query result information format that server is got is html format, parsed using html tag
Mode can get the information content in query result information.In a kind of feasible embodiment, html tag analysis mode
Can be the parsing of htmlparser resolvers, htmlparser resolvers can carry out effective information search to HTML, extract text
This information and local can will be stored in the content that HTML is parsed.In another feasible embodiment, HTML
Tag resolution mode can be beautifulsoup4, and beautifulsoup4 can extract data from HTML or XML file
Third party library.As an example it is assumed that a part is as follows in the query result information that server is got, it is one section of HTML
Format information:
"<Div class=" title " id=" contenttitle ">Personal credit is reported</div><SPANstyle
=" FONT-FAMILY:The Song typeface "> ; ; ; ; ;Name: ;Champion Ou Yang</SPAN>
</B><B><SPAN style=" FONT-FAMILY:The Song typeface "> ; ;</SPAN></B><B><SPAN style
=" FONT-FAMILY:The Song typeface ">Type of credential:</SPAN></B><B><SPAN style=" FONT-FAMILY:The Song typeface ">
Identity</SPAN></B><B><SPAN style=" FONT-FAMILY:The Song typeface ">Demonstrate,prove  ; ;Passport NO.:</
SPAN></B><B><SPAN style=" FONT-FAMILY:The Song typeface ">41010519750324xxxx ; ;</
SPAN></B><B><SPANstyle=" FONT-FAMILY:The Song typeface ">It is married</SPAN></B></FONT></P>".
Can be seen that query result information in above-mentioned one section of html format query result information includes multiple html tags
Such as SPAN,  ,<B>And style etc..Traditional processing method for the query result is the above-mentioned letter of human interpretation
Each label in breath, the text information for including in conjunction with the segment information generate query result report.But use this kind of method
Reduce the treatment effeciency of query result information.Server can utilize label in the information processing method that the embodiment of the present application proposes
Change language parser htmlparser automatically to parse above-mentioned query result information, obtains the information content and can will parse
The content arrived preserves in the local database, for subsequently using.For example, server by utilizing htmlparser resolvers are to above-mentioned
The information content that a part of query result information parses can be as follows:
" personal credit reports name:Champion's Ou Yang type of credential:Identity card passport NO.:41010519750324xxxx
It is married ".Optional in step s 103, if the information content that S102 is parsed includes information type, server can
Directly to determine that information type, such as the information content obtained in the above example according to parsing are known that according to the information content
Information type is personal credit information.Optionally, if S102 parsings to without including information type, taking in the information content
Business device can determine information type by analyzing the information content.
S104, the server corresponding target information report template of Query Information type in the database.
Optionally, the corresponding information report template of at least one information type is stored in database, that is to say, that data
The information report template quantity stored in library is at least one.For example the information report template stored in database includes:Information
Type is the corresponding reference report template of reference information, information type be the corresponding credit information report template of credit information and
Information type is corresponding credit card application template of credit card application information etc..
Optionally, the corresponding target information report template of Query Information type includes server in the database:Server
According to the corresponding first information report template of information type Query Information type;Obtain first information report template quantity;If the
The quantity of one information report template is one, then the first information report template is determined as above- mentioned information type correspondence by server
Target information report template;If the quantity of first information report template is at least two, server is believed according to query result
The other information that breath includes inquires target information report template from multiple first information report templates.In simple terms, it services
Device inquires first information report template corresponding with the information type according to information type in the database;If server exists
First report template corresponding with above- mentioned information type is only found in database, then server is believed that the first report mould
Plate is the corresponding target reporting template of information type;If server finds at least two and information type pair in the database
The first information report template answered, then server according to the other information in query result information from multiple first information report mould
Selection target report template in plate.Such as, it is assumed that it is true according to query result information after server gets query result information
It is reference information to have determined information type;Server inquires a first information report corresponding with reference information in the database
Template, it is assumed that the first information report template is reference situation report template, then server can be by reference situation report template
It is determined as target information report template.For another example, it is assumed that after server gets query result information, according to query result information
It is determined that information type is credit information;Assuming that server inquires two the first letters corresponding with credit information in the database
Cease report template, it is assumed that be respectively personal loan situation report template and business loan situation report template;Server is according to looking into
Other information such as creditor's classification in result information is ask, target information report is determined from two first information report templates
Template.Assuming that creditor's classification that query result information includes is individual, then server determines personal loan situation report mould
Plate is target information report template.
The information content is matched in target information report template by S105, server, to generate query result report.
Wherein, target information report template may be an all no blank template of what content, i.e. blank inquiry knot
Fruit report such as table 1, it is also possible to have been filled into the template of partial content, i.e. half complete query result report such as table 2.Optionally,
The information content is matched in target information report template server it can be appreciated that the letter arrived that server parses S102
Breath content is filled up to the corresponding position of target information report template so that target information report template becomes looking into for a completion
Result report is ask, in order to be supplied to user to check or staff is supplied to audit.Such as, it is assumed that as shown in Fig. 2, 201
Region indicates some content informations for parsing of S102, region 202 indicates target information report template, and S105 is according to centainly
Rule or method select the information content to be filled up to the corresponding position in region 202 from 201 regions.
1 blank query result of table is reported
2 half complete query result of table is reported
Server of the embodiment of the present invention determines information type according to the query result information got, and according to the info class
Type finds target information report template in the database.Then, server parses query result information, obtains information
Content;Further, the information content that parsing obtains is matched in target information report template to generate inquiry knot by server
Fruit is reported, is realized and is automated parsing to query result information, and generates query result report, is improved to query result information
Treatment effeciency.Server of the embodiment of the present invention is parsed to obtain the information content to the query result information got, into one
Step determines information type according to the information content, and finds target information report mould in the database according to the information type
Plate.Then, the information content is matched in target information report template to generate query result report by server, is realized to looking into
Result information automation parsing is ask, and generates query result report, improves the treatment effeciency to query result information.
It is the flow diagram of another information processing method provided in an embodiment of the present invention, as shown in Figure 3 with reference to figure 3
Information processing method may include following steps:
S301, server obtain query result information.
S302, server parse query result information, obtain the information content that query result information includes.
S303, server determine information type according to the information content.
S304, the server corresponding target information report template of Query Information type in the database.
Optionally, some feasible embodiments that step S301-S304 includes are in the embodiment shown in fig. 1
It specifically describes, details are not described herein.
S305, server determine the target location in target information report template.
S306, server obtain the target information content needed for target location from the information content.
S307, target information content is filled up to target location.
Optionally, server may be implemented to fill in the information content that step S302 is got by step S305-S307
In the target information report template inquired to step S304.
In S305, optionally, target location can be understood as the position for needing to insert the information content in target reporting template
It sets, a target reporting template includes at least one target location.Optionally, server determines the mesh in target reporting template
Cursor position, including:The target location in target information report template is positioned using configuration file, configuration file includes that need to fill in letter
Cease the location information of the position of content.Wherein, configuration file may include the ranks coordinate information for needing fill message content, such as
(1,2) location determination of the first row secondary series in target reporting template is target location by expression server, and (2,4) indicate for another example
The location determination that server arranges the second row the 4th in target reporting template is target location.For example, such as 401 institute in Fig. 4
It is shown as a target reporting template, 402 be the method that target reporting template is converted to corresponding ranks coordinate representation in Fig. 4.
As indicated at 402, name, work unit and educational background, can respectively in different rows;Name and age are to belong to different row.Often
Row where a line is divided into multiple and different row such as names includes 4 row;Row where work unit includes 2 row;It learns
Row where going through includes 4 row.Assuming that the configuration file that server selects is (2,2), then server is in 402 regions of Fig. 4
The position such as region 403 of the second row secondary series is found, and region 403 is determined as target location.Optionally, the number of configuration file
Amount is at least one, each configuration file corresponds to a target location, and server is determined by least one configuration file
At least one target location of fill message content is needed, and then executes step S106, it will be in target information report with realization
All target locations all fill in corresponding contents, obtain a complete query result report.
In S306, optionally, server obtains the target information content needed for target location from the information content, packet
It includes:Determine the information content item title needed for target location;It is searched from the information content corresponding with information content item title
Target information content.Wherein, it is what that information content item title, which is used to indicate the information content that needs are filled in,.In simple terms, exist
After target location is determined, server could execute S307 it needs to be determined that content is the target location will specifically fill in
Target information content is filled up to target location.Assuming that if the server determine that target location such as Fig. 4 in 403 region institutes
Show, then what server determined that 401 needs fill in is a work unit, that is to say, that the information content item title needed for 403
For work unit;If the server determine that target location such as Fig. 4 in shown in region 404, then server determine 404 at needed
The content filled in be someone name, that is to say, that the entitled name of information content item needed at 404;Then in information
Target information content corresponding with information content item title is found in content.For example, region 501 indicates server in Fig. 5
The information content that query result information is parsed;Region 502 is that target reporting template is assumed to be individual in the present embodiment
Credit situation report;Region 503 is some target location in personal credit situation report.Assuming that the target that server determines
Position is 503 regions;Server can determine the entitled educational background of information content item shown in 503 regions;Server is in 501 regions
Search target information content corresponding with educational background, it is assumed that is found is undergraduate course;Then server can perform step S307 and fill out undergraduate course
Write region 502.
Optionally, server determines the information content item title needed for target location, including:Obtain target information report
Content in template at the previous position of target location;Using the content at previous position as the letter needed for target location
Cease content item names.That is, server obtains the information content item needed for target location in target information report template
The method of title can be that the information content at the previous position according to target location determines that such server determines target position
The method for setting the item of information title that place needs more is suitable for the feelings that target information report template is the report of half complete query result
Condition.As an example it is assumed that 403 regions in Fig. 4 are determined as target location by server;Server determines 403 target location places
The method of the information content item title needed can be the content at 403 previous positions of server acquisition --- it can be true by Fig. 4
Content at fixed 403 prior locations is name, then server is using name as the information content item title needed for target location,
I.e. server determines that the content to be filled at target location 403 is the name of someone.For another example, if server determines 503rd area
Domain is target location, then the content at 503 previous positions, i.e. educational background can be determined as the letter needed for target location by server
Cease content item names.
Optionally, server determines the information content item title needed for target location, including:Obtain preset position with
The correspondence of item of information title;In preset position letter corresponding with target location is searched in the correspondence of item of information title
Cease item content name.That is, server determines the method for the information content item title needed for target location in addition to basis
Except the content of the previous position of target location determines, it can also be according to the preset position of server and information content key name
Correspondence between referred to as determines.In simple terms, server can pre-set at least one set of position and information content key name
Correspondence between referred to as, such as the 504 entitled name of corresponding information content item of position in Figure 5;505 corresponding letter of position
It is work unit etc. to cease content item names.After server determines target location, in above-mentioned preset at least one set of position
With the information content item title needed for target location can be found in the correspondence of information content item title.Such service
It is half complete query knot that the method that device determines the information content item title needed for target location, which is not only suitable for target reporting template,
The case where fruit is reported, it is in the case that blank query result is reported to be also applied for target reporting target.
Optionally, above-mentioned two server can be determined to the method point of the information content item title needed for target location
First method and second method are not named as it.If server can support above two to determine needed for target location simultaneously
The method of information content item title, then in order to improve working efficiency, server is in the information determined needed for target location
Before the method for holding item title, further include:Server judges that target reporting template is that the report of blank query result or half are complete
Query result is reported;According to judging result, server selection is used for determining the information content item title needed for target location
Method:If server judges that target reporting template is the report of blank query result, second method is selected to determine target location
The information content item title that place needs;If server judges that target reporting target is the report of half complete query result, selection
First method determines the information content item title needed for target location.Optionally, it in order to save the power dissipation overhead of server, takes
Business device can also give tacit consent to second method as the method for determining the information content item title needed for target location, so save
The step of judging the query result report category belonging to target information report template, it is ensured that no matter target information report mesh
Mark is blank or semi-holonomic, all uses second method.
Optionally, server searches target information content corresponding with information content item title from the information content, including:
Obtain the corresponding regular expression of information content item title;It is searched from the information content using regular expression and regular expression
The matched information content;Target information content corresponding with information content item title is extracted from the information content.That is, clothes
It is engaged in after information content item title of the device needed for the target location and target location during target information report template is determined, looks into
The method for looking for the corresponding target information content of information content item title can utilize regular expression matching.In simple terms, it takes
Being engaged in device can be with one regular expression of each information content item title setting in target information report template, such as the accrediting amount
Corresponding regular expression can be:The accrediting amount of credit card is;For example the corresponding regular expression of name can be:Name
For;For example the regular expression of work unit can be:Work unit be etc..When server determines needed for target location
Information content item title after, the corresponding canonical table of the information content item title can be found from above-mentioned correspondence
Up to formula;Then the information content of regular expression inquiry and the regular expression matching is utilized;Finally out of matched information
Content corresponding with item of information title is extracted in appearance.As an example it is assumed that server determines in the information needed for target location
Hold the entitled accrediting amount of item;Server can get the corresponding regular expression of the accrediting amount from above-mentioned correspondence
For:" accrediting amount is ";The server by utilizing regular expression goes in the information content to be matched, it is assumed that in the information being matched to
Rong Wei:" accrediting amount is 3000 yuan ";Server extracts 3000 yuan in the information content being matched to be believed as target
Cease content.
Server of the embodiment of the present invention parses the query result information got to obtain the information content, further
Information type is determined according to the information content, and target information report template is found according to the information type in the database.It connects
It, server determines in the target information needed at some target location and the position in target information report template
Hold, finally target information content is filled up at the target location of target information report template to generate query result report, it is real
Show to automate query result information and parse, and generated query result report, has improved the processing effect to query result information
Rate.
It is a kind of structural schematic diagram of information processing unit provided in an embodiment of the present invention with reference to figure 6.It is as shown in FIG. 6
Information processing unit may include:Acquiring unit 601, resolution unit 602, determination unit 603, query unit 604 and matching are single
Member 605:Acquiring unit 601, for obtaining query result information, the format of query result information is labeling language HTML;
Resolution unit 602 obtains the information content that query result information includes for parsing query result information;
Determination unit 603 thinks that the information content determines information type for basis;
Query unit 604, for the corresponding target information report target of Query Information type in the database, in database
The corresponding information report template of at least one information type of storage;
Matching unit 605, for the information content being matched in target information report template to generate query result report.
Optionally, matching unit 605 is specifically used for:Determine the target location in target information report template;
The target information content needed for target location is obtained from the information content;
Target information content is filled up to target location.
Optionally, the target location in target information report template is determined, including:
The target location in target information report template is positioned using configuration file, configuration file includes needing in fill message
The location information of the position of appearance.
Optionally, the target information content needed for target location is obtained from the information content, including:Determine target location
The information content item title that place needs;Target information content corresponding with information content item title is searched from the information content.
Optionally, target information content corresponding with information content item title is searched from the information content, including:
Obtain the corresponding regular expression of information content item title;Searched from the information content using regular expression with just
The then matched information content of expression formula;It is extracted in target information corresponding with information content item title from the matched information content
Hold
Optionally, the information content item title needed for target location is determined, including:It obtains in target information report template
Content at the previous position of target location;Using the content at previous position as the information content needed for target location
Item title.
Optionally, resolution unit 602 is specifically used for:Query result information is parsed using html tag analysis mode, is obtained
The information content that query result information includes.
The query result information that resolution unit 602 gets acquiring unit 601 in the embodiment of the present invention parses, and obtains
To the information content;It is then determined unit 603 parses the obtained information content according to resolution unit 602 determines information type;Into
And query unit 604 inquires target information report template according to information type in the database, last matching unit 605 will be believed
To generate query result report in breath content matching to target information report template, realizes and query result information is dissolved automatically
Analysis, and query result report is generated, improve the treatment effeciency to query result information.
It is a kind of schematic block diagram of server provided by the embodiments of the present application referring to Fig. 7.The present embodiment as shown in the figure
In server may include:One or more processors 701;Network interface 702 and memory 703.Above-mentioned processor 701,
Network interface 702 and memory 703 are connected by bus 704.Memory 703 is for storing computer program, computer program
Including program instruction, processor 701 is used to execute the program instruction of the storage of memory 703.Wherein, processor 701 is configured to use
In caller instruction execution:
Query result information is parsed, the information content that query result information includes is obtained;
Information type is determined according to the information content;
The corresponding target information report template of Query Information type in the database stores at least one information in database
The corresponding information report template of type;
The information content is matched in target information report template, to generate query result report.
Optionally, the information content is matched in target information report template, processor 701 is configured for caller
Instruction is specific to be executed:
Determine the target location in target information report template;
The target information content needed for target location is obtained from the information content;
Target information content is filled up to target location.
Optionally, determine that the target location in target information report template, processor 701 are configured for caller and refer to
Enable specific execute:
The target location in target information report template is positioned using configuration file, configuration file includes needing in fill message
The location information of the position of appearance.
Optionally, the target information content needed for target location is obtained from the information content, processor 701 is configured to use
Specific execute is instructed in caller:
Determine the information content item title needed for target location;
Target information content corresponding with information content item title is searched from the information content.
Optionally, target information content corresponding with information content item title, 701 quilt of processor are searched from the information content
It is configured to the specific execution of caller instruction:
Obtain the corresponding regular expression of information content item title;
It is searched and the information content of regular expression matching from the information content using regular expression;
Target information content corresponding with information content item title is extracted from the matched information content.
Optionally, determine that the information content item title needed for target location, processor 701 are configured for caller
Instruction is specific to be executed:
Obtain the content at the previous position of target location in target information report template;In at previous position
Hold as the information content item title needed for target location.
Optionally, query result information is parsed, the information content that query result information includes, 701 quilt of processor are obtained
It is configured to the specific execution of caller instruction:Query result information is parsed using html tag analysis mode, obtains inquiry knot
The information content that fruit information includes.
It should be appreciated that in the embodiment of the present application, alleged processor 701 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Network interface 702 is used to receive when connecting network or transmission data.
The memory 703 may include read-only memory and random access memory, and to processor 701 provide instruction and
Data.The a part of of memory 703 can also include nonvolatile RAM.For example, memory 703 can also be deposited
Store up the information of device type.
In the specific implementation, the processor 701 and network interface 702 described in the embodiment of the present application can perform the application reality
Apply the information processing method that illustration 1 and Fig. 3 are provided embodiment and Fig. 6 described in information processing unit realization method,
This is repeated no more.
A kind of computer readable storage medium is provided in embodiments herein, computer-readable recording medium storage has
Computer program, computer program include program instruction, and the processor is made to execute the application when program instruction is executed by processor
The realization method of information processing unit described in the embodiment and Fig. 6 of the information processing method that Fig. 1 and Fig. 3 are provided, herein
It repeats no more.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosed is only the section Example of the present invention, cannot limit the right of the present invention with this certainly
Range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and according to right of the present invention
Equivalent variations made by it is required that, still belong to the scope covered by the invention.
Claims (10)
1. a kind of information processing method, which is characterized in that including:
Query result information is obtained, the format of the query result information is labeling language HTML;
The query result information is parsed, the information content that the query result information includes is obtained;
Information type is determined according to described information content;
The corresponding target information report template of described information type is inquired in the database, is stored in the database at least one
The corresponding information report template of information type;
By in described information content matching to the target information report template, reported with generating query result.
2. according to the method described in claim 1, it is characterized in that, described by described information content matching to the target information
In report template, including:
Determine the target location in the target information report template;
The target information content needed for the target location is obtained from described information content;
The target information content is filled up to the target location.
3. according to the method described in claim 2, it is characterized in that, target in the determination target information report template
Position, including:
The target location in the target information report template is positioned using configuration file, the configuration file includes that need to fill in letter
Cease the location information of the position of content.
4. according to the method in claim 2 or 3, which is characterized in that obtain the target in the content from described information
The target information content needed at position, including:
Determine the information content item title needed for the target location;
Target information content corresponding with described information content item names is searched from described information content.
5. according to the method described in claim 4, it is characterized in that, in the content from described information in lookup and described information
Hold the corresponding target information content of item title, including:
Obtain the corresponding regular expression of described information content item names;
It is searched and the information content of the regular expression matching from described information content using the regular expression;
The target information content corresponding with described information content item names is extracted from the matched information content.
6. method according to claim 4 or 5, which is characterized in that the information needed for the determination target location
Content item names, including:
Obtain the content at the previous position of target location described in the target information report template;
Using the content at the previous position as the information content item title needed for the target location.
7. according to method according to any one of claims 1 to 6, which is characterized in that the parsing query result information,
The information content that the query result information includes is obtained, including:
The query result information is parsed using html tag analysis mode, obtains the information that the query result information includes
Content.
8. a kind of information processing unit, which is characterized in that including:
Acquiring unit, for obtaining query result information, the format of the query result information is labeling language HTML;
Resolution unit obtains the information content that the query result information includes for parsing the query result information;
Determination unit, for determining information type according to described information content;
Query unit, for the corresponding target information report template of inquiry described information type in the database, the database
The corresponding information report template of at least one information type of middle storage;
Matching unit, for by described information content matching to the target information report template, to generate query result report
It accuses.
9. a kind of server, which is characterized in that including processor, network interface and memory, the processor, the network connect
Mouth and the memory are connected with each other, wherein for the memory for storing computer program, the computer program includes journey
Sequence instructs, and the processor is configured for calling described program instruction, executes such as claim 1-7 any one of them information
Processing method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey
Sequence, the computer program include program instruction, and described program instruction makes the processor execute such as when being executed by a processor
Claim 1-7 any one of them information processing methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810541872.7A CN108763512A (en) | 2018-05-30 | 2018-05-30 | A kind of information processing method, device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810541872.7A CN108763512A (en) | 2018-05-30 | 2018-05-30 | A kind of information processing method, device and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108763512A true CN108763512A (en) | 2018-11-06 |
Family
ID=64004703
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810541872.7A Pending CN108763512A (en) | 2018-05-30 | 2018-05-30 | A kind of information processing method, device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108763512A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109753535A (en) * | 2019-01-11 | 2019-05-14 | 深圳讼融通网络科技有限公司 | Input method, equipment and the computer readable storage medium of case data |
CN110060169A (en) * | 2019-04-26 | 2019-07-26 | 成都众人安科技有限责任公司 | Insurance interest information fast finishing method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933862A (en) * | 2015-12-30 | 2017-07-07 | 北京神州泰岳软件股份有限公司 | A kind of method and apparatus for generating mail report |
CN107248065A (en) * | 2017-06-08 | 2017-10-13 | 中国建设银行股份有限公司 | Line reports table management method, system, device and storage medium |
WO2018066144A1 (en) * | 2016-10-07 | 2018-04-12 | 富士通株式会社 | Program for generation of indexed data, method for generation of indexed data, system for generation of indexed data, search program, search method, and search system |
CN107944291A (en) * | 2017-11-15 | 2018-04-20 | 深圳忠信信息技术有限公司 | Information acquisition method, system and computer-readable recording medium |
-
2018
- 2018-05-30 CN CN201810541872.7A patent/CN108763512A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106933862A (en) * | 2015-12-30 | 2017-07-07 | 北京神州泰岳软件股份有限公司 | A kind of method and apparatus for generating mail report |
WO2018066144A1 (en) * | 2016-10-07 | 2018-04-12 | 富士通株式会社 | Program for generation of indexed data, method for generation of indexed data, system for generation of indexed data, search program, search method, and search system |
CN107248065A (en) * | 2017-06-08 | 2017-10-13 | 中国建设银行股份有限公司 | Line reports table management method, system, device and storage medium |
CN107944291A (en) * | 2017-11-15 | 2018-04-20 | 深圳忠信信息技术有限公司 | Information acquisition method, system and computer-readable recording medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109753535A (en) * | 2019-01-11 | 2019-05-14 | 深圳讼融通网络科技有限公司 | Input method, equipment and the computer readable storage medium of case data |
CN110060169A (en) * | 2019-04-26 | 2019-07-26 | 成都众人安科技有限责任公司 | Insurance interest information fast finishing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11372935B2 (en) | Automatically generating a website specific to an industry | |
US7840934B2 (en) | Method and system for integrating workflow management systems with business-to-business interaction standards | |
US7315978B2 (en) | System and method for remote collection of data | |
CN108564339A (en) | A kind of account management method, device, terminal device and storage medium | |
CN109325729A (en) | A kind of method and server generating electronic contract | |
US20020129059A1 (en) | XML auto map generator | |
CN109582691A (en) | Method and apparatus for controlling data query | |
US20030050969A1 (en) | Information integration system | |
CN106844372A (en) | A kind of logistics information querying method and device | |
CN110263145A (en) | A kind of electronic contract signature method and electronic contract sign equipment | |
US20170109442A1 (en) | Customizing a website string content specific to an industry | |
CN110675238A (en) | Client label configuration method, system, readable storage medium and electronic equipment | |
CN106126221A (en) | A kind of list generates methods, devices and systems | |
CN109086433A (en) | A kind of file management method and server based on big data analysis | |
CN108763512A (en) | A kind of information processing method, device and server | |
CN107515866A (en) | A kind of data manipulation method, device and system | |
CN108809896A (en) | A kind of information calibration method, device and electronic equipment | |
JP2010224583A (en) | Electronic bulletin board server, electronic bulletin board system, and multiposting method of posted article in electronic bulletin system | |
US20190035034A1 (en) | System and method for prediction of email addresses of certain individuals and verification thereof | |
US20070112675A1 (en) | Goods and Services Locator Language for Uniform Resource Identifier Components | |
US20210117614A1 (en) | One click listing | |
CN109710634A (en) | For generating the method and device of information | |
CN110796425A (en) | Intellectual property transfer and conversion management method, system and storage medium | |
CN115510052A (en) | Dynamic form and database-based dynamic verification method and system | |
CN108228688B (en) | Template generation method, system and server based on XBRL |
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: 20181106 |
|
RJ01 | Rejection of invention patent application after publication |