WO2019019646A1 - Method and apparatus for platform to login to website, computer device, and readable storage medium - Google Patents

Method and apparatus for platform to login to website, computer device, and readable storage medium Download PDF

Info

Publication number
WO2019019646A1
WO2019019646A1 PCT/CN2018/078320 CN2018078320W WO2019019646A1 WO 2019019646 A1 WO2019019646 A1 WO 2019019646A1 CN 2018078320 W CN2018078320 W CN 2018078320W WO 2019019646 A1 WO2019019646 A1 WO 2019019646A1
Authority
WO
WIPO (PCT)
Prior art keywords
login
website
verification code
request
password
Prior art date
Application number
PCT/CN2018/078320
Other languages
French (fr)
Chinese (zh)
Inventor
吴贞海
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2019019646A1 publication Critical patent/WO2019019646A1/en

Links

Images

Classifications

    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • the present application relates to the field of computer technology, and in particular, to a platform login website method, apparatus, computer device, and readable storage medium.
  • the Internet itself is a repository of big data, and web-based web server sites and web pages are the access points for these data.
  • the service platform often needs to capture the user's service data, and the service data can be obtained only after the user's account is logged in to the website.
  • the user-sensitive information needs to be logged in and authorized by the user to access the device.
  • an automatic login method is added.
  • the automatic login method can realize that the platform can automatically log in to the website according to the user information when the user logs in to the website, so as to implement the user's login on the website, and the automatic program is based on the user's login.
  • the parameter implementation automatically logs in to the website through the user account, obtains the credentials, and then serves as a parameter for subsequent data capture.
  • a platform login website method comprising:
  • the login account and the password are input into a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running in the platform;
  • the login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
  • a platform login website device comprising:
  • the obtaining module is configured to obtain a login parameter generated when the user logs in to the website, where the login parameter includes a website identifier, a login account, and a password of the website that the user logs in; and obtains a corresponding website address according to the website identifier;
  • An input module configured to input, by using a script pre-injected into a browser running in the platform, the login account and the password into a webpage loaded by the browser and corresponding to the website address;
  • a generating module configured to generate a login request according to the login account and password input into the webpage
  • the sending module is configured to send the login request to the website server, and log in by using the login account and the password carried in the login request.
  • a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the program to implement the following steps:
  • the login account and the password are input to a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running on the platform;
  • the login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:
  • the login account and the password are input into a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running in the platform;
  • the login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
  • the above-mentioned platform login website method, device, computer device and readable storage medium realize automatic login of the website by pre-injecting a script into the browser running on the platform, and no complicated compilation and deployment process of the browser is required. Reduced the difficulty of research and development.
  • FIG. 1 is an application environment diagram of a platform login website method in an embodiment
  • FIG. 2 is a flowchart of a method for logging in to a website by a platform in an embodiment
  • FIG. 3 is a flow chart of a verification step in an embodiment
  • FIG. 4 is a flow chart of step S206 in the embodiment shown in Figure 2;
  • FIG. 5 is a flow chart of step S210 in the embodiment shown in Figure 2;
  • FIG. 6 is a schematic diagram of a platform login website device in an embodiment
  • FIG. 7 is a schematic diagram of a platform login website device in another embodiment
  • FIG. 8 is a schematic structural diagram of a computer device in an embodiment.
  • FIG. 1 is an application environment diagram of a method for logging in to a website in an embodiment, which includes a user terminal, a platform, and a website server, wherein the user terminal can communicate with the platform and the website server, and the platform can also be performed with the website server.
  • the user terminal can send the login account and the password of the login website server to the platform for storage, so that the platform can log in to the website server according to the login account and the password, and the platform can capture the user's business data from the website server.
  • a platform login website method is provided. This embodiment is exemplified by applying the method to the platform in the platform login website system in FIG.
  • the platform runs a platform login website program, and the platform login program is used to implement the platform login website method.
  • the method specifically includes the following steps:
  • S202 Acquire a login parameter generated when the user logs in to the website, where the login parameter includes a website identifier, a login account, and a password of the website that the user logs in.
  • the user when the user logs in to the website server, the user needs to input the login account and password, so that the user can successfully log in to the website server.
  • the platform logs in to the website server, the login parameter generated when the user logs in to the website is obtained.
  • the obtaining process requires the authorization of the user.
  • the user terminal when the user logs in to the website server, the user terminal prompts the user whether to send the login parameter to the user.
  • Platform when the user selects Yes, the user terminal sends the login parameters to the platform.
  • the login parameters include the website identifier that the user is logged in, such as the url address of the website (Uniform Resource Locator).
  • the website identifier is an identifier that can uniquely determine a certain website, and the corresponding website address can be obtained through the website identifier. Since the website address of each website is unique, the corresponding web page can be opened according to the website address.
  • S206 Enter the login account and password into the webpage corresponding to the website address loaded by the browser by using a script pre-injected into the browser running on the platform.
  • the browser can open the corresponding webpage according to the website address, that is, the browser can download the network data from the website server according to the website address, and then display and display the corresponding webpage according to the network data, and execute the network when there is a script in the network data.
  • the script in the data completes some post-render interactions on the platform, such as zooming in on a picture, setting a background, and so on.
  • the standard browser does not allow the behavior of third-party scripts to be implanted, in order to implement the behavior of injecting scripts into the browser, a specific browser can be developed as needed, which can be injected to input the login account and password to browse.
  • the script of the device can input the login account and password into the browser through a script pre-injected into the browser running on the platform. Since the scripts are generally directly hot-fixed and quickly updated, the login account and password can be input into the browser by injecting a script to easily adapt to the upgrade of the login page of the website, for example, when the original button name "login_button" is changed to " When login_button2", the method of inputting the login account and password into the browser by injecting the script can directly modify the script into "login_button2" in the existing program, and save it directly, without the need for the original The browser is recompiled and deployed, saving a lot of time.
  • S208 Generate a login request according to the login account and password input into the webpage.
  • the browser running in the platform may generate a login request according to the login account and password input into the webpage, and then generate a login request token packet, which may be generated based on a certain communication protocol.
  • S210 Send the login request to the website server, and log in by using the login account and password carried in the login request.
  • the platform sends the login request to the website server, and after receiving the login request, the website server first reads the encrypted login account and password, and then decrypts the encrypted login account and password according to a specific decryption rule. Obtain the login account and password, and then query the password of the corresponding login account stored in the website server, and compare the password sent by the platform with the password stored in the website server. When the two are the same, the platform can log in through the login request. Login with account and password.
  • FIG. 3 is a flowchart of a verification step in an embodiment, which may be performed before step S208 in the embodiment shown in FIG. 2, that is, according to a login account entered into a webpage and Before the password generation step of the login request, the method may further include:
  • S302 Send a verification code request to the website server, and generate a verification code according to the verification code request by the website server. Specifically, in order to prevent the account from being imported by the automation software or the like and introducing the verification code, the risk control mechanism is triggered, resulting in login failure and the like. In order to prevent this from happening, the platform sends a verification code request to the website server, so that the website server generates a verification code and feeds the verification code to the user.
  • S304 Acquire a verification code returned by the website server sent by the user terminal.
  • the website server feeds back the verification code to the user terminal instead of the platform. Therefore, in order to obtain the verification code fed back to the website server, the verification code can be directly fed back to the platform through the user terminal, or a transit server is introduced, thereby The verification code returned by the web server sent by the user terminal can be obtained by communicating with the relay server.
  • S306 Input the verification code into the webpage by a script pre-injected into a browser running on the platform. Specifically, when the platform obtains the verification code, the verification code can be input into the webpage of the browser by a script pre-injected into the browser running on the platform. Since the script is generally directly hot-repaired and quickly updated, the injection is injected. The way the script is entered into the browser can be easily adapted to the upgrade changes of the landing page of the website.
  • S308 Perform verification by using the verification code. If the verification is passed, the step of generating a login request according to the login account and password input to the webpage is entered. Specifically, when the verification code verification is successful, the website server returns the information that the verification passes to the platform, and the platform passes the verification, and then generates a login request according to the login account and the password input into the webpage to implement the login.
  • the step of inputting the verification code into the webpage by a script pre-injected into the browser running in the platform may include: browsing through the pre-injection into the platform
  • the script of the device queries whether there is a file corresponding to the verification code request in the file system; when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an available state, it will correspond to the verification code request.
  • the verification code in the file is entered into the web page corresponding to the website address loaded by the browser.
  • the first timeout period is set; after the first timeout period elapses If the file corresponding to the verification code request is still unavailable, the verification code request is resent to the website server.
  • FIG. 4 is a flowchart of step S206 in the embodiment shown in FIG. 2, in which it is determined whether a corresponding verification code has been obtained by querying whether a file corresponding to the verification code request exists in the platform file system.
  • the step S206 can include:
  • a file system refers to a method and data structure used by an operating system to clarify files on a disk or partition, or a disk or partition used to store files.
  • the file system includes: software related to file management, managed files, and data structures required for implementing file management.
  • the file corresponding to the verification code can be identified by the login account and the website.
  • the script that is pre-injected into the browser running on the platform can directly query whether there is a file whose file name includes the login account and the website identifier in the file system.
  • FIG. 5 is a flowchart of step S210 in the embodiment shown in FIG. 2.
  • the step S210 that is, the step of implementing the login by using the login account and the password carried in the login request, may include:
  • S502 Detect whether a login response returned by the website server is received. Specifically, in the process of logging in to the website server, the platform first needs to send the login request to the website server, and the website server determines whether the login account and the password carried in the login request are correct. Only when the login account and the password are correct, the website server is The login response is returned to the platform, so that the platform determines whether the login is successful according to the login response.
  • S504 Set a second timeout period when the login response returned by the website server is not received. Specifically, the login response returned by the website server may be lost during the transmission process, so that the platform cannot receive the login response in time, so the second timeout period may be set, and the second timeout period is the website login time that the platform can tolerate. After the login time, the platform has not logged in to the website, indicating that the website login failed.
  • FIG. 6 is a schematic diagram of a platform login website device in an embodiment.
  • the platform login website device 100 includes:
  • the obtaining module 110 is configured to obtain a login parameter generated when the user logs in to the website, where the login parameter includes a website identifier, a login account, and a password of the website that the user logs in; and the corresponding website address is obtained according to the website identifier.
  • the input module 120 is configured to input the login account and the password into the webpage corresponding to the website address loaded by the browser by using a script pre-injected into the browser running on the platform.
  • the generating module 130 is configured to generate a login request according to the login account and the password input into the webpage.
  • the sending module 140 is configured to send the login request to the website server, and log in by using the login account and password carried in the login request.
  • FIG. 7 is a schematic diagram of a platform login website device in another embodiment, where the sending module 140 is further configured to send a verification code request to the website server, and request the verification code according to the website server. Generate a verification code.
  • the obtaining module 110 is further configured to obtain a verification code fed back by the user terminal through the interaction server.
  • the input module 120 can also be configured to obtain a verification code returned by the website server sent by the user terminal.
  • the device may further include: a verification module 150, configured to perform verification by using the verification code, and if the verification is passed, generate a login request according to the login account and the password input into the webpage.
  • a verification module 150 configured to perform verification by using the verification code, and if the verification is passed, generate a login request according to the login account and the password input into the webpage.
  • the input module 120 can include:
  • the query unit 121 is configured to query, by using a script injected into the browser running on the platform, whether there is a file corresponding to the verification code request in the file system.
  • the input unit 122 is configured to: when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an available state, input the verification code in the file corresponding to the verification code request into the browser. In the web page corresponding to the website address.
  • the apparatus may further include:
  • the setting module is configured to set a first timeout period when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an unavailable state.
  • the resending module is configured to resend the verification code request to the website server when the file corresponding to the verification code request is still unavailable after the first timeout period elapses.
  • the sending module 140 can include:
  • the checking unit 141 is configured to detect whether a login response returned by the website server is received.
  • the setting unit 142 is configured to set a second timeout period when the login response returned by the website server is not received.
  • the sending unit 143 is configured to: after receiving the login response returned by the website server after the second timeout period has elapsed, re-send the login request to the website server until the login account and the password carried by the login request are used to implement the login.
  • FIG. 8 is a schematic structural diagram of a computer device in an embodiment, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the memory may include non-volatile storage.
  • the medium and the internal memory may be stored in the non-volatile storage medium.
  • login account and password obtain the corresponding website address according to the website identifier; input the login account and password into the webpage corresponding to the website address loaded by the browser through a script pre-injected into the browser running on the platform;
  • the login account and password in the webpage generate a login request; the login request is sent to the website server, and the login is carried out by using the login account and password carried in the login request.
  • the processor may further implement the following steps: sending a verification code request to the website server, generating a verification code according to the verification code request by the website server; acquiring a verification code returned by the website server sent by the user terminal; The script is pre-injected into the browser running on the platform, and the verification code is input into the webpage; the verification code is used for verification, and if the verification is passed, the step of generating the login request according to the login account and password input into the webpage is entered.
  • the processor executes the program, the following steps may be implemented: querying, by a script injected into the browser running on the platform, whether a file corresponding to the verification code request exists in the file system; when the file system exists and If the verification code requests the corresponding file, and the file corresponding to the verification code request is in an available state, the verification code in the file corresponding to the verification code request is input into the webpage corresponding to the website address loaded by the browser.
  • the following steps may be further implemented: when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is unavailable, the first timeout is set. The time period; when the file corresponding to the verification code request is still unavailable after the first timeout period expires, the verification code request is resent to the website server.
  • the processor may further implement the following steps: detecting whether a login response returned by the website server is received; setting a second timeout period when the login response returned by the website server is not received; After the second timeout period has elapsed and the login response returned by the web server has not been received, the login request is resent to the web server until the login account and password carried by the login request are used to log in.
  • a computer readable storage medium having stored thereon a computer program, such as the non-volatile storage medium shown in FIG. 8, wherein the program is executed by the processor to implement the following steps: Obtain the login parameters generated when the user logs in to the website.
  • the login parameters include the website identifier, login account, and password of the website where the user is logged in.
  • the website address is obtained according to the website identifier.
  • the script is pre-injected into the browser running on the platform.
  • the login account and password are input into the webpage corresponding to the website address loaded by the browser; the login request is generated according to the login account and password input into the webpage; the login request is sent to the web server, and the login account and password carried by the login request are implemented. log in.
  • the following steps may be further implemented: sending a verification code request to the website server, generating a verification code according to the verification code request by the website server; and obtaining a verification code returned by the website server sent by the user terminal.
  • the verification code is input into the webpage by a script pre-injected into the browser running on the platform; the verification code is used for verification; if the verification is passed, the step of generating a login request according to the login account and password input into the webpage is entered.
  • the following steps may be further implemented: querying, by a script injected into the browser running on the platform, whether a file corresponding to the verification code request exists in the file system; If there is a file corresponding to the verification code request, and the file corresponding to the verification code request is in an available state, the verification code in the file corresponding to the verification code request is input into a webpage corresponding to the website address loaded by the browser.
  • the following steps may be further implemented: when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is unavailable, then the first setting is performed. A timeout period; when the file corresponding to the verification code request is still unavailable after the first timeout period expires, the verification code request is resent to the website server.
  • the following steps may be further implemented: detecting whether a login response returned by the website server is received; and when not receiving the login response returned by the website server, setting a second timeout period When the login response returned by the web server is not received after the second timeout period has elapsed, the login request is resent to the web server until the login account and password carried by the login request are used to log in.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present application relates to a method and an apparatus for a platform to login to a website, a computer device and a readable storage medium. Said method comprises: acquiring login parameters generated when the user logs in to a website, the login parameters including a website identifier of the website to which the user logs in, a login account and a password; acquiring a corresponding website address according to the website identifier; inputting, by means of a script which is previously injected into the browser running on the platform, the login account and the password to a webpage, which is uploaded by a browser, corresponding to the website address; generating a login request according to the login account and the password which are input to the webpage; and sending the login request to a website server, and realizing login by means of the login account and the password which are carried by the login request. According to the method and the apparatus for the platform to login to the website, the computer device, and the readable storage medium, automatic login to the website is realized by means of the script which is previously injected into the browser running on the platform, without the need of performing complex coding and deploying on the browser any more, reducing the difficulty of development.

