Created
July 21, 2017 15:13
-
-
Save racterub/a63e9532109e008b8e93d6b6b335c9ba to your computer and use it in GitHub Desktop.
Skyweb Crawler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id=frmlogin name="frmlogin" method="post" action="main.asp"> | |
<tr> | |
<td align='right' style="vertical-align: middle" width="20%"><font style='font-family:微軟正黑體;font-size:20px;font-weight:bold;color:black;'>帳號:</font></td> | |
<td colspan='2'><input type=text class='textone' id='txtid' name='txtid' size=20 maxlength=20 style="background-color:white;" onfocus='this.select();' onblur="txtid_onblur();" ></td> | |
</tr> | |
<tr> | |
<td align='right' style="vertical-align: middle" width="20%"><font style='font-family:微軟正黑體;font-size:20px;font-weight:bold;color:black;'>密碼:</font></td> | |
<td colspan='2'><input type=password class='textone' id='txtpwd' name='txtpwd' size=20 maxlength=30 style="background-color:white;" onfocus='this.select();' onkeydown="checkenter(event)" ></td> | |
</tr> | |
<input type=hidden name=check value="confirm"> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以試試看先用 requests.get 到登入網址認證 ( 參考 ),接著取得 header 再塞到 post。
流程大概:
應該就能收到你要的東西。asp.net 網頁比較煩會有一些奇怪的 form,但通常就是抓出來照表抄上去就好,也沒什麼大不了。希望有幫到你。