如何通过按下没有硒的按钮重定向到另一个页面?
How to redirect to another page by pressing a button without selenium?
我有一个网页
https://myeplanning.oxfordshire.gov.uk/Disclaimer?returnUrl=%2FSearch%2FAdvanced
包含 接受 按钮。如果我按下按钮,它将被重定向到另一个页面
https://myeplanning.oxfordshire.gov.uk/Search/Advanced
我想获得redirected URL
,而不使用 selenium,而这些可以使用scrapy
完成。
能不能再给个原始代码做。
这是一个 <button>
,<button>
必须在 <form>
中,而 action="URL"
你在
中有这个url
<form action="https://myeplanning.oxfordshire.gov.uk/Search/Advanced" method="post">
您可以在 scrapy
(或 beautifulsoup
、lxml
等)
中抓取
我有一个网页
https://myeplanning.oxfordshire.gov.uk/Disclaimer?returnUrl=%2FSearch%2FAdvanced
包含 接受 按钮。如果我按下按钮,它将被重定向到另一个页面
https://myeplanning.oxfordshire.gov.uk/Search/Advanced
我想获得redirected URL
,而不使用 selenium,而这些可以使用scrapy
完成。
能不能再给个原始代码做。
这是一个 <button>
,<button>
必须在 <form>
中,而 action="URL"
你在
中有这个url
<form action="https://myeplanning.oxfordshire.gov.uk/Search/Advanced" method="post">
您可以在 scrapy
(或 beautifulsoup
、lxml
等)