如何发送带有 id 而不是 name 的帖子提交?
网络:
<form id="form-storeLocator" action="">
<div class="form-group">
<input id="input-SearchStore" type="text" class="form-control jq_input-searchLocator nolocation" placeholder="" required="" autocomplete="off">
<span class="search_locator_placeholder" hidden="">{name} es necesario</span>
<label class="placeholder nolocation">Dirección</label>
<a href="javascript:void(0);" class="jq_getGeolocation nolocation" title="Search Store"><span class="icon-position" style=""></span></a>
<button type="submit" class="btn btn-primary jq-searchStore"> <span>ENCONTRAR TIENDA</span> <i class="icon-search"></i></button>
</div>
</form>
输入块没有“名称”标签,所以我不知道如何用邮寄方式提交。这是我的代码(不起作用):
import requests
import bs4
url = 'https://miportal.entel.pe/busqueda/tiendas'
params = {
'input-SearchStore': 'Arequipa, Perú',
}
res = requests.post(url,data = params)
soup = bs4.BeautifulSoup(res.text,'lxml')