def __init__(self, asin, daily=0, *args, **kwargs):
super().__init__(*args, **kwargs)
self.asin = asin
self.last_review = 0
self.profile_update_self = False # profile??????
self.updated = False # profile?????
self.daily = True if int(daily) == 1 else False # ?????????
self.start_urls = [
'https://www.amazon.com/product-reviews/%s?sortBy=recent&filterByStar=three_star' % self.asin,
'https://www.amazon.com/product-reviews/%s?sortBy=recent&filterByStar=two_star' % self.asin,
'https://www.amazon.com/product-reviews/%s?sortBy=recent&filterByStar=one_star' % self.asin
]
dispatcher.connect(self.update_profile_self, signals.engine_stopped)
dispatcher.connect(self.init_profile, signals.engine_started)
评论列表
文章目录