def all_fb_data(combined_ids, filename='local_data/FacebookCachedObjectEvent.csv'):
csv.field_size_limit(1000000000)
for row in csv.reader(open(filename)):
source_id, row_id, row_type = row[0].split('.')
if source_id == "701004" and row_type == 'OBJ_EVENT' and (not combined_ids or row_id in combined_ids):
fb_event = json.loads(row[1])
if fb_event and not fb_event.get('deleted') and not fb_event.get('empty') and fb_events.is_public(fb_event):
yield row_id, fb_event
评论列表
文章目录