bilibili-榜单
(self)
| 251 | return res |
| 252 | |
| 253 | def getRank5(self): |
| 254 | """ bilibili-榜单 """ |
| 255 | path = 'b("/nr/bili/rank/complexMainRank?")' |
| 256 | nonce, xyz = self.getxyz(path) |
| 257 | getRankUrl = f'https://www.newrank.cn/nr/bili/rank/complexMainRank?nonce={nonce}&xyz={xyz}' |
| 258 | self.data = {"numeric": "时尚", "rankDate": "2021-07-11", "start": 1, "size": 50, "rankType": "0", "type": "0"} |
| 259 | res = self.session.post(url=getRankUrl, headers=self.headers, json=self.data).text |
| 260 | return res |
| 261 | |
| 262 | |
| 263 | if __name__ == "__main__": |