def do_work(paras):
    venue_id = paras[0]
    crawl_user_id = paras[1]
    drop_table_venue_photo_4sq(crawl_user_id)
    add_table_venue_photo_4sq(crawl_user_id)
    tips_gen = download_venue_photo(venue_id)
    for p in tips_gen:
        save_venue_photo_4sq(p, venue_id, crawl_user_id)
Beispiel #2
0
 def grab_photo(self, venue_id):
     for offset in range(0, 1000, 200):
         venue_photo = self.client.venues.photos(VENUE_ID=venue_id,
                                                 params={
                                                     'limit': 200,
                                                     'group': 'venue',
                                                     'offset': offset
                                                 })
         save_venue_photo_4sq(venue_photo, venue_id)
Beispiel #3
0
 def grab_photo(self, venue_id):
     for offset in range(0, 1000, 200):
         venue_photo = self.client.venues.photos(VENUE_ID = venue_id, params = {'limit':200, 'group':'venue', 'offset':offset})
         save_venue_photo_4sq(venue_photo, venue_id)