# coding:utf-8
import requests
import json

url = 'https://www.toutiao.com/search/suggest/hot_words/?_signature=_02B4Z6wo00101KzVDhQAAIDALNf0VpZzQrys8QqAAE.4WWTkOuz1HeMqTrJvEm2yLbAnK-d4x0dPsUEaw146LG7XljEYM0cn9I0bjErwG0PJkn2Kj0dDPMvau3aciANleL.uixoTYSMyqkyd78'
wbdata = requests.get(url).text
print(wbdata)
data = json.loads(wbdata)
print (data)
news = data['data']

for n in news:
  title = n['query']
  id = n['query_id']
  str = n['query_id_string']
  print(id,title,str)