forked from liujiao111/map-easygo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
40 lines (30 loc) · 1.14 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /usr/local/bin/python3
# coding: utf-8
# __author__ = "Brady Hu"
# __date__ = 2017/10/16 16:11
import os
#爬虫参数设置
# 渔网点坐标所在文件
xy_name = "data.txt"
#需要爬取的区域的四个方向点坐标
city_bound_point_A = [114.286652,30.642638] #左上角点,x619
city_bound_point_D = [114.239273,30.580588] #左下角点,农场十一队
city_bound_point_B = [114.462433,30.574677] #右上角点,木妙
city_bound_point_C = [114.418488,30.479746] #右下角点,牛场右下角
#下面设置文件存目录,不要设置在系统盘,不然会出现问题
#当前目录用"."表示,如"./example/"
filepath = r"./example/"
if not os.path.exists(filepath):
os.makedirs(filepath)
filename = "example"
#爬取的间隔时间
sleeptime = 3600 #单位是秒,7200秒即为2小时
#下面这个设置每个qq号抓取的次数
fre = 80
#每次爬取方格的边长(单位:km)
edge = 2.6
#下面的参数不用设置
lng_delta = 0.01167*edge
lat_delta = 0.009*edge
#是否手动识别验证码,如需手动识别验证码,设置为True,否则设置为False,遇到验证码直接跳过
CAPTCHA_RECOGNIZ = False