url = f'https://www.google.com/'
# 创建一个会话对象
session = requests.Session()

# 设置代理
proxies = {
    "http": "http://127.0.0.1:1080",
    "https": "http://127.0.0.1:1080",
}
session.proxies.update(proxies)

response = session.get(f'{url}{page}')
print(response.text)
with open(f'pages/{page}.html', 'w') as f:
    f.write(response.text)
page_lis = tree.xpath('//ol[@class="pagination-parts"]/li/a')
page_total = int(page_lis[-1].text)          

position: relative;
  width: 42rem;
  height: 3rem;
  background-color: #d0d4d3;
  box-shadow: 0 0 6px 0px #d0d4ee;
  border: 2px dashed #555;  //虚线
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1rem;
  margin-bottom: 2rem;

  // hover 增加透明度
  &:hover {
    opacity: 0.6;
  }