Home > Net >  C # the crawler
C # the crawler

Time:09-21

You want to ask next, I have a python crawler, c # version of I want to make it,

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 can
More, you can find whatever

https://blog.csdn.net/wangxi_xixi/article/details/78784827
  •  Tags:  
  • C#
  • Related