def __init__(self, *a, **kw):
super(Movie, self).__init__(*a, **kw)
self.log_dir = 'log/%s' % self.name
self.sql = SqlHelper()
self.headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'en-US,en;q=0.5',
'Connection': 'keep-alive',
'Host': 'movie.douban.com',
'Upgrade-Insecure-Requests': '1',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:51.0) Gecko/20100101 Firefox/51.0',
}
utils.make_dir(self.log_dir)
self.init()
评论列表
文章目录