Python website crawler artifact requests simple installation (for beginners)

Source: Internet
Author: User

Requests is a Python HTTP client library, similar to URLLIB,URLLIB2, why should we use requests? Officially, Python's standard library URLLIB2 provides most of the HTTP functionality needed, but the API is too counter-trivial, and a simple function requires a lot of code.

Here are the installation steps for requests:

We are here to install directly with PIP (this is more suitable for beginners), the new Python comes with Pip,python2.7.13:https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi

After we install python2.7.13, go to the installation directory and add C:\Python27\Scripts (the directory I installed is C:\Python27) to the system's environment variable path

Then under CMD CD into this directory C:\Python27\Scripts, then perform PIP install requests

Installation Complete

Then we'll try the import requests to see if the installation was successful.

Installation Successful

Daniel Pass by not spray

Python website crawler artifact requests simple installation (for beginners)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.