CN112134780A - Information acquisition method and apparatus, storage medium, and electronic apparatus - Google Patents

Information acquisition method and apparatus, storage medium, and electronic apparatus Download PDF

Info

Publication number
CN112134780A
CN112134780A CN201910551541.6A CN201910551541A CN112134780A CN 112134780 A CN112134780 A CN 112134780A CN 201910551541 A CN201910551541 A CN 201910551541A CN 112134780 A CN112134780 A CN 112134780A
Authority
CN
China
Prior art keywords
server
information
client
login
processed
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.)
Granted
Application number
CN201910551541.6A
Other languages
Chinese (zh)
Other versions
CN112134780B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910551541.6A priority Critical patent/CN112134780B/en
Publication of CN112134780A publication Critical patent/CN112134780A/en
Application granted granted Critical
Publication of CN112134780B publication Critical patent/CN112134780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords

Abstract

The invention discloses an information acquisition method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: logging in a second server on the first client by using login information, wherein the second server stores information to be processed; obtaining login state information on the first client; sending the login state information to a first server corresponding to the first client on the first client, wherein the first server is used for accessing the second server by using the login state information and executing target operation on the to-be-processed information accessed from the second server to obtain a target result; receiving the target result sent by the first server on the first client. The invention solves the technical problems that the account number and the password of the mailbox are easy to leak and unsafe when the mail is analyzed in the related technology.

Description

