Python code is the dictionary in the form of key-value pairs, and it is simulated mobile phone login,
Headers={
'edu - app - type' : 'android'
'edu - app - version:' 2.6.1 '
}
data=https://bbs.csdn.net/topics/{
'the username: the username,
'the passwd: passwd,
'the mob - token' : '
}
Res=spiders. Post (' http://www. * * * *. Org/mob/logp ',
Headers=headers,
Data=https://bbs.csdn.net/topics/data)
I want to ask next, c # how disguised as a mobile terminal, and how to build this post parameters, using webClient classes can be done?
Help me, thank you,
CodePudding user response:
Certainly, simple search WebRequest Post method canMore, you can find whatever
https://blog.csdn.net/wangxi_xixi/article/details/78784827