I could successfully login and navigate through a website but when I inspected the logout button it is like javascript:__doPostBack('ctl00$lnkBtnLogout','')
as link, follow_link()
doesn't work on this (saying: no adapters)??? Can someone help me?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- Django __str__ returned non-string (type NoneType)
- void before promise syntax
- Keeping track of variable instances
From https://github.com/MechanicalSoup/MechanicalSoup:
This gives you two options.
Do the JavaScript yourself
Read the JavaScript. Reverse engineer it. Reimplement it in Python. Figure out what data in the page is dynamic and needed for the algorithm. Extract that using MechanicalSoup and insert it into your reimplementation.
Don't use MechanicalSoup
Use something which does support JavaScript (such as Selenium or PhantomJS) instead.