Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
执行 AJAX 页面代码后,浏览器会打开一个不同的 url(用 指定window.location.href)。我如何使用机械化来获取它?
window.location.href
import mechanize response = mechanize.urlopen(url) return response.geturl()
将返回初始网址。
Mechanize 不处理 Javascript。尝试改用Selenium