我使用的是windows10和python3。我从来没有得到第二页的数据。请检查一下。你知道吗
提前谢谢!你知道吗
scrapy shell "https://www.industrystock.com/html/hydraulic-cylinder/product-result-uk-19931-0.html"
我的终端
url = 'https://www.industrystock.com/html/hydraulic-cylinder/product-result-uk-19931-0.html'
form = {
'lang': 'en',
'beta': 'false',
'action': 'RESULTPAGE_AJAX#getOverview',
'content': 'resultpage',
'subContent': 'result',
'company_id': '0',
'override_id': '0',
'domain_id': '0',
'user_id': '0',
'keyword_id': '19931',
'JSONStr': '{"key":"company","length":9,"keyword_id":null,"index":6,"filter":{},"override":{"key":"company"},"query":"Hydraulic Cylinder"}'}
headers = {
'Content-Type': 'json/',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36',
'X-Requested-With': 'XMLHttpRequest',
}
req = scrapy.FormRequest(url, method='POST', formdata=form, headers=headers)
fetch(req)
view(response)
我们希望爬网加载更多的页面和数据!你知道吗
我试图找到一种不渲染页面的方法:
相关问题 更多 >
编程相关推荐