Information acquisition method and apparatus, storage medium, and electronic apparatus
Technical Field
The invention relates to the field of computers, in particular to an information acquisition method and device, a storage medium and an electronic device.
Background
In the related art, when analyzing a bill mail to obtain information recorded in the bill mail, a client bound to a mailbox generally needs to obtain an account password of the mailbox, then the account password is sent to a server of the client, the server of the client logs in the server of the mailbox according to the account password and obtains the bill mail and analyzes the bill mail, and finally the server of the client sends the content obtained by analysis to the client and the client displays the content.
However, if the method is adopted, the server of the client acquires the account password of the mailbox, so that the account password of the mailbox is leaked and unsafe.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an information acquisition method and device, a storage medium and an electronic device, and at least solves the technical problems that a mailbox account password is easy to leak and unsafe when a mail is analyzed in the related technology.
According to an aspect of an embodiment of the present invention, there is provided an information acquisition method including: logging in a second server on a first client by using login information, wherein the second server stores information to be processed; obtaining login status information on the first client, wherein the login status information is used for indicating that the first client successfully logs in the second server by using the login information; sending, at the first client, the login state information to a first server corresponding to the first client, where the first server is configured to access the second server using the login state information, and perform a target operation on the to-be-processed information accessed from the second server to obtain a target result; and receiving the target result sent by the first server on the first client.
According to another aspect of the embodiments of the present invention, there is also provided an information acquiring method, including: acquiring login state information for accessing a second server, wherein the second server stores information to be processed, and the login state information is used for indicating that a first client successfully logs in the second server by using the login information; accessing the second server by using the login state information to obtain the information to be processed; executing target operation on the information to be processed to obtain a target result; and sending the target result to the first client.
According to another aspect of the embodiments of the present invention, there is also provided an information acquiring apparatus, where a first client operates on the apparatus, the apparatus including: a login unit, configured to log in a second server on a first client using login information, where the second server stores information to be processed; an obtaining unit, configured to obtain login status information on the first client, where the login status information is used to indicate that the first client successfully logs in the second server using the login information; a sending unit, configured to send, at the first client, the login status information to a first server corresponding to the first client, where the first server is configured to access the second server using the login status information, and perform a target operation on the to-be-processed information accessed from the second server to obtain a target result; a receiving unit, configured to receive, at the first client, the target result sent by the first server.
As an optional example, the information to be processed is a billing mail, and the receiving unit includes: and the receiving module is used for receiving the bill information acquired from the bill mail by the first server, wherein the bill information at least comprises a repayment date and a repayment amount.
As an optional example, the sending unit includes: a sending module, configured to send a session control session in which the first client logs in the second server to the first server, so that the first server accesses the second server using the session, where the session includes the login state information.
According to still another aspect of the embodiments of the present invention, there is also provided an information acquisition apparatus including: an obtaining unit, configured to obtain login status information for accessing a second server, where the second server stores information to be processed, and the login status information is used to indicate that a first client successfully logs in the second server using login information; an access unit, configured to access the second server using the login status information to obtain the to-be-processed information; the execution unit is used for executing target operation on the information to be processed to obtain a target result; and the first sending unit is used for sending the target result to the first client.
As an optional example, the apparatus further includes: a receiving unit, configured to receive a type of a second server sent by the first client before obtaining login status information for accessing the second server, where the type of the second server is determined according to the login information; and a returning unit configured to return a script file that matches a type of the second server to the first client, wherein the script file is configured to automatically log in the second server using the login information when the login information is received.
As an optional example, the information to be processed is a billing mail, and the apparatus further includes: a processing unit, configured to access the second server using the login status information to obtain the to-be-processed information, and then process the billing email to obtain billing information, where the billing information at least includes a repayment date and a repayment amount; and the second sending unit is used for sending the bill information to the first client.
As an optional example, the obtaining unit includes: a receiving module, configured to receive a session control session in which the first client logs in the second server, where the session includes the login status information; and the access module is used for accessing the second server by using the session so as to acquire the information to be processed.
According to still another aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned information acquisition method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the information acquisition method through the computer program.
In the embodiment of the invention, a mode that a first client logs in a second server by using login information, the first client obtains login state information, the first client sends the login state information to a first server corresponding to a first client, and the first client receives a target result sent by the first server is adopted, because in the method, the first client does not need to send an account password for logging in the second server to the first server, but sends the login state information of the first client logging in the second server to the first server, so that the first server accesses the second server by the login state information and obtains information to be processed, the first server is ensured not to obtain the account information for logging in the second server, the safety of the account information is improved when logging in the second server, and the problem of mail analysis in the related technology is solved, the mailbox account password is easy to leak and is unsafe.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative information acquisition method according to an embodiment of the invention;
FIG. 2 is a flow chart illustrating an alternative information acquisition method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative information acquisition method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative information acquisition method according to an embodiment of the invention;
FIG. 5 is a schematic diagram of yet another alternative information acquisition method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart diagram illustrating an alternative information acquisition method according to an embodiment of the present invention;
FIG. 7 is an interaction diagram of an alternative information acquisition method according to an embodiment of the present invention;
FIG. 8 is an interaction diagram of an alternative information acquisition method according to an embodiment of the present invention;
FIG. 9 is a schematic flow chart diagram illustrating an alternative information acquisition method according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an alternative information acquisition apparatus according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of another alternative information acquisition device according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of an alternative electronic device according to an embodiment of the invention;
fig. 13 is a schematic structural diagram of another alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, an information obtaining method is provided, and optionally, as an optional implementation manner, the information obtaining method may be applied to, but is not limited to, an environment as shown in fig. 1.
Human-computer interaction between the user 102 and the user device 104 in fig. 1 is possible. The user equipment 104 comprises a memory 106 for storing interaction data and a processor 108 for processing the interaction data. User device 104 may interact with server 112 via network 110 or with server 118. The server 112 includes a database 114 for storing interaction data and a processing engine 116 for processing the interaction data. Included in the server 118 is a database 120 for storing interaction data and a processing engine 122 for processing the interaction data. As shown in steps S102-S110, the user device 104 may obtain an account password for the login server 112 and then login to the server 112 using the account password. After the login is successful, the user device 104 sends login status information to the server 118, and the server 118 accesses the server 112 according to the login status information and obtains the information to be processed of the server 112. Server 118 processes the information to be processed to obtain a processing result, and returns the processing result to user device 114. The user device 114 may display the processing results.
It should be noted that, in the related art, when acquiring the content to be processed in the server 112, the user device 104 is required to acquire the account password of the login server 112, then send the account password to the server 118, and the server 118 logs in the server 112 using the account password and acquires the content to be processed. However, the server 118 needs to store the account password, which causes the account password of the login server 112 to be leaked. In the scheme, after the user equipment 104 logs in the server 112 by using the account password, the login state information is sent to the server 118, and the server 118 accesses the server 112 by using the login state information and acquires the data to be processed, so that the account password of the login server 112 does not need to be stored, and the security of the account password in the process of acquiring the data to be processed is improved.
Optionally, the information obtaining method may be applied to, but not limited to, a client running on a user device 104 that can calculate data, the user device 104 may be, but not limited to, a terminal such as a mobile phone, a tablet computer, a notebook computer, a PC, and the like, and the network 110 may include, but is not limited to, a wireless network or a wired network. Wherein, this wireless network includes: bluetooth, WIFI, and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The servers 112, 118 may include, but are not limited to, any hardware devices capable of performing computations.
Optionally, as an optional implementation manner, as shown in fig. 2, the information obtaining method includes:
s202, logging in a second server on the first client by using login information, wherein the second server stores information to be processed;
s204, obtaining login state information on the first client, wherein the login state information is used for indicating that the first client successfully logs in the second server by using the login information;
s206, sending the login state information to a first server corresponding to the first client on the first client, wherein the first server is used for accessing a second server by using the login state information and executing target operation on the information to be processed accessed from the second server to obtain a target result;
s208, receiving the target result sent by the first server on the first client.
Optionally, the information obtaining method may be, but is not limited to, applied to a process of the client binding the mailbox to parse the mail content. The first client may be any client on the terminal, the first server may be, but is not limited to, a server corresponding to the client, and the second server may be a mailbox server. Taking the above scenario as an example, a client running on a terminal needs to bind a mailbox, and obtains a mail to be processed in a mailbox server through an account password of the mailbox. After the client acquires the account password, the client logs in the mailbox server by using the account password, so that the certificate-login state information of successfully logging in the mailbox server is acquired, and the login state information is sent to the server of the client. And after receiving the login state information, the server of the client accesses the mailbox server by using the login state information and acquires the mail in the mailbox server. And the server of the client processes the acquired mails to obtain a processing result, and returns the processing result to the client, and the client displays the processing result.
According to the method, after the first client side obtains the account password for logging in the second server, the second server is logged in by using the account password, the login state information is obtained, and the login state information is sent to the first server of the first client side, so that the first server can access the second server by using the login state information and obtain the content to be processed. And after the first server processes the content to be processed, obtaining a processing result and sending the processing result to the first client, and displaying the processing result by the first client. Therefore, when the data to be processed is obtained, the first client does not need to obtain the account password for logging in the second client, and the safety of the account password is guaranteed.
Optionally, before the first client logs in the second server by using the account password, script information needs to be written on the first client, and the script information is used for logging in the second server automatically by using the login information after the login information is received.
Optionally, different types of second servers correspond to different script information. For example, the second server may be a server of a different mailbox, and the type of the second server is different due to the different mailbox types. Different script files are preset corresponding to different types of second servers. The script file may be stored in a first server. And after the first client acquires the type of the second server, requesting a script file matched with the type of the second server from the first server. After receiving the script file, the first client writes the script file into the first client. The first client can automatically log in the second server through the account password by using the script file.
Alternatively, after the script file is written into the first client, an account information acquisition page corresponding to the script file may be displayed using the first client. As shown in fig. 3, fig. 3 is an optional account information obtaining page. The information obtaining block 302 and the information obtaining block 304 enable a user to obtain the input account information, and after the first client obtains the account information, the user can log in a second server by using the account information. At this time, the script file may automatically fill the acquired account information into a page for logging in the second server. For example, as shown in FIG. 4, FIG. 4 is a landing page for the second server. After the script file acquires the account information, the account information is automatically filled into the information acquisition box 402 and the information acquisition box 404 in fig. 4, and an instruction is triggered to log in the second server, without the need for the user to input the account information and log in. It should be noted that the script file may be directly logged in using account password information, and the second page may not exist.
After the first client successfully logs in the second server, login state information of the first client successfully logging in can be acquired. The login state information may be session information. The first client sends the session information to the first server, the first server uses the session information to access the second server, and the second server determines that the first client has successfully logged in the second server through the session information because the second server receives the session information sent by the first server. Therefore, the second server returns the information to be processed to the first server. And after receiving the information to be processed, the first server processes the information to be processed and returns a processing result to the first client.
Optionally, the information to be processed may be mail information to be analyzed. After receiving the mail information to be analyzed, the first server analyzes the mail to be analyzed, analyzes the mail to be analyzed to obtain the key content in the mail to be analyzed, and sends the key content to the first client for display. Taking the mail to be analyzed as the bill mail as an example, the first server analyzes the mail to be analyzed to obtain bill information, wherein the bill information includes a repayment date and an amount. The first server then sends the billing information to the first client, which may display the billing information.
Optionally, there are various ways in which the first client displays the billing information. For example, the first client may send the billing information through a short message, or display the billing information on a display interface of the first client. As shown in fig. 5, fig. 5 is an alternative interface for displaying billing information. In fig. 5, billing information 502 is shown, which may alert the user to billing.
The information acquisition method described above is explained below with reference to a specific example. For example, the method is applied to the process of analyzing the bill mail to obtain the bill information. As shown in steps S602 to S622 in fig. 6, the first client first obtains the type of the mailbox, and determines whether a script file corresponding to the mailbox type exists. The first client can judge the type of the mailbox according to the received account password. If the account carries the identification of the mailbox. And judging whether the mailbox type is a supported mailbox type, if so, judging whether a cache injection script exists locally, if not, pulling the background, and if so, directly injecting. If the type is not supported, the method is ended directly. And submitting the background to perform injection script adaptation. And after the script file main graph is obtained, analyzing the corresponding script file. And (4) analyzing js script and injecting the js script into the webview page. The first client acquires the account and the password input by the user, automatically uses the js script to help the user to automatically fill in, and then logs in to the web view page. After logging in, the first server obtains the session uploaded by the first client. (only session is uploaded in the process, and no account and password are uploaded, so that the account security of the user is ensured). And after the background receives the session, the session is used for accessing the corresponding mailbox address to capture the bill mail. And judging whether the captured bill is a mail bill according to an NLP machine learning algorithm. If so, entering the analysis, and if not, not processing. And matching templates of the captured bills, and analyzing. And extracting corresponding bill information (repayment date, repayment amount, repayment person, repayment card number and the like) and sending to the first client.
In the above process, the interaction process of the client, the first server, and the mailbox server is as shown in fig. 7, in steps S702 to S716, after the first client 702 obtains the account password, the first client logs in the mailbox server 706 by using the account password, and the mailbox server 706 returns the session information to the first client 702. The first client 702 sends the session information to the first server 704. First server 704 accesses mailbox server 706 using session and obtains the pending mail from mailbox server 706. The first server 704 processes the mail to be processed to obtain a processing result, and returns the processing result to the first client 702.
In the process of analyzing the mail by the first server, the operation process mainly includes two works: look up and parse the billing mail.
The method comprises the following steps: and searching a credit card mailbox bill needing to be analyzed, carrying out field matching on the header of the mailbox, and identifying the corresponding credit card bill.
Step two: performing CSS selector mail HTML quick positioning on the identified mails according to the information such as bank name, user name, credit card number, repayment amount, minimum repayment amount, final repayment date and the like, and performing matching by using a regular expression
The above information is integrated to make the following field definitions:
bank name
name user name
credit card number
newBalance repayment amount
minimum Payment amount
paymentDueDate date of last payment
A selector: mail HTML locator to locate content to be parsed
A mather: regular expression matching of located HTML content
In conjunction with the above field definitions, a template example is given:
{ "output": card "," selector ": font: containins own (with a tail number)," checker ": with a tail number \ \ d {4}" }. The meaning of the template is that the credit card number information is matched, HTML credit with a font containing 'tail number' is positioned through a selector, the information is subjected to regular matching, and the credit card number information is output. And combining the templates into a complete operation flow.
Due to the diversity of credit card e-mails, even the e-mails sent by the same bank may have different formats and contents, so different templates need to be prepared for adapting to different e-mails.
As shown in steps S802 to S808 in fig. 8, after acquiring the to-be-processed billing mail, the first server 802 may search for a corresponding template from the template library 804. The template library 804 parses the billing mail using the template. The first server 802 receives the parsed billing information returned by the template repository 804. The template library 804 can receive the written template and record the mail proportion weight so that the user can update the template according to the mail proportion weight.
According to the method, the first client does not need to send the account password for logging in the second server to the first server, but sends the login state information of the first client for logging in the second server to the first server, so that the first server accesses the second server through the login state information and obtains the information to be processed, the first server is ensured not to obtain the account information for logging in the second server, and the safety of the account information is improved when the first client logs in the second server.
As an optional embodiment, before logging in to the second server using the login information on the first client, the method further includes:
s1, determining the type of the second server matched with the login information;
and S2, adding a script file matched with the type of the second server into the first client, wherein the script file is used for automatically logging in the second server by using the login information after the login information is received.
Optionally, the type of the second server may be a type of a mailbox. The types of different mailboxes correspond to different script files. The script file may be pre-stored in the first server. After the script file receives the account password, the script file automatically logs in the second server by using the account password.
According to the embodiment, the script file matched with the type of the second server is obtained and the second server is logged in by using the script file, so that the security of the account password for logging in the second server is ensured, and meanwhile, the efficiency of logging in the second server is improved.
As an alternative embodiment, logging in the second server using the login information on the first client comprises:
s1, displaying a first page on the first client, wherein the first page is used for acquiring the input login information;
and S2, after receiving the trigger instruction, automatically writing the login information into a second page for logging in a second server.
Optionally, the second page may be a page that can be displayed on the first client, or may be a page that does not need to be displayed. The second page may log in to the second server after receiving the account password.
Through the embodiment, the second server is logged in by the method, so that the security of the account password for logging in the second server is ensured, and the efficiency of logging in the second server is improved.
As an alternative embodiment, the information to be processed is a billing mail, and receiving the target result sent by the first server at the first client includes:
and S1, receiving the bill information acquired from the bill mail by the first server, wherein the bill information at least comprises a repayment date and a repayment amount.
Optionally, the first server returns the bill information to the first client after analyzing the bill mail to obtain the repayment date and the repayment amount in the bill information. The first client may display the billing information to prompt the user for payment information. The user can make payment according to the bill information.
Through the embodiment, the first client billing information is returned through the method, so that the security of the account number and the password for logging in the second server is ensured, and meanwhile, the accuracy of sending the billing information to the user is also ensured.
As an alternative embodiment, sending the login status information on the first client to the first server corresponding to the first client comprises:
s1, sending a session control session of the first client logging in the second server to the first server, so that the first server accesses the second server by using the session, wherein the session comprises login state information.
Optionally, the session is generated after the first client logs in the second server. The session stores the login status of the first client and the related information of the first client.
Through the embodiment, the security of the account password for logging in the second server is ensured through the method.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the invention, an information acquisition method is also provided. Optionally, as shown in fig. 9, the information acquiring method includes:
s902, obtaining login state information for accessing a second server, wherein the second server stores information to be processed, and the login state information is used for indicating that a first client successfully logs in the second server by using the login information;
s904, accessing the second server by using the login state information to obtain information to be processed;
s906, executing target operation on the information to be processed to obtain a target result;
s908, sending the target result to the first client.
Optionally, the information obtaining method may be, but is not limited to, applied to a process of the client binding the mailbox to parse the mail content. The first client may be any client on the terminal, the first server may be, but is not limited to, a server corresponding to the client, and the second server may be a mailbox server. Taking the above scenario as an example, a client running on a terminal needs to bind a mailbox, and obtains a mail to be processed in a mailbox server through an account password of the mailbox. After the client acquires the account password, the client logs in the mailbox server by using the account password, so that the certificate-login state information of successfully logging in the mailbox server is acquired, and the login state information is sent to the server of the client. And after receiving the login state information, the server of the client accesses the mailbox server by using the login state information and acquires the mail in the mailbox server. And the server of the client processes the acquired mails to obtain a processing result, and returns the processing result to the client, and the client displays the processing result.
According to the method, after the first client side obtains the account password for logging in the second server, the second server is logged in by using the account password, the login state information is obtained, and the login state information is sent to the first server of the first client side, so that the first server can access the second server by using the login state information and obtain the content to be processed. And after the first server processes the content to be processed, obtaining a processing result and sending the processing result to the first client, and displaying the processing result by the first client. Therefore, when the data to be processed is obtained, the first client does not need to obtain the account password for logging in the second client, and the safety of the account password is guaranteed.
Optionally, the information obtaining method may be, but is not limited to, applied to a process of the client binding the mailbox to parse the mail content. The first client may be any client on the terminal, the first server may be, but is not limited to, a server corresponding to the client, and the second server may be a mailbox server. Taking the above scenario as an example, a client running on a terminal needs to bind a mailbox, and obtains a mail to be processed in a mailbox server through an account password of the mailbox. After the client acquires the account password, the client logs in the mailbox server by using the account password, so that the certificate-login state information of successfully logging in the mailbox server is acquired, and the login state information is sent to the server of the client. And after receiving the login state information, the server of the client accesses the mailbox server by using the login state information and acquires the mail in the mailbox server. And the server of the client processes the acquired mails to obtain a processing result, and returns the processing result to the client, and the client displays the processing result.
According to the method, after the first client side obtains the account password for logging in the second server, the second server is logged in by using the account password, the login state information is obtained, and the login state information is sent to the first server of the first client side, so that the first server can access the second server by using the login state information and obtain the content to be processed. And after the first server processes the content to be processed, obtaining a processing result and sending the processing result to the first client, and displaying the processing result by the first client. Therefore, when the data to be processed is obtained, the first client does not need to obtain the account password for logging in the second client, and the safety of the account password is guaranteed.
After the first client successfully logs in the second server, login state information of the first client successfully logging in can be acquired. The login state information may be session information. The first client sends the session information to the first server, the first server uses the session information to access the second server, and the second server determines that the first client has successfully logged in the second server through the session information because the second server receives the session information sent by the first server. Therefore, the second server returns the information to be processed to the first server. And after receiving the information to be processed, the first server processes the information to be processed and returns a processing result to the first client.
Optionally, the information to be processed may be mail information to be analyzed. After receiving the mail information to be analyzed, the first server analyzes the mail to be analyzed, analyzes the mail to be analyzed to obtain the key content in the mail to be analyzed, and sends the key content to the first client for display. Taking the mail to be analyzed as the bill mail as an example, the first server analyzes the mail to be analyzed to obtain bill information, wherein the bill information includes a repayment date and an amount. The first server then sends the billing information to the first client, which may display the billing information.
For other embodiments of this embodiment, reference may be made to the above examples, which are not described again.
According to the method, the first client does not need to send the account password for logging in the second server to the first server, but sends the login state information of the first client for logging in the second server to the first server, so that the first server accesses the second server through the login state information and obtains the information to be processed, the first server is ensured not to obtain the account information for logging in the second server, and the safety of the account information is improved when the first client logs in the second server.
As an optional implementation, before obtaining the login status information for accessing the second server, the method further includes:
s1, receiving the type of the second server sent by the first client, wherein the type of the second server is determined according to the login information;
and S2, returning a script file matched with the type of the second server to the first client, wherein the script file is used for automatically logging in the second server by using the login information under the condition that the login information is received.
Optionally, the type of the second server may be a type of a mailbox. The types of different mailboxes correspond to different script files. The script file may be pre-stored in the first server. After the script file receives the account password, the script file automatically logs in the second server by using the account password.
According to the embodiment, the script file matched with the type of the second server is obtained and the second server is logged in by using the script file, so that the security of the account password for logging in the second server is ensured, and meanwhile, the efficiency of logging in the second server is improved.
As an optional implementation, the information to be processed is a billing mail, and after accessing the second server using the login status information to obtain the information to be processed, the method further includes:
s1, processing the bill mail to obtain bill information, wherein the bill information at least comprises a repayment date and a repayment amount;
and S2, sending the bill information to the first client.
Optionally, the second page may be a page that can be displayed on the first client, or may be a page that does not need to be displayed. The second page may log in to the second server after receiving the account password.
Through the embodiment, the second server is logged in by the method, so that the security of the account password for logging in the second server is ensured, and the efficiency of logging in the second server is improved.
As an alternative embodiment, obtaining login status information for accessing the second server comprises:
s1, receiving a session control session of the first client logging in the second server, wherein the session comprises login state information;
and S2, using session to access the second server to obtain the information to be processed.
Optionally, the first server returns the bill information to the first client after analyzing the bill mail to obtain the repayment date and the repayment amount in the bill information. The first client may display the billing information to prompt the user for payment information. The user can make payment according to the bill information.
Through the embodiment, the first client billing information is returned through the method, so that the security of the account number and the password for logging in the second server is ensured, and meanwhile, the accuracy of sending the billing information to the user is also ensured.
According to another aspect of the embodiment of the present invention, there is also provided an information acquisition apparatus for implementing the information acquisition method. As shown in fig. 10, the apparatus includes:
(1) a login unit 1002, configured to log in a second server on the first client using login information, where the second server stores information to be processed;
(2) an obtaining unit 1004, configured to obtain login status information on the first client, where the login status information is used to indicate that the first client successfully logs in the second server using the login information;
(3) a sending unit 1006, configured to send, on the first client, the login status information to a first server corresponding to the first client, where the first server is configured to access a second server using the login status information, and perform a target operation on to-be-processed information accessed from the second server to obtain a target result;
(4) a receiving unit 1008, configured to receive, on the first client, the target result sent by the first server.
Optionally, the information obtaining apparatus may be applied to, but not limited to, a process of the client binding the mailbox to parse the mail content. The first client may be any client on the terminal, the first server may be, but is not limited to, a server corresponding to the client, and the second server may be a mailbox server. Taking the above scenario as an example, a client running on a terminal needs to bind a mailbox, and obtains a mail to be processed in a mailbox server through an account password of the mailbox. After the client acquires the account password, the client logs in the mailbox server by using the account password, so that the certificate-login state information of successfully logging in the mailbox server is acquired, and the login state information is sent to the server of the client. And after receiving the login state information, the server of the client accesses the mailbox server by using the login state information and acquires the mail in the mailbox server. And the server of the client processes the acquired mails to obtain a processing result, and returns the processing result to the client, and the client displays the processing result.
By the aid of the device, after the first client side obtains the account password for logging in the second server, the second server is logged in by using the account password, the login state information is obtained, and the login state information is sent to the first server of the first client side, so that the first server can access the second server by using the login state information and obtain the content to be processed. And after the first server processes the content to be processed, obtaining a processing result and sending the processing result to the first client, and displaying the processing result by the first client. Therefore, when the data to be processed is obtained, the first client does not need to obtain the account password for logging in the second client, and the safety of the account password is guaranteed.
Optionally, before the first client logs in the second server by using the account password, script information needs to be written on the first client, and the script information is used for logging in the second server automatically by using the login information after the login information is received.
Optionally, different types of second servers correspond to different script information. For example, the second server may be a server of a different mailbox, and the type of the second server is different due to the different mailbox types. Different script files are preset corresponding to different types of second servers. The script file may be stored in a first server. And after the first client acquires the type of the second server, requesting a script file matched with the type of the second server from the first server. After receiving the script file, the first client writes the script file into the first client. The first client can automatically log in the second server through the account password by using the script file.
Alternatively, after the script file is written into the first client, an account information acquisition page corresponding to the script file may be displayed using the first client. As shown in fig. 3, fig. 3 is an optional account information obtaining page. The information obtaining block 302 and the information obtaining block 304 enable a user to obtain the input account information, and after the first client obtains the account information, the user can log in a second server by using the account information. At this time, the script file may automatically fill the acquired account information into a page for logging in the second server. For example, as shown in FIG. 4, FIG. 4 is a landing page for the second server. After the script file acquires the account information, the account information is automatically filled into the information acquisition box 402 and the information acquisition box 404 in fig. 4, and an instruction is triggered to log in the second server, without the need for the user to input the account information and log in. It should be noted that the script file may be directly logged in using account password information, and the second page may not exist.
After the first client successfully logs in the second server, login state information of the first client successfully logging in can be acquired. The login state information may be session information. The first client sends the session information to the first server, the first server uses the session information to access the second server, and the second server determines that the first client has successfully logged in the second server through the session information because the second server receives the session information sent by the first server. Therefore, the second server returns the information to be processed to the first server. And after receiving the information to be processed, the first server processes the information to be processed and returns a processing result to the first client.
Optionally, the information to be processed may be mail information to be analyzed. After receiving the mail information to be analyzed, the first server analyzes the mail to be analyzed, analyzes the mail to be analyzed to obtain the key content in the mail to be analyzed, and sends the key content to the first client for display. Taking the mail to be analyzed as the bill mail as an example, the first server analyzes the mail to be analyzed to obtain bill information, wherein the bill information includes a repayment date and an amount. The first server then sends the billing information to the first client, which may display the billing information.
Optionally, there are various ways in which the first client displays the billing information. For example, the first client may send the billing information through a short message, or display the billing information on a display interface of the first client. As shown in fig. 5, fig. 5 is an alternative interface for displaying billing information. In fig. 5, billing information 502 is shown, which may alert the user to billing.
According to the method, the first client does not need to send the account password for logging in the second server to the first server, but sends the login state information of the first client for logging in the second server to the first server, so that the first server accesses the second server through the login state information and obtains the information to be processed, the first server is ensured not to obtain the account information for logging in the second server, and the safety of the account information is improved when the first client logs in the second server.
As an alternative embodiment, the above apparatus further comprises:
(1) a determining unit configured to determine a type of the second server that matches the login information before logging in the second server using the login information on the first client;
(2) and the adding unit is used for adding the script file matched with the type of the second server into the first client, wherein the script file is used for automatically logging in the second server by using the login information after the login information is received.
According to the embodiment, the script file matched with the type of the second server is obtained and the second server is logged in by using the script file, so that the security of the account password for logging in the second server is ensured, and meanwhile, the efficiency of logging in the second server is improved.
As an alternative embodiment, the login unit includes:
(1) the display module is used for displaying a first page on the first client, wherein the first page is used for acquiring input login information;
(2) and the writing module is used for automatically writing the login information into a second page for logging in a second server after receiving the trigger instruction.
Through the embodiment, the second server is logged in by the method, so that the security of the account password for logging in the second server is ensured, and the efficiency of logging in the second server is improved.
As an optional implementation, the information to be processed is a billing mail, and the receiving unit includes:
(1) the receiving module is used for receiving the bill information acquired from the bill mail by the first server, wherein the bill information at least comprises a repayment date and a repayment amount.
Through the embodiment, the first client billing information is returned through the method, so that the security of the account number and the password for logging in the second server is ensured, and meanwhile, the accuracy of sending the billing information to the user is also ensured.
As an alternative implementation, the sending unit includes:
(1) and the sending module is used for sending a session control session for the first client to log in the second server to the first server so that the first server can access the second server by using the session, wherein the session comprises login state information.
Through the embodiment, the security of the account password for logging in the second server is ensured through the method.
According to another aspect of the embodiment of the present invention, there is also provided an information acquisition apparatus for implementing the information acquisition method. As shown in fig. 11, the apparatus includes:
(1) an obtaining unit 1102, configured to obtain login status information used to access a second server, where the second server stores information to be processed, and the login status information is used to indicate that a first client successfully logs in the second server using the login information;
(2) an accessing unit 1104, configured to access the second server by using the login status information, to obtain information to be processed;
(3) an execution unit 1106, configured to execute a target operation on information to be processed to obtain a target result;
(4) a first sending unit 1108, configured to send the target result to the first client.
Optionally, the information obtaining apparatus may be applied to, but not limited to, a process of the client binding the mailbox to parse the mail content. The first client may be any client on the terminal, the first server may be, but is not limited to, a server corresponding to the client, and the second server may be a mailbox server. Taking the above scenario as an example, a client running on a terminal needs to bind a mailbox, and obtains a mail to be processed in a mailbox server through an account password of the mailbox. After the client acquires the account password, the client logs in the mailbox server by using the account password, so that the certificate-login state information of successfully logging in the mailbox server is acquired, and the login state information is sent to the server of the client. And after receiving the login state information, the server of the client accesses the mailbox server by using the login state information and acquires the mail in the mailbox server. And the server of the client processes the acquired mails to obtain a processing result, and returns the processing result to the client, and the client displays the processing result.
By the aid of the device, after the first client side obtains the account password for logging in the second server, the second server is logged in by using the account password, the login state information is obtained, and the login state information is sent to the first server of the first client side, so that the first server can access the second server by using the login state information and obtain the content to be processed. And after the first server processes the content to be processed, obtaining a processing result and sending the processing result to the first client, and displaying the processing result by the first client. Therefore, when the data to be processed is obtained, the first client does not need to obtain the account password for logging in the second client, and the safety of the account password is guaranteed.
Optionally, the information obtaining method may be, but is not limited to, applied to a process of the client binding the mailbox to parse the mail content. The first client may be any client on the terminal, the first server may be, but is not limited to, a server corresponding to the client, and the second server may be a mailbox server. Taking the above scenario as an example, a client running on a terminal needs to bind a mailbox, and obtains a mail to be processed in a mailbox server through an account password of the mailbox. After the client acquires the account password, the client logs in the mailbox server by using the account password, so that the certificate-login state information of successfully logging in the mailbox server is acquired, and the login state information is sent to the server of the client. And after receiving the login state information, the server of the client accesses the mailbox server by using the login state information and acquires the mail in the mailbox server. And the server of the client processes the acquired mails to obtain a processing result, and returns the processing result to the client, and the client displays the processing result.
According to the method, after the first client side obtains the account password for logging in the second server, the second server is logged in by using the account password, the login state information is obtained, and the login state information is sent to the first server of the first client side, so that the first server can access the second server by using the login state information and obtain the content to be processed. And after the first server processes the content to be processed, obtaining a processing result and sending the processing result to the first client, and displaying the processing result by the first client. Therefore, when the data to be processed is obtained, the first client does not need to obtain the account password for logging in the second client, and the safety of the account password is guaranteed.
After the first client successfully logs in the second server, login state information of the first client successfully logging in can be acquired. The login state information may be session information. The first client sends the session information to the first server, the first server uses the session information to access the second server, and the second server determines that the first client has successfully logged in the second server through the session information because the second server receives the session information sent by the first server. Therefore, the second server returns the information to be processed to the first server. And after receiving the information to be processed, the first server processes the information to be processed and returns a processing result to the first client.
Optionally, the information to be processed may be mail information to be analyzed. After receiving the mail information to be analyzed, the first server analyzes the mail to be analyzed, analyzes the mail to be analyzed to obtain the key content in the mail to be analyzed, and sends the key content to the first client for display. Taking the mail to be analyzed as the bill mail as an example, the first server analyzes the mail to be analyzed to obtain bill information, wherein the bill information includes a repayment date and an amount. The first server then sends the billing information to the first client, which may display the billing information.
For other embodiments of this embodiment, reference may be made to the above examples, which are not described again.
According to the method, the first client does not need to send the account password for logging in the second server to the first server, but sends the login state information of the first client for logging in the second server to the first server, so that the first server accesses the second server through the login state information and obtains the information to be processed, the first server is ensured not to obtain the account information for logging in the second server, and the safety of the account information is improved when the first client logs in the second server.
As an alternative embodiment, the above apparatus further comprises:
(1) the receiving unit is used for receiving the type of the second server sent by the first client before acquiring login state information for accessing the second server, wherein the type of the second server is determined according to the login information;
(2) and the returning unit is used for returning the script file matched with the type of the second server to the first client, wherein the script file is used for automatically logging in the second server by using the login information under the condition of receiving the login information.
According to the embodiment, the script file matched with the type of the second server is obtained and the second server is logged in by using the script file, so that the security of the account password for logging in the second server is ensured, and meanwhile, the efficiency of logging in the second server is improved.
As an optional implementation, the information to be processed is a billing mail, and the apparatus further includes:
(1) the processing unit is used for processing the bill mail to obtain bill information after the login state information is used for accessing the second server to obtain the information to be processed, wherein the bill information at least comprises a repayment date and a repayment amount;
(2) and the second sending unit is used for sending the bill information to the first client.
Through the embodiment, the second server is logged in by the method, so that the security of the account password for logging in the second server is ensured, and the efficiency of logging in the second server is improved.
As an alternative embodiment, the obtaining unit includes:
(1) the receiving module is used for receiving a session control session of the first client for logging in the second server, wherein the session comprises login state information;
(2) and the access module is used for accessing the second server by using session so as to acquire the information to be processed.
Through the embodiment, the first client billing information is returned through the method, so that the security of the account number and the password for logging in the second server is ensured, and meanwhile, the accuracy of sending the billing information to the user is also ensured.
According to yet another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the information acquisition method, as shown in fig. 12, the electronic device includes a memory 1202 and a processor 1204, the memory 1202 stores therein a computer program, and the processor 1204 is configured to execute the steps in any one of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, logging in a second server on the first client by using the login information, wherein the second server stores information to be processed;
s2, obtaining login state information on the first client, wherein the login state information is used for indicating that the first client successfully logs in the second server by using the login information;
s3, sending the login state information to a first server corresponding to the first client on the first client, wherein the first server is used for accessing a second server by using the login state information and executing target operation on the information to be processed accessed from the second server to obtain a target result;
s4, the target result sent by the first server is received on the first client.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 12 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 12 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 12, or have a different configuration than shown in FIG. 12.
The memory 1202 may be used to store software programs and modules, such as program instructions/modules corresponding to the information acquisition method and apparatus in the embodiments of the present invention, and the processor 1204 executes various functional applications and data processing by running the software programs and modules stored in the memory 1202, that is, implements the information acquisition method described above. The memory 1202 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1202 can further include memory located remotely from the processor 1204, which can be connected to a terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1202 may be, but not limited to, specifically configured to store information such as target results. As an example, as shown in fig. 12, the memory 1202 may include, but is not limited to, a login unit 1002, an acquisition unit 1004, a sending unit 1006, and a receiving unit 1008 in the information acquisition apparatus. In addition, the information acquisition device may further include, but is not limited to, other module units in the information acquisition device, which is not described in detail in this example.
Optionally, the transmitting device 1206 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmitting device 1206 includes a Network adapter (NIC) that can be connected to a router via a Network cable to communicate with the internet or a local area Network. In one example, the transmitting device 1206 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1208 for displaying the target result; and a connection bus 1210 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the information acquisition method, as shown in fig. 13, the electronic device includes a memory 1302 and a processor 1304, the memory 1302 stores a computer program, and the processor 1304 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, obtaining login state information for accessing a second server, wherein the second server stores information to be processed, and the login state information is used for indicating that the first client successfully logs in the second server by using the login information;
s2, accessing the second server by using the login state information to obtain information to be processed;
s3, executing target operation on the information to be processed to obtain a target result;
and S4, sending the target result to the first client.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 13 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, and a Mobile Internet Device (MID), a PAD, and the like. Fig. 13 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 13, or have a different configuration than shown in FIG. 13.
The memory 1302 may be used to store software programs and modules, such as program instructions/modules corresponding to the information acquisition method and apparatus in the embodiments of the present invention, and the processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, implementing the information acquisition method described above. The memory 1302 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1302 may further include memory located remotely from the processor 1304, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1302 may be used for storing information such as information to be processed and target result, but is not limited thereto. As an example, as shown in fig. 13, the memory 1302 may include, but is not limited to, an obtaining unit 1102, an accessing unit 1104, an executing unit 1106, and a first sending unit 1108 of the information obtaining apparatus. In addition, the information acquisition device may further include, but is not limited to, other module units in the information acquisition device, which is not described in detail in this example.
Optionally, the transmitting device 1306 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmitting device 1306 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1308 for displaying information to be processed; and a connection bus 1310 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, logging in a second server on the first client by using the login information, wherein the second server stores information to be processed;
s2, obtaining login state information on the first client, wherein the login state information is used for indicating that the first client successfully logs in the second server by using the login information;
s3, sending the login state information to a first server corresponding to the first client on the first client, wherein the first server is used for accessing a second server by using the login state information and executing target operation on the information to be processed accessed from the second server to obtain a target result;
s4, the target result sent by the first server is received on the first client.
Or, alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the following steps:
s1, obtaining login state information for accessing a second server, wherein the second server stores information to be processed, and the login state information is used for indicating that the first client successfully logs in the second server by using the login information;
s2, accessing the second server by using the login state information to obtain information to be processed;
s3, executing target operation on the information to be processed to obtain a target result;
and S4, sending the target result to the first client.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. An information acquisition method, comprising:
logging in a second server on the first client by using login information, wherein the second server stores information to be processed;
obtaining login state information on the first client, wherein the login state information is used for indicating that the first client successfully logs in the second server by using the login information;
sending the login state information to a first server corresponding to the first client on the first client, wherein the first server is used for accessing the second server by using the login state information and executing target operation on the to-be-processed information accessed from the second server to obtain a target result;
receiving the target result sent by the first server on the first client.
2. The method of claim 1, wherein prior to logging on to the second server using the login information on the first client, further comprising:
determining a type of the second server matching the login information;
and adding a script file matched with the type of the second server into the first client, wherein the script file is used for automatically logging in the second server by using the login information after receiving the login information.
3. The method of claim 1, wherein logging in to the second server using the login information on the first client comprises:
displaying a first page on the first client, wherein the first page is used for acquiring the input login information;
and after receiving a trigger instruction, automatically writing the login information into a second page for logging in the second server.
4. The method of claim 1, wherein the pending information is a billing mail, and wherein receiving the target result sent by the first server at the first client comprises:
and receiving bill information acquired from the bill mail by the first server, wherein the bill information at least comprises a repayment date and a repayment amount.
5. The method of any of claims 1 to 4, wherein sending the login status information at the first client to a first server corresponding to the first client comprises:
and sending a session control session for the first client to log in the second server to the first server so that the first server accesses the second server by using the session, wherein the session comprises the login state information.
6. An information acquisition method, comprising:
obtaining login state information for accessing a second server, wherein the second server stores information to be processed, and the login state information is used for indicating that a first client successfully logs in the second server by using the login information;
accessing the second server by using the login state information to obtain the information to be processed;
executing target operation on the information to be processed to obtain a target result;
and sending the target result to the first client.
7. The method of claim 6, further comprising, prior to obtaining login status information for accessing the second server:
receiving the type of the second server sent by the first client, wherein the type of the second server is determined according to the login information;
and returning a script file matched with the type of the second server to the first client, wherein the script file is used for automatically logging in the second server by using the login information under the condition that the login information is received.
8. The method of claim 6, wherein the to-be-processed information is a billing mail, and after accessing the second server using the login status information to obtain the to-be-processed information, the method further comprises:
processing the bill mail to obtain bill information, wherein the bill information at least comprises a repayment date and a repayment amount;
and sending the bill information to the first client.
9. The method of claim 6, wherein obtaining login status information for accessing the second server comprises:
receiving a session control session for the first client to log in the second server, wherein the session comprises the login state information;
and using the session to access the second server to acquire the information to be processed.
10. An information acquisition apparatus characterized by comprising:
the system comprises a login unit, a processing unit and a processing unit, wherein the login unit is used for logging in a second server on a first client by using login information, and the second server stores information to be processed;
an obtaining unit, configured to obtain login status information on the first client, where the login status information is used to indicate that the first client successfully logs in the second server using the login information;
a sending unit, configured to send the login status information to a first server corresponding to the first client on the first client, where the first server is configured to access the second server using the login status information, and perform a target operation on the to-be-processed information accessed from the second server to obtain a target result;
a receiving unit, configured to receive, on the first client, the target result sent by the first server.
11. The apparatus of claim 10, further comprising:
a determining unit configured to determine a type of a second server that matches login information before logging in the second server using the login information on a first client;
and the adding unit is used for adding a script file matched with the type of the second server into the first client, wherein the script file is used for automatically logging in the second server by using the login information after receiving the login information.
12. The apparatus of claim 10, wherein the login unit comprises:
the display module is used for displaying a first page on the first client, wherein the first page is used for acquiring the input login information;
and the writing module is used for automatically writing the login information into a second page for logging in the second server after receiving the triggering instruction.
13. An information acquisition apparatus characterized by comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring login state information for accessing a second server, the second server stores information to be processed, and the login state information is used for indicating that a first client successfully logs in the second server by using login information;
the access unit is used for accessing the second server by using the login state information to obtain the information to be processed;
the execution unit is used for executing target operation on the information to be processed to obtain a target result;
and the first sending unit is used for sending the target result to the first client.
14. A storage medium storing a computer program, characterized in that the computer program executes the method of any of claims 1 to 5 or 6 to 9.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 5 or 6 to 9 by means of the computer program.
CN201910551541.6A 2019-06-24 2019-06-24 Information acquisition method and device, storage medium and electronic device Active CN112134780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910551541.6A CN112134780B (en) 2019-06-24 2019-06-24 Information acquisition method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910551541.6A CN112134780B (en) 2019-06-24 2019-06-24 Information acquisition method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112134780A true CN112134780A (en) 2020-12-25
CN112134780B CN112134780B (en) 2022-09-13

