예제 #1
0
 def __init__(self):
     super(self.__class__, self).__init__()
     self.item_link_template = self.base_url + '/ip/%s?reviews_limit=100&'
     self.page_link_fname = get_full_path('data/page_links.txt')
     self.log_file = open(get_full_path('data/log.txt'), 'w')
예제 #2
0
 def __init__(self, image_path='data/images'):
     super(self.__class__, self).__init__()
     self.image_dir = get_full_path(image_path)
예제 #3
0
 def __init__(self,
              taxonomy_id='976759',
              out_file_name='data/page_links.txt'):
     super(self.__class__, self).__init__()
     self.taxonomy_id = taxonomy_id
     self.out_file_name = get_full_path(out_file_name)
예제 #4
0
 def __init__(self, taxonomy_id="976759", out_file_name="data/page_links.txt"):
     super(self.__class__, self).__init__()
     self.taxonomy_id = taxonomy_id
     self.out_file_name = get_full_path(out_file_name)