Python crawler: crawling comics with Scrapy framework (with source code)

Scratch is an application framework for crawling website data and extracting structural data. More details about the use of the framework can be found in the official documents. This article shows the general implementation process of crawling cartoon pictures. Scrapy environment configuration The first is the installation of scratch. The blogg ...

Posted by saloon12yrd on Wed, 20 May 2020 21:07:13 -0700

Cool!! I can import packages in Python in eight ways. How about you?

WeChat official account: Python programming time. Original link: https://mp.weixin.qq.com/s/7F4pyDVObJBt-3XrxxYxLQ Today, I'd like to introduce eight methods of Python package import that I've used. 1. Direct import A well-known method, which can be imported directly >>> import os >>> os.getcwd() '/home/wangbm' Similarly, l ...

Posted by kenshintomoe225 on Sun, 17 May 2020 20:51:12 -0700

LXC WEB management tool of container technology LXC WEB Panel

In the previous blog post, I mainly talked about the simple management of lxc container on Linux. For a review, please refer to https://www.cnblogs.com/qiuhom-1874/p/12901493.html Today we will introduce lxc's image management tool, LXC WEB Panel; Project download address: https://github.com/lxc-webpanel/LXC-Web-Panel.git; 1. Install Python fl ...

Posted by ki on Sat, 16 May 2020 22:56:33 -0700

Python uses Oracle to operate mysql database

install Oracle installation command pip install orator ##Easy to use Connection operation of database config = { 'mysql': { 'driver': 'mysql', 'host': 'localhost', 'database': 'test_one', 'user': 'root', 'password': '123456', 'prefix': ...

Posted by mrwutang on Wed, 13 May 2020 09:45:05 -0700

zabbix alarm information aggregation and enterprise wechat reception

1. Code download address https://gitee.com/yyping2019/zabbix_police.git 2. Purpose of development This development is mainly based on the revision of the version described by the author, mainly adding the enterprise wechat receiving alarm, email receiving alarm, slack receiving alarm, and distinguishing different alarms to receive different al ...

Posted by tomdchi on Wed, 13 May 2020 08:34:31 -0700

Python example: one click bulk matting

Have you ever wanted to pick out the characters in one photo and then put them together in other pictures, so that even if you are in the end of the world, I can visit here? Professional people can use PhotoShop's "magic wand" tool to matting, and non professional people can use a variety of beauty APP to achieve, but after all, their ...

Posted by goaman on Tue, 12 May 2020 01:09:48 -0700

Sentiment analysis of twitter based on Python and NLTK

Author: Song Tongtong 1. Introduction nltk is a natural language processing module of python, which implements naive Bayes classification algorithm. This time, Mo will teach you how to classify tweets according to positive and negative emotions through Python and nltk modules. Within the project, there is a code tutorial that can be run, naive ...

Posted by Fly on Wed, 06 May 2020 03:57:51 -0700

MySQL command auto completion tool -- mycli installation

1. Install pip based on python [root@mysql ~]# yum -y install python-pip python-devel [root@mysql ~]# crul https://bootstrap.pypa.io/get-pip.py -o get-pip.py [root@mysql ~]# python get-pip.py # Don't worry if yellow words or similar words appear in this command. It's not an error. It's just a warning that Python version is lower than ...

Posted by drak on Tue, 05 May 2020 00:43:02 -0700

Tensorflow visual programming

Install tensoflow 1.0 Linux/ubuntu: python2.7: pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp27-none-linux_x86_64.whl python3.5: pip3 install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp35-cp35m-linux_x86_64.whl Maxos: python2: pip install https://storage.googleapis.com/te ...

Posted by kr3m3r on Mon, 04 May 2020 08:56:13 -0700

Using Python to realize WeChat official account fan migration

Recently, official account official has been merged into one public official account for the company's business needs, that is to say, one official account (mainly fans) should be transferred to another public number. Two According to WeChat specification, the openid of the same user in different official account is different. Our business syst ...

Posted by nitharsanke on Sun, 03 May 2020 18:14:45 -0700