码迷,mamicode.com
首页 > 其他好文 > 详细

get Toutiao.com news list

时间:2020-10-31 01:08:29      阅读:23      评论:0      收藏:0      [点我收藏+]

标签:headers   crs   you   gdb   tsv   tps   div   group   aof   

.get cookie with your browser then can do 

  WebClient wc = new WebClient();
            wc.Headers.Add("referer", "https://www.toutiao.com/");
            wc.Headers.Add("cookie", "csrftoken=620bbe6e6bec516a228938d9adc9d616; tt_webid=6888172478528259598; MONITOR_WEB_ID=53483fbc-ef71-4859-91cd-1833242346e8; s_v_web_id=verify_kgrjtabo_fuY8uuEL_ry3f_4d0q_8fHv_EJ3P2bCGH4Ky; ttcid=2d01cbca59c4456ba0a8137e857a01e511; tt_scid=LtVXXilIPbrZ2acC-MSiW7ELGN9OtxOtSL0Aof-FE-vtbYbZFhCAJlgknDzQu0uZ32f1");
            string s=wc.DownloadString("https://www.toutiao.com/api/pc/feed/?max_behot_time=1603736977&category=__all__&utm_source=toutiao&widen=1&tadrequire=true&_signature=_02B4Z6wo00d01gDBQkwAAIBA3sgz.ToJeuIAxEbAAN-1TSVlc9DQhEAdiw8ZDldcrsVAp8zK7Dj1R7c1b3FM8IuJbPIyLwum5GyiSZFl.5.htMBiDYhkFl1vwlu1v-UTGbiSnwxg0jjppxTz0a");
            //then get source_url:  group/6887092770658320903/
            //contact to be url : https://www.toutiao.com/group/6887092770658320903/

            wc.Encoding = Encoding.UTF8;
            s= wc.DownloadString("https://www.toutiao.com/group/6887092770658320903/");

  

get Toutiao.com news list

标签:headers   crs   you   gdb   tsv   tps   div   group   aof   

原文地址:https://www.cnblogs.com/wgscd/p/13884546.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!