你妹的,模拟QQ邮箱登录提示用户名或密码错误。

https://ssl.ptlogin2.qq.com/check?uin=1328937242@qq.com&appid=522005705&ptlang=2052&r=0.011487972790555467
Set-Cookie: ptvfsession=312e3b2213010e9c03222a7fe8beb2eb760518e52959c5d94602099b05bf6fb72f50c98630535c7e17f27e8746a6622d; PATH=/; DOMAIN=ptlogin2.qq.com;
Set-Cookie: ptvfsession=312e3b2213010e9c03222a7fe8beb2eb760518e52959c5d94602099b05bf6fb72f50c98630535c7e17f27e8746a6622d
ptui_checkVC('0','!STT');
0
!STT
无需验证码
filePath: D:\myworkspaces\Qq\WebRoot\js\ps.js
md5_3: C6EF98B218A2B7411981CC86ACE7AD34
(md5(md5_3): 7138FEF0D3FF8D1F9D925121F5EA4328
https://ssl.ptlogin2.qq.com/login?ptlang=2052&uin=1328937242&u_domain=@qq.com&u=1328937242@qq.com&p=7138FEF0D3FF8D1F9D925121F5EA4328&verifycode=!STT&aid=522005705&u1=https%3A%2F%2Fmail.qq.com%2Fcgi-bin%2Flogin%3Fvt%3Dpassport%26vm%3Dwpt%26ft%3Dptlogin%26validcnt%3D0%26clientaddr%3D1328937242%40qq.com&remember=&ss=1&from_ui=1&ptredirect=1&h=1&wording=%E5%BF%AB%E9%80%9F%E7%99%BB%E5%BD%95&mibao_css=m_ptmail&fp=loginerroralert&action=1-1-542265&dummy=
Accept: */*
Referer: https://mail.qq.com/cgi-bin/loginpage?
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; EmbeddedWB 14.52 from: http://www.bsalsa.com/ EmbeddedWB 14.52; InfoPath.3)
Accept-Encoding: gzip, deflate
Host: ssl.ptlogin2.qq.com
Connection: Keep-Alive
Cookie: ptvfsession=312e3b2213010e9c03222a7fe8beb2eb760518e52959c5d94602099b05bf6fb72f50c98630535c7e17f27e8746a6622d;ssl_edition=m466.mail.qq.com; edition=m466.mail.qq.com

 

-----------------------------------------------------------------

 

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>腾讯登录页面</title>
<style type="text/css">
<!--
body,td,th {
    font-family: "宋体",Verdana, Arial;
 font-size: 12px;text-align: left;}
.btn{
border:1px solid #eeeeee; height:20px; width:50px; font-family: "宋体",Verdana, Arial ;font-size: 12px; text-align: center;
FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr=#ffffff,endColorStr=#C6C5D7)}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:1px solid #0D7CCB">
<tr>
<td height="23" align="left" valign="middle" bgcolor="#0D7CCB"><span style="font-size:14px; font-weight:bold; color:#ffffff; padding:10px">提示信息</span></td>
</tr>
<tr>
<td align="center" valign="middle"><label></label>
<table style="padding:10px" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="left" valign="top"><span style="font-size:13px; line-height:17px;">
您输入的帐号或者密码不正确,请重新输入。</span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" valign="bottom"><div align="center"><a style="CURSOR:hand"><input style="CURSOR:hand"  name="Submit" type="button"  class="btn" οnclick=javascript:window.history.back() value="确 定" /></a></div></td>
</tr>
<tr>
<td height="15" align="center">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>

 

在Python中模拟登录QQ邮箱通常涉及到使用第三方库如`selenium`(用于控制浏览器)和`requests`(用于发送HTTP请求),配合一些网页抓包工具来解析登录页面的动态元素。以下是一个简化的步骤概述: 1. 安装必要的库: ``` pip install selenium requests ``` 2. 下载并安装对应的WebDriver,比如ChromeDriver(https://sites.google.com/a/chromium.org/chromedriver/downloads)。 3. 导入所需的库: ```python from selenium import webdriver from selenium.webdriver.common.keys import Keys import time import requests ``` 4. 初始化浏览器实例并打开QQ邮箱登录页面: ```python driver = webdriver.Chrome('path/to/chromedriver') driver.get('https://mail.qq.com/') ``` 5. 模拟点击登录按钮或输入框,填充登录信息(用户名密码): ```python username_input = driver.find_element_by_id('login-email') # 根据实际ID获取输入框 password_input = driver.find_element_by_id('login-password') username_input.send_keys('your_username') password_input.send_keys('your_password') password_input.send_keys(Keys.RETURN) # 输入后按回车键 ``` 6. 等待登录完成或处理可能的验证码: ```python time.sleep(5) # 验证码检查或等待登录响应 if "邮箱登录" in driver.title: # 判断是否登录成功,根据页面标题或其他标志 print("登录成功") else: print("登录失败或需要验证码") ``` 7. 关闭浏览器: ```python driver.quit() ``` 注意:模拟登录可能会因为QQ邮箱的安全策略而变得复杂,特别是对于动态验证码或频繁的反爬机制。在实际操作时,你可能需要根据官方开发者指南或网站变化调整代码。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值