Description

平台登录网站方法、装置、计算机设备以及可读存储介质Platform login website method, device, computer device and readable storage medium
本申请申明享有2017年7月25日递交的申请号为201710614410.9、名称为“平台登录网站方法、装置、计算机设备以及可读存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。The present application claims the priority of the Chinese patent application filed on July 25, 2017, with the application number of 201710614410.9, entitled "Platform Login Website Method, Apparatus, Computer Equipment, and Readable Storage Medium", the overall content of the Chinese patent application It is incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种平台登录网站方法、装置、计算机设备以及可读存储介质。The present application relates to the field of computer technology, and in particular, to a platform login website method, apparatus, computer device, and readable storage medium.
背景技术Background technique
互联网本身是一个大数据的存储体,而网状分布的网站服务器网站和网页是这些数据的访问入口。在一些应用场景下,业务平台往往需要抓取用户的业务数据,而这些业务数据是通过用户的账号登录网站后才能够获取,对于用户敏感的信息则需要用户本身登录授权以后才可以访问,于是,在自动化的获取程序中加入自动登录方法,该自动登录方法可以实现平台在用户登录网站时可以自动根据用户信息登录网站以实现对用户在网站上的数据进行抓取,自动化程序根据用户的登录参数实现通过用户账号自动登录到网站,获得凭据,进而作为后续的数据抓取的参数。The Internet itself is a repository of big data, and web-based web server sites and web pages are the access points for these data. In some application scenarios, the service platform often needs to capture the user's service data, and the service data can be obtained only after the user's account is logged in to the website. The user-sensitive information needs to be logged in and authorized by the user to access the device. In the automated acquisition program, an automatic login method is added. The automatic login method can realize that the platform can automatically log in to the website according to the user information when the user logs in to the website, so as to implement the user's login on the website, and the automatic program is based on the user's login. The parameter implementation automatically logs in to the website through the user account, obtains the credentials, and then serves as a parameter for subsequent data capture.
传统技术中网站自动登录的业务控制逻辑全部使用非本地编译型语言开发,需要对浏览器进行复杂的编译以及部署过程,对研发人员的要求较高,开发难度大。In the traditional technology, the business control logic of the website automatic login is all developed in a non-local compiled language, and the complex compilation and deployment process of the browser is required, which requires high requirements for the research and development personnel and is difficult to develop.
发明内容Summary of the invention
基于此,有必要针对传统技术中针对网站自动登录的研发难度大的问 题,提供一种平台登录网站方法、装置、计算机设备以及可读存储介质。Based on this, it is necessary to provide a platform login website method, device, computer device and readable storage medium for the problem of difficulty in research and development of automatic login for websites in the conventional technology.
一种平台登录网站方法,所述方法包括:A platform login website method, the method comprising:
获取用户登录网站时产生的登录参数,所述登录参数包括用户所登录的网站的网站标识、登录账号和密码;Obtaining login parameters generated when the user logs in to the website, where the login parameters include a website identifier, a login account, and a password of the website that the user logs in to;
根据所述网站标识获取对应的网站地址;Obtaining a corresponding website address according to the website identifier;
通过预先注入到平台运行的浏览器中的脚本,将所述登录账号和密码输入至所述浏览器加载的与所述网站地址对应的网页中;The login account and the password are input into a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running in the platform;
根据输入至所述网页中的登录账号和密码生成登录请求;Generating a login request according to the login account and password input into the webpage;
将所述登录请求发送至网站服务器,通过所述登录请求携带的登录账号和密码实现登录。The login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
一种平台登录网站装置,所述装置包括:A platform login website device, the device comprising:
获取模块,用于获取用户登录网站时产生的登录参数,所述登录参数包括用户所登录的网站的网站标识、登录账号和密码;根据所述网站标识获取对应的网站地址;The obtaining module is configured to obtain a login parameter generated when the user logs in to the website, where the login parameter includes a website identifier, a login account, and a password of the website that the user logs in; and obtains a corresponding website address according to the website identifier;
输入模块,用于通过预先注入到平台运行的浏览器中的脚本,将所述登录账号和密码输入至所述浏览器加载的与所述网站地址对应的网页中;An input module, configured to input, by using a script pre-injected into a browser running in the platform, the login account and the password into a webpage loaded by the browser and corresponding to the website address;
生成模块,用于根据输入至所述网页中的登录账号和密码生成登录请求;a generating module, configured to generate a login request according to the login account and password input into the webpage;
发送模块,用于将所述登录请求发送至网站服务器,通过所述登录请求携带的登录账号和密码实现登录。The sending module is configured to send the login request to the website server, and log in by using the login account and the password carried in the login request.
一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:A computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the program to implement the following steps:
获取用户登录网站时产生的登录参数,所述登录参数包括用户所登录的网站的网站标识、登录账号和密码;Obtaining login parameters generated when the user logs in to the website, where the login parameters include a website identifier, a login account, and a password of the website that the user logs in to;
根据所述网站标识获取对应的网站地址;Obtaining a corresponding website address according to the website identifier;
通过预先注入到平台运行的浏览器中的脚本,将所述登录账号和密码输 入至所述浏览器加载的与所述网站地址对应的网页中;The login account and the password are input to a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running on the platform;
根据输入至所述网页中的登录账号和密码生成登录请求;Generating a login request according to the login account and password input into the webpage;
将所述登录请求发送至网站服务器,通过所述登录请求携带的登录账号和密码实现登录。The login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:
获取用户登录网站时产生的登录参数,所述登录参数包括用户所登录的网站的网站标识、登录账号和密码;Obtaining login parameters generated when the user logs in to the website, where the login parameters include a website identifier, a login account, and a password of the website that the user logs in to;
根据所述网站标识获取对应的网站地址;Obtaining a corresponding website address according to the website identifier;
通过预先注入到平台运行的浏览器中的脚本,将所述登录账号和密码输入至所述浏览器加载的与所述网站地址对应的网页中;The login account and the password are input into a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running in the platform;
根据输入至所述网页中的登录账号和密码生成登录请求;Generating a login request according to the login account and password input into the webpage;
将所述登录请求发送至网站服务器,通过所述登录请求携带的登录账号和密码实现登录。The login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
上述的平台登录网站方法、装置、计算机设备以及可读存储介质,通过预先注入到平台运行的浏览器中的脚本来实现网站的自动登录,不再需要对浏览器进行复杂的编译以及部署过程,降低了研发难度。The above-mentioned platform login website method, device, computer device and readable storage medium realize automatic login of the website by pre-injecting a script into the browser running on the platform, and no complicated compilation and deployment process of the browser is required. Reduced the difficulty of research and development.
附图说明DRAWINGS
图1为一实施例中的平台登录网站方法的应用环境图;1 is an application environment diagram of a platform login website method in an embodiment;
图2为一实施例中的平台登录网站方法的流程图;2 is a flowchart of a method for logging in to a website by a platform in an embodiment;
图3为一实施例中的验证步骤的流程图;3 is a flow chart of a verification step in an embodiment;
图4为图2所示实施例中的步骤S206的流程图;Figure 4 is a flow chart of step S206 in the embodiment shown in Figure 2;
图5为图2所示实施例中的步骤S210的流程图;Figure 5 is a flow chart of step S210 in the embodiment shown in Figure 2;
图6为一实施例中的平台登录网站装置的示意图;6 is a schematic diagram of a platform login website device in an embodiment;
图7为另一实施例中的平台登录网站装置的示意图;7 is a schematic diagram of a platform login website device in another embodiment;
图8为一实施例中的计算机设备的结构示意图。FIG. 8 is a schematic structural diagram of a computer device in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用于解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
在详细说明根据本申请的实施例前,应该注意到的是,所述的实施例主要在于与平台登录网站方法、装置、计算机设备以及可读存储介质相关的步骤和系统组件的组合。因此,所属系统组件和方法步骤已经在附图中通过常规符号在适当的位置表示出来了,并且只示出了与理解本申请的实施例有关的细节,以免因对于得益于本申请的本领域普通技术人员而言显而易见的那些细节模糊了本申请的公开内容。Before the embodiments in accordance with the present application are described in detail, it should be noted that the described embodiments are primarily in combinations of steps and system components associated with platform login website methods, apparatus, computer devices, and readable storage media. Accordingly, the components of the system components and the method steps have been shown in the drawings by the conventional symbols in the appropriate positions, and only the details related to the understanding of the embodiments of the present application are shown to avoid the benefit of the present application. Those details apparent to those of ordinary skill in the art obscures the disclosure of the present application.
在本文中,诸如左和右,上和下,前和后,第一和第二之类的关系术语仅仅用来区分一个实体或动作与另一个实体或动作,而不一定要求或暗示这种实体或动作之间的任何实际的这种关系或顺序。术语“包括”、“包含”或任何其他变体旨在涵盖非排他性的包含,由此使得包括一系列要素的过程、方法、物品或者设备不仅包含这些要素,而且还包含没有明确列出的其他要素,或者为这种过程、方法、物品或者设备所固有的要素。In this context, relational terms such as left and right, up and down, before and after, first and second are only used to distinguish one entity or action from another entity or action, without necessarily requiring or implying such Any actual relationship or order between entities or actions. The terms "comprising," "comprising," or "include" or "includes" or "includes" or "includes" or "includes" or "includes" An element, or an element inherent to such a process, method, item, or device.
参阅图1,图1为一实施例中的平台登录网站方法的应用环境图,其中包括用户终端、平台和网站服务器,其中用户终端可以与平台和网站服务器进行通信,平台也可以与网站服务器进行通信,用户终端可以将登录网站服务器的登录账号和密码发送给平台进行存储,从而平台可以根据该登录账号和密码登录到网站服务器,进而平台可以从网站服务器中抓取用户的业务数据。Referring to FIG. 1, FIG. 1 is an application environment diagram of a method for logging in to a website in an embodiment, which includes a user terminal, a platform, and a website server, wherein the user terminal can communicate with the platform and the website server, and the platform can also be performed with the website server. The user terminal can send the login account and the password of the login website server to the platform for storage, so that the platform can log in to the website server according to the login account and the password, and the platform can capture the user's business data from the website server.
请参阅图2,在其中一个实施例中,提供一种平台登录网站方法,本实施例以该方法应用到上述图1中的平台登录网站系统中的平台来举例说明。 该平台上运行有平台登录网站程序,通过该平台登录网站程序来实施平台登录网站方法。该方法具体包括如下步骤::Referring to FIG. 2, in one embodiment, a platform login website method is provided. This embodiment is exemplified by applying the method to the platform in the platform login website system in FIG. The platform runs a platform login website program, and the platform login program is used to implement the platform login website method. The method specifically includes the following steps:
S202:获取用户登录网站时产生的登录参数,登录参数包括用户所登录的网站的网站标识、登录账号和密码。S202: Acquire a login parameter generated when the user logs in to the website, where the login parameter includes a website identifier, a login account, and a password of the website that the user logs in.
具体地,用户在用户终端登录网站服务器时,需要用户输入登录账号和密码,从而才能成功过登录网站服务器。而平台登录网站服务器时,是获取到用户在用户终端登录网站时产生的登录参数,该获取过程需要用户的授权,例如用户在用户终端登录网站服务器时,用户终端提示用户是否将登录参数发送到平台,当用户选择是的时候,用户终端才将登录参数发送到平台。Specifically, when the user logs in to the website server, the user needs to input the login account and password, so that the user can successfully log in to the website server. When the platform logs in to the website server, the login parameter generated when the user logs in to the website is obtained. The obtaining process requires the authorization of the user. For example, when the user logs in to the website server, the user terminal prompts the user whether to send the login parameter to the user. Platform, when the user selects Yes, the user terminal sends the login parameters to the platform.
登录参数包括用户所登录的网站标识,例如网站的url地址(Uniform Resource Locator,统一资源定位符)。The login parameters include the website identifier that the user is logged in, such as the url address of the website (Uniform Resource Locator).
S204:根据网站标识获取对应的网站地址。S204: Obtain a corresponding website address according to the website identifier.
具体地,网站标识为可以唯一确定某一网站的标识,通过网站标识可以获取到对应的网站地址,由于各个网站的网站地址是唯一的,从而可以根据网站地址打开对应的网页。Specifically, the website identifier is an identifier that can uniquely determine a certain website, and the corresponding website address can be obtained through the website identifier. Since the website address of each website is unique, the corresponding web page can be opened according to the website address.
S206:通过预先注入到平台运行的浏览器中的脚本,将登录账号和密码输入至浏览器加载的与网站地址对应的网页中。S206: Enter the login account and password into the webpage corresponding to the website address loaded by the browser by using a script pre-injected into the browser running on the platform.
具体地,浏览器根据网站地址可以打开对应的网页,即浏览器可以根据网站地址从网站服务器下载网络数据,然后根据网络数据渲染显示对应的网页,当网络数据中存在脚本时,还会执行网络数据中的脚本,完成在平台的一些渲染后交互动作,比如放大某个图片、设置某个背景等。但是由于标准的浏览器不允许第三方脚本植入的行为,因此为了实现向浏览器中注入脚本的行为,可以根据需要开发一特定的浏览器,其可以注入可以将登录账号和密码输入至浏览器的脚本,通过预先注入到平台运行的浏览器中的脚本可以将登录账号和密码输入至浏览器。由于脚本一般都直接热修复和快速更新,因此通过注入脚本的方式将登录账号和密码输入至浏览器可以方便地适应 网站的登录网页的升级变化,例如当原先的按钮名称“login_button”修改为“login_button2”时,通过注入脚本的方式将登录账号和密码输入至浏览器的方法,可以直接在现有的程序里面直接修改脚本变成“login_button2”,并直接保存即可,不需要对原有的浏览器重新编译和部署,节省了大量时间。Specifically, the browser can open the corresponding webpage according to the website address, that is, the browser can download the network data from the website server according to the website address, and then display and display the corresponding webpage according to the network data, and execute the network when there is a script in the network data. The script in the data completes some post-render interactions on the platform, such as zooming in on a picture, setting a background, and so on. However, since the standard browser does not allow the behavior of third-party scripts to be implanted, in order to implement the behavior of injecting scripts into the browser, a specific browser can be developed as needed, which can be injected to input the login account and password to browse. The script of the device can input the login account and password into the browser through a script pre-injected into the browser running on the platform. Since the scripts are generally directly hot-fixed and quickly updated, the login account and password can be input into the browser by injecting a script to easily adapt to the upgrade of the login page of the website, for example, when the original button name "login_button" is changed to " When login_button2", the method of inputting the login account and password into the browser by injecting the script can directly modify the script into "login_button2" in the existing program, and save it directly, without the need for the original The browser is recompiled and deployed, saving a lot of time.
S208:根据输入至网页中的登录账号和密码生成登录请求。S208: Generate a login request according to the login account and password input into the webpage.
具体地,平台中运行的浏览器可以根据输入至网页中的登录账号和密码生成登录请求,然后生成登录请求令牌包,该登录请求令牌包可以是基于一定的通信协议生成的。Specifically, the browser running in the platform may generate a login request according to the login account and password input into the webpage, and then generate a login request token packet, which may be generated based on a certain communication protocol.
S210:将登录请求发送至网站服务器,通过登录请求携带的登录账号和密码实现登录。S210: Send the login request to the website server, and log in by using the login account and password carried in the login request.
具体地,平台将该登录请求发送给网站服务器,网站服务器在接收到该登录请求后,首先读取其中加密的登录账号和密码,然后根据特定的解密规则对该加密的登录账号和密码进行解密得到登录账号和密码,再查询网站服务器中存储的对应的登录账号的密码,将平台发送的密码与网站服务器中存储的密码进行比较,当两者相同时,平台才能通过登录请求中携带的登录账号和密码实现登录。Specifically, the platform sends the login request to the website server, and after receiving the login request, the website server first reads the encrypted login account and password, and then decrypts the encrypted login account and password according to a specific decryption rule. Obtain the login account and password, and then query the password of the corresponding login account stored in the website server, and compare the password sent by the platform with the password stored in the website server. When the two are the same, the platform can log in through the login request. Login with account and password.
参阅图3,图3为一实施例中的验证步骤的流程图,该验证步骤可以是在图2所示的实施例中的步骤S208之前被执行,即在根据输入至网页中的登录账号和密码生成登录请求的步骤之前,还可以包括:Referring to FIG. 3, FIG. 3 is a flowchart of a verification step in an embodiment, which may be performed before step S208 in the embodiment shown in FIG. 2, that is, according to a login account entered into a webpage and Before the password generation step of the login request, the method may further include:
S302:向网站服务器发送验证码请求,通过网站服务器根据验证码请求生成验证码。具体地,为防止账号被自动化软件等登录而引入验证码时会触发风控机制,导致登录失败等。为了防止该情况的发生,平台会向网站服务器发送验证码请求,从而使网站服务器生成一验证码,并将该验证码反馈给用户。S302: Send a verification code request to the website server, and generate a verification code according to the verification code request by the website server. Specifically, in order to prevent the account from being imported by the automation software or the like and introducing the verification code, the risk control mechanism is triggered, resulting in login failure and the like. In order to prevent this from happening, the platform sends a verification code request to the website server, so that the website server generates a verification code and feeds the verification code to the user.
S304:获取用户终端发送的网站服务器返回的验证码。具体地,网站服务器将验证码反馈给的是用户终端而非平台,因此为了获取到网站服务器反 馈的验证码,可以通过用户终端将该验证码直接反馈到平台,或者引入一中转服务器,从而平台可以通过与该中转服务器进行通信的方式,获取到用户终端发送的网站服务器返回的验证码。S304: Acquire a verification code returned by the website server sent by the user terminal. Specifically, the website server feeds back the verification code to the user terminal instead of the platform. Therefore, in order to obtain the verification code fed back to the website server, the verification code can be directly fed back to the platform through the user terminal, or a transit server is introduced, thereby The verification code returned by the web server sent by the user terminal can be obtained by communicating with the relay server.
S306:通过预先注入到平台运行的浏览器中的脚本,将验证码输入至网页中。具体地,当平台获取到该验证码时,可以通过预先注入到平台运行的浏览器中的脚本将验证码输入至浏览器的网页中,由于脚本一般都直接热修复和快速更新,因此通过注入脚本的方式将验证码输入至浏览器可以方便地适应网站的登录网页的升级变化。S306: Input the verification code into the webpage by a script pre-injected into a browser running on the platform. Specifically, when the platform obtains the verification code, the verification code can be input into the webpage of the browser by a script pre-injected into the browser running on the platform. Since the script is generally directly hot-repaired and quickly updated, the injection is injected. The way the script is entered into the browser can be easily adapted to the upgrade changes of the landing page of the website.
S308:通过验证码进行验证,若验证通过,则进入根据输入至网页中的登录账号和密码生成登录请求的步骤。具体地,当验证码验证成功,则网站服务器向平台返回验证通过的信息,平台则通过验证,然后根据输入至网页中的登录账号和密码生成登录请求,以实现登录。S308: Perform verification by using the verification code. If the verification is passed, the step of generating a login request according to the login account and password input to the webpage is entered. Specifically, when the verification code verification is successful, the website server returns the information that the verification passes to the platform, and the platform passes the verification, and then generates a login request according to the login account and the password input into the webpage to implement the login.
在其中一个实施例中,通过预先注入到平台运行的所述浏览器中的脚本,将所述验证码输入至所述网页中的步骤,即步骤S306可以包括:通过预先注入到平台运行的浏览器的脚本,查询文件系统中是否存在与验证码请求对应的文件;当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为可用状态,则将与验证码请求对应的文件中的验证码输入至浏览器加载的与网站地址对应的网页中。在其中一个实施例中,当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为不可用状态时,则设置第一超时时间段;当经过第一超时时间段后,与验证码请求对应的文件仍为不可用状态时,则重新向网站服务器发送验证码请求。In one of the embodiments, the step of inputting the verification code into the webpage by a script pre-injected into the browser running in the platform, that is, step S306 may include: browsing through the pre-injection into the platform The script of the device queries whether there is a file corresponding to the verification code request in the file system; when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an available state, it will correspond to the verification code request. The verification code in the file is entered into the web page corresponding to the website address loaded by the browser. In one embodiment, when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an unavailable state, the first timeout period is set; after the first timeout period elapses If the file corresponding to the verification code request is still unavailable, the verification code request is resent to the website server.
参阅图4,图4为图2所示实施例中的步骤S206的流程图,该步骤中通过查询平台文件系统中是否存在与验证码请求对应的文件来判断是否已经获得到相应的验证码,该步骤S206可以包括:Referring to FIG. 4, FIG. 4 is a flowchart of step S206 in the embodiment shown in FIG. 2, in which it is determined whether a corresponding verification code has been obtained by querying whether a file corresponding to the verification code request exists in the platform file system. The step S206 can include:
S402:通过预先注入到平台运行的浏览器中的脚本,查询文件系统是否存在与验证码对应的文件。具体地,文件系统指操作系统用于明确磁盘或分 区上的文件的方法和数据结构,或用于存储文件的磁盘或分区。文件系统包括:与文件管理有关软件、被管理文件以及实施文件管理所需数据结构。与验证码对应的文件可通过登录账号和网站标识的,通过预先注入到平台运行的浏览器的脚本直接查询文件系统中是否存在文件名包含登录账号和网站标识的文件即可。S402: Query whether the file system has a file corresponding to the verification code by using a script pre-injected into a browser running on the platform. Specifically, a file system refers to a method and data structure used by an operating system to clarify files on a disk or partition, or a disk or partition used to store files. The file system includes: software related to file management, managed files, and data structures required for implementing file management. The file corresponding to the verification code can be identified by the login account and the website. The script that is pre-injected into the browser running on the platform can directly query whether there is a file whose file name includes the login account and the website identifier in the file system.
S404:当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为可用状态,则将与验证码请求对应的文件中的验证码输入至浏览器加载的与网站地址对应的网页中。具体地,当文件系统总存在与验证码请求对应的文件,且该文件为可用状态。文件是否可用可以通过一标识位来进行标识,例如当文件已传输完成,即文件可用时,则标识位为1,当文件未传输完成,即文件不可用时,则标识位为0。S404: When a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an available state, the verification code in the file corresponding to the verification code request is input into the browser and the website address is loaded. In the webpage. Specifically, when the file system always has a file corresponding to the verification code request, and the file is in an available state. Whether the file is available can be identified by an identifier. For example, when the file has been transferred, that is, when the file is available, the flag is 1. When the file is not transferred, that is, when the file is unavailable, the flag is 0.
S406:当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为不可用状态时,则设置第一超时时间段。具体地,当文件系统总存在与验证码请求对应的文件,但该文件为不可用状态,其可以是由于传输过程中,文件丢失所导致文件未接收完,或者是由于传输时间的问题所导致的文件未接收完,因此当查询到文件为不可用状态时,则设置第一超时时间,该第一超时时间为可以容忍的验证码接收时间的最大值,从而保证在验证码未失效前,可以通过预先注入到平台运行的浏览器中的脚本将该验证码输入至对应的网页中。S406: When a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an unavailable state, setting a first timeout period. Specifically, when the file system always has a file corresponding to the verification code request, but the file is in an unavailable state, it may be due to a file loss due to a file loss during the transmission process, or due to a transmission time problem. The file is not received, so when the query file is unavailable, the first timeout period is set, and the first timeout period is the maximum value of the acceptable verification code receiving time, thereby ensuring that before the verification code is invalidated, The verification code can be entered into the corresponding web page by a script pre-injected into a browser running on the platform.
S408:当经过第一超时时间段后,与验证码请求对应的文件仍为不可用状态时,则重新向网站服务器发送验证码请求。具体地,当经过第一超时时间段后,文件系统中与验证码请求对应的文件仍为不可用状态,即该验证码接收失败,则为了成功登录网站服务器,平台会重新向网站服务器发送验证码请求,以重新登录网站服务器。S408: After the first timeout period expires, if the file corresponding to the verification code request is still unavailable, the verification code request is resent to the website server. Specifically, after the first timeout period expires, the file corresponding to the verification code request in the file system is still unavailable, that is, the verification code fails to be received, and the platform re-sends the verification to the website server in order to successfully log in to the website server. Code request to re-login to the web server.
参阅图5,图5为图2所示实施例中的步骤S210的流程图,该步骤S210,即通过登录请求携带的登录账号和密码实现登录的步骤,可以包括:Referring to FIG. 5, FIG. 5 is a flowchart of step S210 in the embodiment shown in FIG. 2. The step S210, that is, the step of implementing the login by using the login account and the password carried in the login request, may include:
S502:检测是否接收到网站服务器返回的登录响应。具体地,平台在登录网站服务器的过程中,首先需要将登录请求发送到网站服务器,网站服务器来判断登录请求中所携带的登录账号和密码是否正确,只有登录账号和密码正确时,网站服务器才会向平台返回登录响应,从而平台根据该登录响应来判断是否登录成功。S502: Detect whether a login response returned by the website server is received. Specifically, in the process of logging in to the website server, the platform first needs to send the login request to the website server, and the website server determines whether the login account and the password carried in the login request are correct. Only when the login account and the password are correct, the website server is The login response is returned to the platform, so that the platform determines whether the login is successful according to the login response.
S504:当未接收到网站服务器返回的登录响应时,则设置第二超时时间段。具体地,网站服务器返回的登录响应可能在传输过程中丢失,从而平台不能及时的接收到登录响应,因此可以设置第二超时时间段,该第二超时时间段为平台可以容忍的网站登录时间,当经过该登录时间后,平台还未登录网站,则表示网站登录失败。S504: Set a second timeout period when the login response returned by the website server is not received. Specifically, the login response returned by the website server may be lost during the transmission process, so that the platform cannot receive the login response in time, so the second timeout period may be set, and the second timeout period is the website login time that the platform can tolerate. After the login time, the platform has not logged in to the website, indicating that the website login failed.
S506:当经过第二超时时间段后,仍未接收到网站服务器返回的登录响应时,则重新将登录请求发送至网站服务器直至通过登录请求携带的登录账号和密码实现登录。具体地,当经过第二超时时间段后,平台仍未接收到网站服务器返回的登录响应,则表示网站登录失败,从而能够获取到网络数据,则平台重新向网站服务器发送登录请求,直至通过登录请求携带的登录账号和密码实现登录,通过重试机制,可以减少因为传输过程中的数据丢失所导致的登录失败的情况的发生。当多次重试后,仍未能接收到网站服务器返回的登录响应,则可以报错。S506: After the second timeout period has elapsed, if the login response returned by the website server is not received, the login request is resent to the website server until the login account and password carried by the login request are used to log in. Specifically, after the second timeout period expires, the platform still does not receive the login response returned by the website server, indicating that the website login fails, so that the network data can be obtained, and the platform re-sends the login request to the website server until the login is completed. The login account and password that are carried are requested to log in. Through the retry mechanism, the login failure caused by data loss during transmission can be reduced. After multiple retries, if you still fail to receive the login response returned by the web server, you can report an error.
参阅图6,图6为一实施例中的平台登录网站装置的示意图,该平台登录网站装置100包括:Referring to FIG. 6, FIG. 6 is a schematic diagram of a platform login website device in an embodiment. The platform login website device 100 includes:
获取模块110,用于获取用户登录网站时产生的登录参数,登录参数包括用户所登录的网站的网站标识、登录账号和密码;根据网站标识获取对应的网站地址。The obtaining module 110 is configured to obtain a login parameter generated when the user logs in to the website, where the login parameter includes a website identifier, a login account, and a password of the website that the user logs in; and the corresponding website address is obtained according to the website identifier.
输入模块120,用于通过预先注入到平台运行的浏览器中的脚本,将登录账号和密码输入至浏览器加载的与网站地址对应的网页中。The input module 120 is configured to input the login account and the password into the webpage corresponding to the website address loaded by the browser by using a script pre-injected into the browser running on the platform.
生成模块130,用于根据输入至网页中的登录账号和密码生成登录请求。The generating module 130 is configured to generate a login request according to the login account and the password input into the webpage.
发送模块140,用于将登录请求发送至网站服务器,通过登录请求携带的登录账号和密码实现登录。The sending module 140 is configured to send the login request to the website server, and log in by using the login account and password carried in the login request.
在其中一个实施例中,参阅图7,图7为另一实施例中的平台登录网站装置的示意图,其中发送模块140还可以用于向网站服务器发送验证码请求,通过网站服务器根据验证码请求生成验证码。In one embodiment, referring to FIG. 7, FIG. 7 is a schematic diagram of a platform login website device in another embodiment, where the sending module 140 is further configured to send a verification code request to the website server, and request the verification code according to the website server. Generate a verification code.
获取模块110还可以用于通过交互服务器获取用户终端反馈的验证码。The obtaining module 110 is further configured to obtain a verification code fed back by the user terminal through the interaction server.
输入模块120还可以用于获取用户终端发送的网站服务器返回的验证码。The input module 120 can also be configured to obtain a verification code returned by the website server sent by the user terminal.
装置还可以包括:验证模块150,用于通过验证码进行验证,若验证通过,则根据输入至网页中的登录账号和密码生成登录请求。The device may further include: a verification module 150, configured to perform verification by using the verification code, and if the verification is passed, generate a login request according to the login account and the password input into the webpage.
在其中一个实施例中,输入模块120可以包括:In one embodiment, the input module 120 can include:
查询单元121,用于通过预先注入到平台运行的浏览器的脚本,查询文件系统中是否存在与验证码请求对应的文件。The query unit 121 is configured to query, by using a script injected into the browser running on the platform, whether there is a file corresponding to the verification code request in the file system.
输入单元122,用于当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为可用状态,则将与验证码请求对应的文件中的验证码输入至浏览器加载的与网站地址对应的网页中。The input unit 122 is configured to: when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an available state, input the verification code in the file corresponding to the verification code request into the browser. In the web page corresponding to the website address.
在其中一个实施例中,装置还可以包括:In one embodiment, the apparatus may further include:
设置模块,用于当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为不可用状态时,则设置第一超时时间段。The setting module is configured to set a first timeout period when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an unavailable state.
重新发送模块,用于当经过第一超时时间段后,与验证码请求对应的文件仍为不可用状态时,则重新向网站服务器发送验证码请求。The resending module is configured to resend the verification code request to the website server when the file corresponding to the verification code request is still unavailable after the first timeout period elapses.
在其中一个实施例中,发送模块140可以包括:In one embodiment, the sending module 140 can include:
检查单元141,用于检测是否接收到网站服务器返回的登录响应。The checking unit 141 is configured to detect whether a login response returned by the website server is received.
设置单元142,用于当未接收到网站服务器返回的登录响应时,则设置第二超时时间段。The setting unit 142 is configured to set a second timeout period when the login response returned by the website server is not received.
发送单元143,用于当经过第二超时时间段后,仍未接收到网站服务器 返回的登录响应时,则重新将登录请求发送至网站服务器直至通过登录请求携带的登录账号和密码实现登录。The sending unit 143 is configured to: after receiving the login response returned by the website server after the second timeout period has elapsed, re-send the login request to the website server until the login account and the password carried by the login request are used to implement the login.
关于平台登录网站装置的具体限定可以参见上文中对于平台登录网站方法的限定,在此不再赘述。For the specific definition of the platform login website device, refer to the above definition of the platform login website method, and details are not described herein again.
请参阅图8,图8为一实施例中的计算机设备的结构示意图,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,其中该存储器可以包括非易失性存储介质以及内存储器,该计算机程序可以存储在该非易失性存储介质中,处理器执行程序时实现以下步骤:获取用户登录网站时产生的登录参数,登录参数包括用户所登录的网站的网站标识、登录账号和密码;根据网站标识获取对应的网站地址;通过预先注入到平台运行的浏览器中的脚本,将登录账号和密码输入至浏览器加载的与网站地址对应的网页中;根据输入至网页中的登录账号和密码生成登录请求;将登录请求发送至网站服务器,通过登录请求携带的登录账号和密码实现登录。Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of a computer device in an embodiment, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the memory may include non-volatile storage. The medium and the internal memory may be stored in the non-volatile storage medium. When the processor executes the program, the following steps are performed: obtaining a login parameter generated when the user logs in to the website, and the login parameter includes a website identifier of the website where the user is logged in. , login account and password; obtain the corresponding website address according to the website identifier; input the login account and password into the webpage corresponding to the website address loaded by the browser through a script pre-injected into the browser running on the platform; The login account and password in the webpage generate a login request; the login request is sent to the website server, and the login is carried out by using the login account and password carried in the login request.
在其中一个实施例中,处理器执行程序时还可以实现以下步骤:向网站服务器发送验证码请求,通过网站服务器根据验证码请求生成验证码;获取用户终端发送的网站服务器返回的验证码;通过预先注入到平台运行的浏览器中的脚本,将验证码输入至网页中;通过验证码进行验证,若验证通过,则进入根据输入至网页中的登录账号和密码生成登录请求的步骤。In one embodiment, the processor may further implement the following steps: sending a verification code request to the website server, generating a verification code according to the verification code request by the website server; acquiring a verification code returned by the website server sent by the user terminal; The script is pre-injected into the browser running on the platform, and the verification code is input into the webpage; the verification code is used for verification, and if the verification is passed, the step of generating the login request according to the login account and password input into the webpage is entered.
在其中一个实施例中,处理器执行程序时还可以实现以下步骤:通过预先注入到平台运行的浏览器的脚本,查询文件系统中是否存在与验证码请求对应的文件;当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为可用状态,则将与验证码请求对应的文件中的验证码输入至浏览器加载的与网站地址对应的网页中。In one embodiment, when the processor executes the program, the following steps may be implemented: querying, by a script injected into the browser running on the platform, whether a file corresponding to the verification code request exists in the file system; when the file system exists and If the verification code requests the corresponding file, and the file corresponding to the verification code request is in an available state, the verification code in the file corresponding to the verification code request is input into the webpage corresponding to the website address loaded by the browser.
在其中一个实施例中,处理器执行程序时还可以实现以下步骤:当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为不可用状态时,则设置第一超时时间段;当经过第一超时时间段后,与验证码请求 对应的文件仍为不可用状态时,则重新向网站服务器发送验证码请求。In one embodiment, when the processor executes the program, the following steps may be further implemented: when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is unavailable, the first timeout is set. The time period; when the file corresponding to the verification code request is still unavailable after the first timeout period expires, the verification code request is resent to the website server.
在其中一个实施例中,处理器执行程序时还可以实现以下步骤:检测是否接收到网站服务器返回的登录响应;当未接收到网站服务器返回的登录响应时,则设置第二超时时间段;当经过第二超时时间段后,仍未接收到网站服务器返回的登录响应时,则重新将登录请求发送至网站服务器直至通过登录请求携带的登录账号和密码实现登录。In one embodiment, the processor may further implement the following steps: detecting whether a login response returned by the website server is received; setting a second timeout period when the login response returned by the website server is not received; After the second timeout period has elapsed and the login response returned by the web server has not been received, the login request is resent to the web server until the login account and password carried by the login request are used to log in.
上述对于计算机设备的限定可以参见上文中对于坐席录屏方法的具体限定,在此不再赘述。For the definition of the computer device, reference may be made to the specific limitation of the method for recording the screen in the above, and details are not described herein again.
请继续参阅图8,还提供一种计算机可读存储介质,其上存储有计算机程序,如图8中所示的非易失性存储介质,其中,该程序被处理器执行时实现以下步骤:获取用户登录网站时产生的登录参数,登录参数包括用户所登录的网站的网站标识、登录账号和密码;根据网站标识获取对应的网站地址;通过预先注入到平台运行的浏览器中的脚本,将登录账号和密码输入至浏览器加载的与网站地址对应的网页中;根据输入至网页中的登录账号和密码生成登录请求;将登录请求发送至网站服务器,通过登录请求携带的登录账号和密码实现登录。Continuing to refer to FIG. 8, there is also provided a computer readable storage medium having stored thereon a computer program, such as the non-volatile storage medium shown in FIG. 8, wherein the program is executed by the processor to implement the following steps: Obtain the login parameters generated when the user logs in to the website. The login parameters include the website identifier, login account, and password of the website where the user is logged in. The website address is obtained according to the website identifier. The script is pre-injected into the browser running on the platform. The login account and password are input into the webpage corresponding to the website address loaded by the browser; the login request is generated according to the login account and password input into the webpage; the login request is sent to the web server, and the login account and password carried by the login request are implemented. log in.
在其中一个实施例中,该程序被处理器执行时还可以实现以下步骤:向网站服务器发送验证码请求,通过网站服务器根据验证码请求生成验证码;获取用户终端发送的网站服务器返回的验证码;通过预先注入到平台运行的浏览器中的脚本,将验证码输入至网页中;通过验证码进行验证,若验证通过,则进入根据输入至网页中的登录账号和密码生成登录请求的步骤。In one embodiment, when the program is executed by the processor, the following steps may be further implemented: sending a verification code request to the website server, generating a verification code according to the verification code request by the website server; and obtaining a verification code returned by the website server sent by the user terminal. The verification code is input into the webpage by a script pre-injected into the browser running on the platform; the verification code is used for verification; if the verification is passed, the step of generating a login request according to the login account and password input into the webpage is entered.
在其中一个实施例中,该程序被处理器执行时还可以实现以下步骤:通过预先注入到平台运行的浏览器的脚本,查询文件系统中是否存在与验证码请求对应的文件;当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为可用状态,则将与验证码请求对应的文件中的验证码输入至浏览器加载的与网站地址对应的网页中。In one embodiment, when the program is executed by the processor, the following steps may be further implemented: querying, by a script injected into the browser running on the platform, whether a file corresponding to the verification code request exists in the file system; If there is a file corresponding to the verification code request, and the file corresponding to the verification code request is in an available state, the verification code in the file corresponding to the verification code request is input into a webpage corresponding to the website address loaded by the browser.
在其中一个实施例中,该程序被处理器执行时还可以实现以下步骤:当文件系统中存在与验证码请求对应的文件,且与验证码请求对应的文件为不可用状态时,则设置第一超时时间段;当经过第一超时时间段后,与验证码请求对应的文件仍为不可用状态时,则重新向网站服务器发送验证码请求。In one embodiment, when the program is executed by the processor, the following steps may be further implemented: when a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is unavailable, then the first setting is performed. A timeout period; when the file corresponding to the verification code request is still unavailable after the first timeout period expires, the verification code request is resent to the website server.
在其中一个实施例中,该程序被处理器执行时还可以实现以下步骤:检测是否接收到网站服务器返回的登录响应;当未接收到网站服务器返回的登录响应时,则设置第二超时时间段;当经过第二超时时间段后,仍未接收到网站服务器返回的登录响应时,则重新将登录请求发送至网站服务器直至通过登录请求携带的登录账号和密码实现登录。In one embodiment, when the program is executed by the processor, the following steps may be further implemented: detecting whether a login response returned by the website server is received; and when not receiving the login response returned by the website server, setting a second timeout period When the login response returned by the web server is not received after the second timeout period has elapsed, the login request is resent to the web server until the login account and password carried by the login request are used to log in.
上述对于计算机可读存储介质的限定可以参见上文中对于平台登录网站方法的具体限定,在此不再赘述。For the definition of the computer readable storage medium, reference may be made to the specific definition of the platform login website method in the above, and details are not described herein again.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. Wherein, the program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (18)

  1. 一种平台登录网站方法,其特征在于,所述方法包括:A platform login website method, characterized in that the method comprises:
    获取用户登录网站时产生的登录参数,所述登录参数包括用户所登录的网站的网站标识、登录账号和密码;Obtaining login parameters generated when the user logs in to the website, where the login parameters include a website identifier, a login account, and a password of the website that the user logs in to;
    根据所述网站标识获取对应的网站地址;Obtaining a corresponding website address according to the website identifier;
    通过预先注入到平台运行的浏览器中的脚本,将所述登录账号和密码输入至所述浏览器加载的与所述网站地址对应的网页中;The login account and the password are input into a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running in the platform;
    根据输入至所述网页中的登录账号和密码生成登录请求;Generating a login request according to the login account and password input into the webpage;
    将所述登录请求发送至网站服务器,通过所述登录请求携带的登录账号和密码实现登录。The login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
  2. 根据权利要求1所述的方法,其特征在于,所述根据输入至所述网页中的登录账号和密码生成登录请求的步骤之前,还包括:The method according to claim 1, wherein the step of generating a login request according to the login account and the password input to the webpage further comprises:
    向网站服务器发送验证码请求,通过所述网站服务器根据所述验证码请求生成验证码;Sending a verification code request to the website server, and generating, by the website server, a verification code according to the verification code request;
    获取用户终端发送的所述网站服务器返回的所述验证码;Obtaining the verification code returned by the website server sent by the user terminal;
    通过预先注入到平台运行的所述浏览器中的脚本,将所述验证码输入至所述网页中;The verification code is input into the webpage by a script pre-injected into the browser running by the platform;
    通过所述验证码进行验证,若验证通过,则进入所述根据输入至所述网页中的登录账号和密码生成登录请求的步骤。The verification is performed by the verification code, and if the verification is passed, the step of generating a login request according to the login account and password input to the webpage is entered.
  3. 根据权利要求2所述的方法,其特征在于,所述通过预先注入到平台运行的所述浏览器中的脚本,将所述验证码输入至所述网页中的步骤,包括:The method according to claim 2, wherein the step of inputting the verification code into the webpage by a script pre-injected into the browser running in the platform comprises:
    通过预先注入到平台运行的浏览器中的脚本,查询文件系统中是否存在与所述验证码请求对应的文件;Querying, by a script pre-injected into a browser running on the platform, whether a file corresponding to the verification code request exists in the file system;
    当所述文件系统中存在与所述验证码请求对应的文件,且与所述验证码 请求对应的文件为可用状态,则将与所述验证码请求对应的文件中的验证码输入至所述浏览器加载的与所述网站地址对应的网页中。When a file corresponding to the verification code request exists in the file system, and a file corresponding to the verification code request is in an available state, a verification code in a file corresponding to the verification code request is input to the The webpage loaded by the browser corresponding to the website address.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    当所述文件系统中存在与所述验证码请求对应的文件,且与所述验证码请求对应的文件为不可用状态时,则设置第一超时时间段;When a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an unavailable state, setting a first timeout period;
    当经过所述第一超时时间段后,与所述验证码请求对应的文件仍为不可用状态时,则重新向所述网站服务器发送验证码请求。When the file corresponding to the verification code request is still unavailable after the first timeout period expires, the verification code request is resent to the website server.
  5. 根据权利要求1所述的方法,其特征在于,通过所述登录请求携带的登录账号和密码实现登录,包括:The method according to claim 1, wherein the login is implemented by using the login account and the password carried by the login request, including:
    检测是否接收到所述网站服务器返回的登录响应;Detecting whether a login response returned by the website server is received;
    当未接收到所述网站服务器返回的登录响应时,则设置第二超时时间段;Setting a second timeout period when the login response returned by the website server is not received;
    当经过所述第二超时时间段后,仍未接收到所述网站服务器返回的登录响应时,则重新将所述登录请求发送至所述网站服务器直至通过所述登录请求携带的登录账号和密码实现登录。After the second timeout period has elapsed, the login response returned by the website server is not received, and the login request is resent to the website server until the login account and password carried by the login request are received. Implement login.
  6. 一种平台登录网站装置,其特征在于,所述装置包括:A platform login website device, wherein the device comprises:
    获取模块,用于获取用户登录网站时产生的登录参数,所述登录参数包括用户所登录的网站的网站标识、登录账号和密码;根据所述网站标识获取对应的网站地址;The obtaining module is configured to obtain a login parameter generated when the user logs in to the website, where the login parameter includes a website identifier, a login account, and a password of the website that the user logs in; and obtains a corresponding website address according to the website identifier;
    输入模块,用于通过预先注入到平台运行的浏览器中的脚本,将所述登录账号和密码输入至所述浏览器加载的与所述网站地址对应的网页中;An input module, configured to input, by using a script pre-injected into a browser running in the platform, the login account and the password into a webpage loaded by the browser and corresponding to the website address;
    生成模块,用于根据输入至所述网页中的登录账号和密码生成登录请求;a generating module, configured to generate a login request according to the login account and password input into the webpage;
    发送模块,用于将所述登录请求发送至网站服务器,通过所述登录请求携带的登录账号和密码实现登录。The sending module is configured to send the login request to the website server, and log in by using the login account and the password carried in the login request.
  7. 根据权利要求6所述的装置,其特征在于,所述发送模块还用于向 网站服务器发送验证码请求,通过所述网站服务器根据所述验证码请求生成验证码;The device according to claim 6, wherein the sending module is further configured to send a verification code request to the website server, and generate, by the website server, a verification code according to the verification code request;
    所述获取模块还用于通过交互服务器获取用户终端反馈的验证码;The obtaining module is further configured to obtain, by using an interaction server, a verification code fed back by the user terminal;
    所述输入模块还用于获取用户终端发送的所述网站服务器返回的所述验证码;The input module is further configured to acquire the verification code returned by the website server sent by the user terminal;
    所述装置还包括:The device also includes:
    验证模块,用于通过所述验证码进行验证,若验证通过,则根据输入至所述网页中的登录账号和密码生成登录请求。The verification module is configured to perform verification by using the verification code, and if the verification is passed, generate a login request according to the login account and the password input into the webpage.
  8. 根据权利要求7所述的装置,其特征在于,所述输入模块包括:The device according to claim 7, wherein the input module comprises:
    查询单元,用于通过预先注入到平台运行的浏览器中的脚本,查询文件系统中是否存在与所述验证码请求对应的文件;a query unit, configured to query, by using a script pre-injected into a browser running in the platform, whether a file corresponding to the verification code request exists in the file system;
    输入单元,用于当所述文件系统中存在与所述验证码请求对应的文件,且与所述验证码请求对应的文件为可用状态,则将与所述验证码请求对应的文件中的验证码输入至所述浏览器加载的与所述网站地址对应的网页中。An input unit, configured to: when a file corresponding to the verification code request exists in the file system, and a file corresponding to the verification code request is in an available state, verifying in a file corresponding to the verification code request The code is input to a webpage loaded by the browser corresponding to the website address.
  9. 一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现以下步骤:A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor performs the following steps when executing the program:
    获取用户登录网站时产生的登录参数,所述登录参数包括用户所登录的网站的网站标识、登录账号和密码;Obtaining login parameters generated when the user logs in to the website, where the login parameters include a website identifier, a login account, and a password of the website that the user logs in to;
    根据所述网站标识获取对应的网站地址;Obtaining a corresponding website address according to the website identifier;
    通过预先注入到平台运行的浏览器中的脚本,将所述登录账号和密码输入至所述浏览器加载的与所述网站地址对应的网页中;The login account and the password are input into a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running in the platform;
    根据输入至所述网页中的登录账号和密码生成登录请求;Generating a login request according to the login account and password input into the webpage;
    将所述登录请求发送至网站服务器,通过所述登录请求携带的登录账号和密码实现登录。The login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
  10. 根据权利要求9所述的计算机设备,其特征在于,所述根据输入至 所述网页中的登录账号和密码生成登录请求的步骤之前,还包括:The computer device according to claim 9, wherein the step of generating a login request according to the login account and the password input to the webpage further comprises:
    向网站服务器发送验证码请求,通过所述网站服务器根据所述验证码请求生成验证码;Sending a verification code request to the website server, and generating, by the website server, a verification code according to the verification code request;
    获取用户终端发送的所述网站服务器返回的所述验证码;Obtaining the verification code returned by the website server sent by the user terminal;
    通过预先注入到平台运行的所述浏览器中的脚本,将所述验证码输入至所述网页中;The verification code is input into the webpage by a script pre-injected into the browser running by the platform;
    通过所述验证码进行验证,若验证通过,则进入所述根据输入至所述网页中的登录账号和密码生成登录请求的步骤。The verification is performed by the verification code, and if the verification is passed, the step of generating a login request according to the login account and password input to the webpage is entered.
  11. 根据权利要求10所述的计算机设备,其特征在于,所述通过预先注入到平台运行的所述浏览器中的脚本,将所述验证码输入至所述网页中的步骤,包括:The computer device according to claim 10, wherein the step of inputting the verification code into the webpage by a script pre-injected into the browser running in the platform comprises:
    通过预先注入到平台运行的浏览器中的脚本,查询文件系统中是否存在与所述验证码请求对应的文件;Querying, by a script pre-injected into a browser running on the platform, whether a file corresponding to the verification code request exists in the file system;
    当所述文件系统中存在与所述验证码请求对应的文件,且与所述验证码请求对应的文件为可用状态,则将与所述验证码请求对应的文件中的验证码输入至所述浏览器加载的与所述网站地址对应的网页中。When a file corresponding to the verification code request exists in the file system, and a file corresponding to the verification code request is in an available state, a verification code in a file corresponding to the verification code request is input to the The webpage loaded by the browser corresponding to the website address.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述程序时还实现以下步骤:The computer apparatus according to claim 11, wherein said processor further implements the following steps when said program is executed:
    当所述文件系统中存在与所述验证码请求对应的文件,且与所述验证码请求对应的文件为不可用状态时,则设置第一超时时间段;When a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an unavailable state, setting a first timeout period;
    当经过所述第一超时时间段后,与所述验证码请求对应的文件仍为不可用状态时,则重新向所述网站服务器发送验证码请求。When the file corresponding to the verification code request is still unavailable after the first timeout period expires, the verification code request is resent to the website server.
  13. 根据权利要求9所述的计算机设备,其特征在于,通过所述登录请求携带的登录账号和密码实现登录,包括:The computer device according to claim 9, wherein the login is implemented by using the login account and the password carried by the login request, including:
    检测是否接收到所述网站服务器返回的登录响应;Detecting whether a login response returned by the website server is received;
    当未接收到所述网站服务器返回的登录响应时,则设置第二超时时间 段;Setting a second timeout period when the login response returned by the website server is not received;
    当经过所述第二超时时间段后,仍未接收到所述网站服务器返回的登录响应时,则重新将所述登录请求发送至所述网站服务器直至通过所述登录请求携带的登录账号和密码实现登录。After the second timeout period has elapsed, the login response returned by the website server is not received, and the login request is resent to the website server until the login account and password carried by the login request are received. Implement login.
  14. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现以下步骤:A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by the processor, implements the following steps:
    获取用户登录网站时产生的登录参数,所述登录参数包括用户所登录的网站的网站标识、登录账号和密码;Obtaining login parameters generated when the user logs in to the website, where the login parameters include a website identifier, a login account, and a password of the website that the user logs in to;
    根据所述网站标识获取对应的网站地址;Obtaining a corresponding website address according to the website identifier;
    通过预先注入到平台运行的浏览器中的脚本,将所述登录账号和密码输入至所述浏览器加载的与所述网站地址对应的网页中;The login account and the password are input into a webpage loaded by the browser and corresponding to the website address by a script pre-injected into a browser running in the platform;
    根据输入至所述网页中的登录账号和密码生成登录请求;Generating a login request according to the login account and password input into the webpage;
    将所述登录请求发送至网站服务器,通过所述登录请求携带的登录账号和密码实现登录。The login request is sent to the website server, and the login is implemented by using the login account and the password carried in the login request.
  15. 根据权利要求14所述的存储介质,其特征在于,所述根据输入至所述网页中的登录账号和密码生成登录请求的步骤之前,还包括:The storage medium according to claim 14, wherein the step of generating a login request according to the login account and the password input to the webpage further comprises:
    向网站服务器发送验证码请求,通过所述网站服务器根据所述验证码请求生成验证码;Sending a verification code request to the website server, and generating, by the website server, a verification code according to the verification code request;
    获取用户终端发送的所述网站服务器返回的所述验证码;Obtaining the verification code returned by the website server sent by the user terminal;
    通过预先注入到平台运行的所述浏览器中的脚本,将所述验证码输入至所述网页中;The verification code is input into the webpage by a script pre-injected into the browser running by the platform;
    通过所述验证码进行验证,若验证通过,则进入所述根据输入至所述网页中的登录账号和密码生成登录请求的步骤。The verification is performed by the verification code, and if the verification is passed, the step of generating a login request according to the login account and password input to the webpage is entered.
  16. 根据权利要求15所述的存储介质,其特征在于,所述通过预先注入到平台运行的所述浏览器中的脚本,将所述验证码输入至所述网页中的步骤,包括:The storage medium according to claim 15, wherein the step of inputting the verification code into the webpage by a script pre-injected into the browser running in the platform comprises:
    通过预先注入到平台运行的浏览器中的脚本,查询文件系统中是否存在与所述验证码请求对应的文件;Querying, by a script pre-injected into a browser running on the platform, whether a file corresponding to the verification code request exists in the file system;
    当所述文件系统中存在与所述验证码请求对应的文件,且与所述验证码请求对应的文件为可用状态,则将与所述验证码请求对应的文件中的验证码输入至所述浏览器加载的与所述网站地址对应的网页中。When a file corresponding to the verification code request exists in the file system, and a file corresponding to the verification code request is in an available state, a verification code in a file corresponding to the verification code request is input to the The webpage loaded by the browser corresponding to the website address.
  17. 根据权利要求16所述的存储介质,其特征在于,所述程序被处理器执行时还实现以下步骤:The storage medium according to claim 16, wherein the program is further executed by the processor to:
    当所述文件系统中存在与所述验证码请求对应的文件,且与所述验证码请求对应的文件为不可用状态时,则设置第一超时时间段;When a file corresponding to the verification code request exists in the file system, and the file corresponding to the verification code request is in an unavailable state, setting a first timeout period;
    当经过所述第一超时时间段后,与所述验证码请求对应的文件仍为不可用状态时,则重新向所述网站服务器发送验证码请求。When the file corresponding to the verification code request is still unavailable after the first timeout period expires, the verification code request is resent to the website server.
  18. 根据权利要求14所述的存储介质,其特征在于,通过所述登录请求携带的登录账号和密码实现登录,包括:The storage medium according to claim 14, wherein the login is implemented by using the login account and the password carried by the login request, including:
    检测是否接收到所述网站服务器返回的登录响应;Detecting whether a login response returned by the website server is received;
    当未接收到所述网站服务器返回的登录响应时,则设置第二超时时间段;Setting a second timeout period when the login response returned by the website server is not received;
    当经过所述第二超时时间段后,仍未接收到所述网站服务器返回的登录响应时,则重新将所述登录请求发送至所述网站服务器直至通过所述登录请求携带的登录账号和密码实现登录。After the second timeout period has elapsed, the login response returned by the website server is not received, and the login request is resent to the website server until the login account and password carried by the login request are received. Implement login.
