-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblogsettings.py
18 lines (10 loc) · 1.3 KB
/
blogsettings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import re
class Settings(object):
pattern = re.compile(r'.*(\d{4})[-/](0?[1-9]|1[012])[-/](0?[1-9]|[12]\d|3[01])[-/]$|.*(\d{4})[-/](0?[1-9]|1[012])[-/](0?[1-9]|[12]\d|3[01])$|.*(\d{4})[-/](0?[1-9]|1[012])$|.*(\d{4})[-/](0?[1-9]|1[012])[-/]$|.*(\?showComment).*|.*(/page/).*|.*(\?=p).*|.*(\?cat=).*|.*(\?=page).*|.*(_archive).*|.*(#).*|.*(/search\?).*|.*(search/label).*|.*(index\.).*|.*(\?paged=).*|.*(/category/).*|.*(january)$|.*(january)/$|.*(february)$|.*(february)/$|.*(march)$|.*(march)/$|.*(april)$|.*(april)/$|.*(may)$|.*(may)/$|.*(june)$|.*(june)/$|.*(july)$|.*(july)/$|.*(august)$|.*(august)/$|.*(september)$|.*(september)/$|.*(october)$|.*(october)/$|.*(november)$|.*(november)/$|.*(december)$|.*(december)/$')
mysqlsettings = {'host':'weardex.com', 'port':3306, 'user':'visenze', 'passwd':'lmsi3229visenzefashion', 'db':'visenze_fashion', 'charset':'utf8'}
redissettings = {'host':'localhost', 'port':6379, 'db':4}
blogcrawlersettings = {'page_url_set':'blog_page_url_set', 'nothrow_urljson_list':'blog_nothrow_urljson_list', 'image_url_set':'blog_image_url_set', \
'seeds_set':'blog_seeds_set', 'process_no':20, 'thread_no':36, 'init_level':0}
foldersettings = {'original_image_folder':'/public2/ads/image_test/original_image_folder/'}
crawlertype = {'crawlertype':2}
depth_limit = 1000