python-toutiao

  • View webpage source code view-source : url
  • categoryCategory _
  • min_behot_time
  • max_behot_time
  • last_refresh_sub_entrance_interval timestamp of this request
  • _rticket
  • ts is also a timestamp
  • But
  • As
  • The last two items of Cp are generated by functions , view the source code of the webpage


Analysis report of today's headline request

1. https://if.snssdk.com/api/news/feed/v%s/?%s Today's headline request method is get request , 

2. v%s is related to the brand of the mobile phone (my mobile phone OPPO is V46 ), there are many parameters behind, most of which are unchanged

3. The changed parameters found through multiple requests are min_behot_time , last_refresh_sub_entrance_interval , as , cp , etc.

4. The category of the cagetory request that mainly affects the requested data. Different categories can request data of different categories (such as health, local, hotspot, video, etc.), and the same url in the same category can request data multiple times. 5. Request When you need to bring headers , otherwise you may not be able to request data.

6. The as , and cp parameters are guided by Pengge and analyzed last year's code to know that it is automatically generated by the code and should be used for some verification. last_refresh_sub_entrance_interval is a timestamp



function(t) {

    var e = {}; 

    e.getHoney = function() {

        vart = Math.floor((newDate).getTime() / 1e3),  

            e = t.toString(16).toUpperCase(),

            i = md5(t).toString().toUpperCase();

        if(8 != e.length) return{  

            as: "479BB4B7254C150",

            cp: "7E0AC8874BB0985"

        };

        for(varn = i.slice(0, 5), a = i.slice(-5), s = "", o = 0; 5 > o; o++) s += n[o] + e[o];  

        for(varr = "", c = 0; 5 > c; c++) r += e[c + 3] + a[c];  

        return{ 

            as: "A1"+ s + e.slice(-3), 

            cp: e.slice(0, 3) + r + "E1"

        }

    },


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326490805&siteId=291194637