PCT/CN2018/078320 2017-07-25 2018-03-07 Method and apparatus for platform to login to website, computer device, and readable storage medium WO2019019646A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710614410.9 2017-07-25
CN201710614410.9A CN107733847B (en) 2017-07-25 2017-07-25 Method and device for platform login website, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
WO2019019646A1 true WO2019019646A1 (en) 2019-01-31

Family

ID=61201124

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078320 WO2019019646A1 (en) 2017-07-25 2018-03-07 Method and apparatus for platform to login to website, computer device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN107733847B (en)
WO (1) WO2019019646A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733847B (en) * 2017-07-25 2020-06-09 深圳壹账通智能科技有限公司 Method and device for platform login website, computer equipment and readable storage medium
CN109246069B (en) * 2018-06-15 2020-10-16 华为技术有限公司 Webpage login method and device and readable storage medium
CN108829838B (en) * 2018-06-19 2021-11-26 彭建超 Batch processing method of account information and server
CN109684850A (en) * 2018-11-09 2019-04-26 平安科技(深圳)有限公司 Test method, apparatus, computer equipment and the storage medium of password
CN109635222A (en) * 2018-12-07 2019-04-16 深圳前海微众银行股份有限公司 Webpage privilege control method, apparatus, equipment and computer readable storage medium
CN110493202B (en) * 2019-07-29 2021-11-02 深圳壹账通智能科技有限公司 Login token generation and verification method and device and server
CN110768986B (en) * 2019-10-28 2021-12-28 北京博睿宏远数据科技股份有限公司 System and method for verifying login of website based on transaction playback
CN111107060B (en) * 2019-11-29 2022-11-29 视联动力信息技术股份有限公司 Login request processing method, server, electronic equipment and storage medium
CN111143717A (en) * 2019-12-26 2020-05-12 威创集团股份有限公司 Webpage login method, equipment and storage medium
CN112910848B (en) * 2021-01-15 2022-11-22 深信服科技股份有限公司 Webpage interface access method and device, electronic equipment and storage medium
CN113660229B (en) * 2021-07-30 2023-04-07 未鲲(上海)科技服务有限公司 Multi-system single sign-on method, device, equipment and medium based on RPA
CN114448722B (en) * 2022-03-15 2023-01-10 太平金融科技服务(上海)有限公司深圳分公司 Cross-browser login method and device, computer equipment and storage medium
CN115001819A (en) * 2022-06-02 2022-09-02 上海华客信息科技有限公司 Real name login method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040053761A (en) * 2003-10-01 2004-06-24 주식회사베스트디씨 Login Portal System and its Architecture for One-click Login
CN101588348A (en) * 2008-05-22 2009-11-25 中国电信股份有限公司 System logging method and system logging device based on Web
CN101872365A (en) * 2010-07-02 2010-10-27 苏州阔地网络科技有限公司 Method for realizing one-key login to other website on webpage
CN103618649A (en) * 2013-12-03 2014-03-05 北京人民在线网络有限公司 Website data acquisition method and device
CN105827658A (en) * 2016-05-30 2016-08-03 无锡天脉聚源传媒科技有限公司 Method and device for multi-application synchronization login
CN107733847A (en) * 2017-07-25 2018-02-23 上海壹账通金融科技有限公司 Platform Website login method, apparatus, computer equipment and readable storage medium storing program for executing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905497B (en) * 2012-12-27 2018-04-27 腾讯科技(深圳)有限公司 Realize the method, apparatus and application platform of third-party application business website log
EP3097658B1 (en) * 2014-01-24 2020-07-01 McAfee, LLC Automatic placeholder finder-filler
CN104899108A (en) * 2014-12-26 2015-09-09 北京奇虎科技有限公司 Browser restoring method and browser restoring system
CN105956136B (en) * 2016-05-11 2020-08-11 腾讯科技(深圳)有限公司 Method and device for acquiring login information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040053761A (en) * 2003-10-01 2004-06-24 주식회사베스트디씨 Login Portal System and its Architecture for One-click Login
CN101588348A (en) * 2008-05-22 2009-11-25 中国电信股份有限公司 System logging method and system logging device based on Web
CN101872365A (en) * 2010-07-02 2010-10-27 苏州阔地网络科技有限公司 Method for realizing one-key login to other website on webpage
CN103618649A (en) * 2013-12-03 2014-03-05 北京人民在线网络有限公司 Website data acquisition method and device
CN105827658A (en) * 2016-05-30 2016-08-03 无锡天脉聚源传媒科技有限公司 Method and device for multi-application synchronization login
CN107733847A (en) * 2017-07-25 2018-02-23 上海壹账通金融科技有限公司 Platform Website login method, apparatus, computer equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN107733847A (en) 2018-02-23
CN107733847B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
WO2019019646A1 (en) Method and apparatus for platform to login to website, computer device, and readable storage medium
US11340961B2 (en) Dynamically integrating a client application with third-party services
US8621589B2 (en) Cross domain single sign on
US20170337361A1 (en) Method, device and system for sharing cross-platform account resources
WO2018113596A1 (en) Method of processing application reviewing operation permission, device, and data storage medium
JP6438031B2 (en) Client download and installation method and apparatus
CN109768965B (en) Login method, equipment and storage medium of server
US11799841B2 (en) Providing intercommunication within a system that uses disparate authentication technologies
WO2019036012A1 (en) Application user single sign-on
KR101832535B1 (en) Trustworthy device claims as a service
US10963370B2 (en) Default mock implementations at a server
US9710649B2 (en) Techniques for presenting and collecting end user license agreement acceptance
US9137094B1 (en) Method for setting DNS records
US20160285781A1 (en) Data processing method, apparatus, client, server and system
US9886222B2 (en) Image forming apparatus that displays button for accessing server, method of controlling the same, and storage medium
US20170041504A1 (en) Service providing system, information processing apparatus, program, and method for generating service usage information
US9330198B1 (en) Mapping stored client data to requested data using metadata
US9514291B2 (en) Information processing system, information processing device, and authentication information management method
US11444785B2 (en) Establishment of trusted communication with container-based services
US20140223532A1 (en) Information processing system, information processing device, and authentication method
US20210359897A1 (en) System for centralized monitoring and control of iot devices
CN111064708B (en) Authorization authentication method and device and electronic equipment
US11722481B2 (en) Multiple identity provider authentication system
US11588807B2 (en) Information processing apparatus and non-transitory computer readable medium
US10423776B1 (en) Systems and methods for password-based authentication

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18837814

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18837814

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 28/05/2020)