Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login to website
#1
I want to use Python to login and later download a file. Could someone show how to login based on this code?

<div class="p">
	<div id="ctl00_cph1_lg1_ch1_d1" class="rc_bg_bl"><div id="ctl00_cph1_lg1_ch1_d2" class="rc_tl_bl"><div id="ctl00_cph1_lg1_ch1_d3" class="rc_tr_bl"><div id="d4" class="rc_c">
	<table class="rc_t">
		<tr><td><div id="ctl00_cph1_lg1_ch1_divText">MEMBER LOGIN</div></td><td><div id="ctl00_cph1_lg1_ch1_divLink" class="hlink"></div></td><td align="right"><div id="ctl00_cph1_lg1_ch1_divIcon" class="hicon"></div></td></tr>
	</table>
</div></div></div></div>
	<div class="bbf" style="padding:6px;">
		<div id="ctl00_cph1_lg1_pnlLogin" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_cph1_lg1_btnLogin')">
	
			<table cellpadding="4" cellspacing="0" width="100%" border="0" style="margin-bottom:10px;">
			  <tr>
			    <td>Email/Username:</td>
			    <td><input name="ctl00$cph1$lg1$txtEmail" type="text" id="ctl00_cph1_lg1_txtEmail" style="width:160px;" /></td>
			  </tr>
			  <tr>
			    <td>Password:</td>
			    <td><input name="ctl00$cph1$lg1$txtPassword" type="password" id="ctl00_cph1_lg1_txtPassword" style="width:160px;" /></td>
			  </tr>
			  <tr>
			    <td></td>
			    <td><input id="ctl00_cph1_lg1_chkRemember" type="checkbox" name="ctl00$cph1$lg1$chkRemember" /><label for="ctl00_cph1_lg1_chkRemember">Remember Me</label></td>
			  </tr>
			  <tr><td colspan="2"><span id="ctl00_cph1_lg1_lblMessage" style="color:Red;"></span></td></tr>
			  <tr>
			    <td></td>
			    <td><input type="submit" name="ctl00$cph1$lg1$btnLogin" value="Login" id="ctl00_cph1_lg1_btnLogin" class="fancy" with="80px;" style="height:28px;" /></td>
			  </tr>			
			</table>			
			<table cellpadding="4" cellspacing="0" width="100%" border="0">
			  <tr>
			  <td><a id="ctl00_cph1_lg1_lnkRegister" href="register.aspx">Register</a></td>
			  <td align="center"><a id="ctl00_cph1_lg1_btnResendEmail" href="javascript:__doPostBack('ctl00$cph1$lg1$btnResendEmail','')">Resend Confirmation</a></td>
			  <td align="right"><a id="ctl00_cph1_lg1_lnkForgot" href="support/Forgot.aspx">Forgot</a></td>
			  </tr>
			</table>
		
</div>
		
		
	</div>
</div>
Reply


Messages In This Thread
Login to website - by kapibara - Jul-26-2019, 06:47 AM
RE: Login to website - by metulburr - Jul-26-2019, 10:50 AM
RE: Login to website - by kapibara - Jul-27-2019, 03:23 AM
RE: Login to website - by metulburr - Jul-27-2019, 11:20 AM
RE: Login to website - by kapibara - Jul-27-2019, 02:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Login and download an exported csv file within a ribbon/button in a website Alekhya 0 2,715 Feb-26-2021, 04:15 PM
Last Post: Alekhya
  Get element (ID) from website to login Olimpiarob 4 4,368 Jul-28-2020, 01:20 PM
Last Post: Martinelli
  Python Webscraping with a Login Website warriordazza 0 2,651 Jun-07-2020, 07:04 AM
Last Post: warriordazza
  using webbot for website login fails loeten 2 6,471 Jan-03-2019, 07:31 AM
Last Post: loeten
  Login and access website mariolopes 7 9,338 Feb-07-2018, 09:47 AM
Last Post: mariolopes
  Using python requests module and BS4 to login on an Wordpress based website apollo 1 9,494 Feb-06-2018, 01:31 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020