The operation problem of certbot applying for SSL certificate under centos7

About three months ago, we applied for SSL certificate through let s encrypt. Now it's almost the same time. When we boarded the server, we were going to run the certificate update program, but there was a problem when we executed it: The version of pyOpenSSl is too low. According to some practices on the Internet, we ...

Posted by tomas.srna on Sun, 03 May 2020 15:32:32 -0700

Sesame HTTP: the pit of scikit learn Bayesian text classification

Basic steps: 1. Training material classification: I refer to the official directory structure: Put the corresponding text, a txt file and a corresponding article in each directory: as follows   It should be noted that the proportion of all materials should be kept at the same proportion (adjusted according to the training results, the ...

Posted by KevinCB on Sat, 02 May 2020 13:36:22 -0700

Using devpi to build pypi private server in Intranet

Install devpi Summary devpi consists of three components: Devpi server: provides image and cache functions, deploys in the DMZ area of the enterprise, and improves the efficiency of downloading python package Devpi Web: provide web interface and query function Devpi client: command line tool, providing package upload and other functions d ...

Posted by d_barszczak on Thu, 30 Apr 2020 16:57:21 -0700

virtualenv -- python virtual sandbox

notes preceding the text of a book or following the title of an article It is said that virtualenv, fabric and pip are the three magic tools of Python. Whether you agree or not, at least first, pip is often used now. virtualenv heard it for the first time, but I have to try it. 1, Installation pip install virtualenv Because I have already insta ...

Posted by cbrooks on Thu, 30 Apr 2020 15:51:32 -0700

pytest document 37 - Custom use case ordering

Preface In the design of test cases, we generally require that there is no order. Use cases can disrupt the execution, so as to achieve the test effect When some students write use cases, they write the order of use cases. After the order, there will be new problems (for example, the data returned from the previous use case is used as the para ...

Posted by Wolverine68 on Wed, 29 Apr 2020 07:55:00 -0700

pyecharts map visualization

pyecharts: Official documents Here we use the pyecharts module for drawing. The pyecharts project contains a series of geographic map data. These data are either built-in or need additional installation and loading. We need to download the following six packages. Choose the installation you need pip install echarts-countries-pypkg pip ins ...

Posted by Matth_S on Tue, 28 Apr 2020 09:03:41 -0700

pyecharts map visualization

pyecharts: Official documents Here we use the pyecharts module for drawing. The pyecharts project contains a series of geographic map data. These data are either built-in or need additional installation and loading. We need to download the following six packages. Choose the installation you need pip install echarts-countries-pypkg pip ins ...

Posted by Alex-B on Tue, 28 Apr 2020 08:44:36 -0700

[interesting case] who says programmers are not romantic? Python exports wechat chat record to generate love word cloud

When it comes to CI Yun, it's not strange. I don't know how to look down on my boots Word cloud refers to the high frequency The visual prominence of "key words" Visitors can grasp the main idea of the text at a glance See if this is a little love with sound and picture~ Today we collect the daily conversation between lovers Use this ...

Posted by herghost on Tue, 28 Apr 2020 02:13:30 -0700

python crawler (xpath parsing web page, download photos)

XPath (XML Path Language) is a language for finding information in XML documents, which can be used to traverse elements and attributes in XML documents. lxml Is an HTML/XML parser, the main function is how to parse and extract HTML/XML data. lxml, like regular, also uses C is a high-performance Python HTML/XML parser. We can use the XPa ...

Posted by HERATHEIM on Fri, 24 Apr 2020 08:22:55 -0700

Ansible16: Playbook advanced usage

Catalog Local execution Task delegation Task pause Scroll execution Only once Setting environment variables interactive prompt Local execution If you want to run a specific task locally on the control host, you can use the local action statement. Suppose that the remote host we need to configure has jus ...

Posted by roonnyy on Mon, 20 Apr 2020 00:57:21 -0700