Hello I try to login into my Router Asus-AC52U using Python Requests to scrape information using this script:

import requests
login_url = ''
payload = {'loginSubmitValue':'1','admin_username':'user',"admin_password":"pw"}
data_url = ''

s = requests.Session()
resp = s.post(data_url, data=payload, verify=False)

test = s.get(data_url)
print test.text

this is the output I get:

<meta http-equiv="refresh" content="0; url=/Main_Login.asp?page=/cgi-bin/Advanced_VPNClient_Content.asp">

Can someone tell my what I have to do to get the source code of the pages to scrape content of it? Or what I can try to do so?

Anonymous Asked question May 14, 2021