Family

ID=73849778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910551541.6A Active CN112134780B (en) 2019-06-24 2019-06-24 Information acquisition method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112134780B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998038776A1 (en) * 1997-02-28 1998-09-03 Electronic Data Systems Corporation System and method for securely accessing information from disparate data sources through a network
CN102204194A (en) * 2011-05-11 2011-09-28 华为技术有限公司 Method and system for sharing files
CN103023638A (en) * 2011-09-22 2013-04-03 阿里巴巴集团控股有限公司 Identity verification method and device based on mobile terminal
CN103606074A (en) * 2013-11-07 2014-02-26 北京奇虎科技有限公司 Mail content loading method and apparatus, and browser
CN105472052A (en) * 2014-09-03 2016-04-06 阿里巴巴集团控股有限公司 Login method and system of cross-domain server
CN105471913A (en) * 2015-12-31 2016-04-06 广州多益网络科技有限公司 Client login method and system through regional information sharing
CN106341313A (en) * 2016-09-29 2017-01-18 北京小米移动软件有限公司 Method and apparatus for obtaining billing information
CN106341233A (en) * 2015-07-08 2017-01-18 阿里巴巴集团控股有限公司 Authentication method for client to log into server, device, system and electronic device
US20170041310A1 (en) * 2014-04-15 2017-02-09 Huawei Technologies Co., Ltd. Rights control method, client, and server
CN108055253A (en) * 2017-12-06 2018-05-18 珠海格力电器股份有限公司 A kind of software login validation method, apparatus and system
CN108712376A (en) * 2018-04-04 2018-10-26 北京奇虎科技有限公司 A kind of verification method and device for server log
US20180343123A1 (en) * 2016-04-27 2018-11-29 Tencent Technology (Shenzhen) Company Limited Authentication method, system and equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998038776A1 (en) * 1997-02-28 1998-09-03 Electronic Data Systems Corporation System and method for securely accessing information from disparate data sources through a network
CN102204194A (en) * 2011-05-11 2011-09-28 华为技术有限公司 Method and system for sharing files
CN103023638A (en) * 2011-09-22 2013-04-03 阿里巴巴集团控股有限公司 Identity verification method and device based on mobile terminal
CN103606074A (en) * 2013-11-07 2014-02-26 北京奇虎科技有限公司 Mail content loading method and apparatus, and browser
US20170041310A1 (en) * 2014-04-15 2017-02-09 Huawei Technologies Co., Ltd. Rights control method, client, and server
CN105472052A (en) * 2014-09-03 2016-04-06 阿里巴巴集团控股有限公司 Login method and system of cross-domain server
CN106341233A (en) * 2015-07-08 2017-01-18 阿里巴巴集团控股有限公司 Authentication method for client to log into server, device, system and electronic device
CN105471913A (en) * 2015-12-31 2016-04-06 广州多益网络科技有限公司 Client login method and system through regional information sharing
US20180343123A1 (en) * 2016-04-27 2018-11-29 Tencent Technology (Shenzhen) Company Limited Authentication method, system and equipment
CN106341313A (en) * 2016-09-29 2017-01-18 北京小米移动软件有限公司 Method and apparatus for obtaining billing information
CN108055253A (en) * 2017-12-06 2018-05-18 珠海格力电器股份有限公司 A kind of software login validation method, apparatus and system
CN108712376A (en) * 2018-04-04 2018-10-26 北京奇虎科技有限公司 A kind of verification method and device for server log

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LI, CT等: "A Chaotic Maps Based Key Agreement and User Anonymity Protocol without Using Smart Cards and Symmetric Key En/Decryptions", 《JOURNAL OF INTERNET TECHNOLOGY》 *
卜凡港: "基于JavaMail的Web邮件验证系统设计", 《电子技术与软件工程》 *
顾斌: "天津移动安全管控平台的研究与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *

