我已经添加了headers跟cookies,现在还是爬不了,只要一刷新就会需要验证
```python
import requests
from lxml import etree
url='https://cd.fang.anjuke.com/?from=AF_Home_switchcity'
cook={'Cookie':
'aQQ_ajkguid=A5732A3A-F490-A6B9-C29A-867BE43A63FA;'
' ajk-appVersion=; id58=CrIcnGVUbVG0LwRCOBJkAg==; isp=true;'
' 58tj_uuid=72b4c361-41de-43f5-8c45-8a89d8d4505c; als=0;'
' sessid=C89D1AED-C4B2-E71D-870F-SX1125123403; obtain_by=2;'
' twe=2; init_refer=https%253A%252F%252Fcn.bing.com%252F;'
' new_uv=2; ctid=15; new_session=0'}
header={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
'AppleWebKit/537.36 (KHTML, like Gecko)'
' Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'}
refer={'https://chengdu.anjuke.com/?from=HomePage_City'}
# proxy = {
# 'https':'https://182.46.113.194:9999',
# 'https':'https://112.85.150.220:9999'
# }
res=requests.get(url,headers=header,cookies=cook)
html=etree.HTML(res.text)
title=html.xpath('//*[@class="infos"]//a/span/text()')
print(res.status_code)
print(res.text)
```