通过用户名获取ID:
https://tieba.baidu.com/home/main?un=用户名
在响应中直接查找userId即可
例如:
https://tieba.baidu.com/home/main?un=mangata99
查找userId有userId: '2168454421'
![](http://tiebapic.baidu.com/forum/w%3D580/sign=9454f51ab51f3a295ac8d5c6a924bce3/8b35a72542a7d933d095b0b7e84bd11372f001b8.jpg?tbpicau=2024-07-16-05_9df3ace0c16dac88e1cdb5b4e09e17ec)
https://tieba.baidu.com/home/main?un=用户名
在响应中直接查找userId即可
例如:
https://tieba.baidu.com/home/main?un=mangata99
查找userId有userId: '2168454421'
![](http://tiebapic.baidu.com/forum/w%3D580/sign=9454f51ab51f3a295ac8d5c6a924bce3/8b35a72542a7d933d095b0b7e84bd11372f001b8.jpg?tbpicau=2024-07-16-05_9df3ace0c16dac88e1cdb5b4e09e17ec)