Also Published As

Publication number Publication date
CN112134780B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN107450941B (en) Automatic packaging method, device, storage medium and computer equipment
US10362086B2 (en) Method and system for automating submission of issue reports
CN103944944B (en) Method, electronic equipment and the system of sharing web page link
CN104125547B (en) Handle the method and short message processing device of short message
CN109428878A (en) Leak detection method, detection device and detection system
CN108418787B (en) Method for acquiring enterprise resource planning data, terminal device and medium
CN103607385A (en) Method and apparatus for security detection based on browser
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN107852412A (en) For phishing and the system and method for brand protection
CN107370804B (en) Software application processing method and device
CN106453216A (en) Malicious website interception method, malicious website interception device and client
CN110851818B (en) Verification code display method and device, computer equipment and readable storage medium
CN112956157B (en) System and method for tracking client device events
US10740858B2 (en) System and method for collecting forensic data via a mobile device
CN107291759A (en) The treating method and apparatus of browser page resource
CN107302586A (en) A kind of Webshell detection methods and device, computer installation, readable storage medium storing program for executing
CN107203470B (en) Page adjustment method and device
CN104361007B (en) The processing method of browser and its collection
CN112241298A (en) Page display method and device, storage medium and electronic device
CN108322420A (en) The detection method and device of backdoor file
WO2014194766A1 (en) Method, system and apparatus for collecting a webpage
CN112134780B (en) Information acquisition method and device, storage medium and electronic device
CN112187747A (en) Remote container login method and device and electronic equipment
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN110866196A (en) Printer network information acquisition method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant