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.