Python development and installation of some common modules, python development module

Source: Internet
Author: User

Python development and installation of some common modules, python development module

1. BeautifulSoup Module

The BeautifulSoup module is mainly used to standardize the source code of a webpage. It uses some specific parsing tag functions to analyze the webpage and obtain some specific content, which is easy to use and easy to get started, however, there are still some drawbacks. For example, JavaScript code in a webpage cannot be effectively read and analyzed. Therefore, regular expressions are often used in combination, which is very efficient.

Ii. Scrapy + Selenium Module

These two modules are used together for parsing javascript, which is difficult to install and configure. The specific installation process and the files to be installed are Baidu

Iii. MySQLdb Module

This module is used to connect to the MySQL database. It cannot be connected without him. It may not be easy to use it. A common error is that many people do not pay attention to the case when importing this package, the system prompts that this module does not exist.

Iv. Twisted Module

How to use this module is not clear, but it is generally used in network programming.

V. wxPython Module

This module is used to compile GUI programs. It is often used in combination with boa-constructor.

In addition, the modules used to compile GUI programs include PyQt4 and eric modules, and a PythonIDE winPython module to compile Python code after installation. Qt Designer is integrated to compile the GUI, this is relatively convenient. It is similar to pulling controls directly by VC.

Note: There are many Python modules. When you need to use it, you must install it again. However, no matter which module you want to install, you must pay attention to the version issue, becauseDifferent versions are not fully compatibleSo that various strange errors occur when installing the module, but the friends should be patient, and more modules will continue to be shared later.

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.