Python third-party library scrapy Framework Installation

Source: Internet
Author: User

1. Confirm that Python and Pip are installed successfully

2. Installation Win32py provides win32api,:https://sourceforge.net/projects/pywin32/files/

3. Installing lxml lxml is a library written in Python that allows you to process XML quickly and flexibly. https://pypi.python.org/pypi/lxml/3.3.1, available pip download,

Download command: python-m pip install lxml

4. Error occurred: Microsoft Visual C + + 14.0 is required. Get it with "Microsoft Visual C + + Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools, need to install twisted

Twisted installation Address: https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted

    • Twisted?17.9.0?cp27?cp27m?win32.whl
    • Twisted?17.9.0?cp27?cp27m?win_amd64.whl
    • Twisted?17.9.0?cp34?cp34m?win32.whl
    • Twisted?17.9.0?cp34?cp34m?win_amd64.whl
    • Twisted?17.9.0?cp35?cp35m?win32.whl
    • Twisted?17.9.0?cp35?cp35m?win_amd64.whl
    • Twisted?17.9.0?cp36?cp36m?win32.whl
    • Twisted?17.9.0?cp36?cp36m?win_amd64.whl
    • Twisted?17.9.0?cp37?cp37m?win32.whl
    • Twisted?17.9.0?cp37?cp37m?win_amd64.whl
    • Before installing twisted, first determine your pythonb version, such as my version is python3.6.4, then I should choose Cp36, if your computer is a 64-bit system, WIN_AMD64 installation failed, you can install Win32 test,
    • Because my 64-bit system is the Win32 of the installation.
 pip install C:\users\cr\downloads\TWISTED-17.5.0-CP36-CP36M-WIN_AMD64.WHL
    • 5. Installing Scrapy
    • Pip Install Scrapy
    • 6.Scrapy operation

    • Create a new Pycodes folder under the D drive, open cmd
      D:\pycodes>scrapy Startproject Python123demo

    • New scrapy project ' Python123demo ', using template directory ' c:\\users\\jing\\appdata\\local\\programs\\python\\ Python36-32\\lib\\site-packages\\scrapy\\templates\\project ', created in:
      D:\pycodes\python123demo

      You can start your first spider with:
      CD Python123demo
      Scrapy Genspider Example example.com
    • Scrapy Installation Success
This article was reproduced in: 79036579

Python third-party library scrapy Framework Installation

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.