向端点发出curl请求后,我得到了以下响应
from selenium import webdriver
from bs4 import BeautifulSoup
import time
browser = webdriver.Chrome()
strt=time.time()
y=browser.get("https://www.amazon.jobs/en/locations/bangalore-india")
#time.sleep(10)
html = browser.page_source
soup = BeautifulSoup(html,'lxml')
li=soup.find_all('ul')
print(li)
print('load time='+str(time.time()-strt))
最终,我不希望 接受范围:字节 ,而必须是 “接受范围:无”
我尝试在nginx配置中关注
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy", Locale.ENGLISH);
Date firstDate = new Date();
Date secondDate = null;
secondDate = sdf.parse("06/30/2019");
long diffInMillies = Math.abs(secondDate.getTime() - firstDate.getTime());
long diff = TimeUnit.DAYS.convert(diffInMillies, TimeUnit.MILLISECONDS);
可能是什么问题?
答案 0 :(得分:1)
您是否尝试删除“ proxy_force_ranges on”?无论这些响应中的“ Accept-Ranges”字段如何,它都能为代理服务器的响应提供字节范围支持。