setting.py 586 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. # @Author : ChenZhaoyuchen
  3. # @Time : 2024/9/26 16:00
  4. # @File : setting.py
  5. # 初始url
  6. url_start = 'https://www.anjuke.com/fangjia/quanguo2024/'
  7. # 请求头
  8. headers = {
  9. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
  10. 'Accept-Encoding': 'gzip, deflate, br',
  11. 'Accept-Language': 'zh-CN,zh;q=0.9',
  12. 'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0'
  13. }