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.
我有一个脚本,它可以获取带有元刷新的网页。我需要解析检索到的页面,但机械化似乎遵循重定向。我如何让它停止关注它?
你可以简单地禁用它
import mechanize browser = mechanize.Browser() browser.set_handle_refresh(False)