CodePudding user response:
You send the wrong placeCodePudding user response:
Can use the python library of selenium to simulate the loginCodePudding user response:
Use the get method first get to that a few view state, hair post when the login requestCodePudding user response:
Give you an example, the value to replace thethe from simplified_scrapy. Simplified_doc import SimplifiedDoc
The from simplified_scrapy. Request the import the req
Url='http://'
HTML=the req. Get (url)
LST=SimplifiedDoc (HTML). GetElementByTag (' form '). GetElementsByTag (' input ')
The req. Post (url, "__VIEWSTATE={} & amp; __EVENTVALIDATTION={} & amp; Account={} & amp; The UserName={} & amp; UserPass={} & amp; ButLogin=login ". The format (
LST [0] value, LST [1]. The value of LST [2]. The value of 'name', 'the PWD'
), {' the content-type: 'application/x - WWW - form - urlencoded'})