with open(’data.jsonl’, ’a’) as f:

f.write(json.dumps({

’id’: text[’href’].split(’/’)[-1], # id
’text’: text.text,
’attitudes_count’: star.text,
’created_at’: t.text,
’pics’: {

# content
# rate
# creation time
# image information
# question id
# image link

’pid’: odai,
’url’: link,

}

}, ensure_ascii=False) + ’\n’)

14
Let’sThinkOutsidetheBox