Python3 --- reptile Post mass participation

Foreword

Python3 Post parameter passing is mainly used urllib.request.urlopen (url, data) among the parameter data. parameter setting data mainly post pass parameters.

Modified: 20,191,218

Sky lone

    First, when the Post reptiles in mass participation program, we need to determine that:

  1; need to access the URL.

  2; request object (using urllib.request.Request () construct, in particular request header)

  3; Post transfer parameters (data type to store a dictionary,)

  4; URL in the request (using urllib.request.urlopen (url, data) to provide parameter data Post parameter passing)

 

 

Guess you like

Origin www.cnblogs.com/aaron456-rgv/p/12063919.html