[DEVOPS] normalized submission log with GitLab global Hook

Check the submission log specification in GitLab. 1. Preface Because of its own business characteristics and the growing popularity of Git, the leadership finally made up its mind to carry out relevant pilot projects. So we have some precipitation on SVN in the past few years (e.g [DEVOPS] implement SVN submission log specification with Svn ...

Posted by monezz on Wed, 01 Sep 2021 17:19:16 -0700

python multithreaded programming notes

python multithreaded programming notes Information: Video tutorial Time: August 31, 2021 1, Process (1) Introduction to multitasking Multitasking: execute multiple tasks at the same time Advantages of multitasking: the biggest advantage is to make full use of cpu resources and improve the execution efficiency of programs Two ways 1. Con ...

Posted by uktrips007 on Wed, 01 Sep 2021 15:54:23 -0700

Tools used in the sass project of the django framework

Preface sass project video address: https://www.bilibili.com/video/BV1uA411b77M Link virtual environments: https://blog.csdn.net/weixin_45859193/article/details/115408555 Using Django version 3.2.6, the project name created with untitled7 as the root directory is web. view.py in the web project writes all views. templates file stores ...

Posted by middleman666 on Wed, 01 Sep 2021 09:46:39 -0700

Crawl app photos with python

Download a fighting fish first (you can do it without downloading, the URLs are all here, right) Grab a json package by grabbing it and get the address below   Observed tests show that modifying offset values is equivalent to paging an app Accessing this url returns a large dictionary with two indexes, one error and one data.Data is another 20 ...

Posted by snowdog on Mon, 20 Jul 2020 08:02:20 -0700

python selenium+beautifulSoup crawl lottery network data

I've always been particularly interested in python, and now I'm learning python. Here's how to use the library selenium and beautifulSoup from Python to crawl 360 lottery net winners: First open the page you want to crawl to see its content structure: Web address is http://chart.cp.360.cn/kaijiang/ssq?sb_spm=b5d6e27c6 ...

Posted by mash on Sat, 18 Jul 2020 09:23:12 -0700

Solving Chinese Scrambling Problem of mysql+python on mac Platform

First, for mysql databases, the default character is latin1 This latin1 is the culprit that we can't write in Chinese.The solution, then, is to change the character set to UTF-8 The easiest way to do this is to modify the windowMy.iniProfile),My.iniWhere and how to modify it to UTF-8 is as follows: https://www.cnblogs.com/Ray-xujianguo/p/332 ...

Posted by Yetalia on Sun, 12 Jul 2020 08:38:36 -0700

Scrapy Framework--Get/Delivery/Local Save of Cookies

Environment: Python 3.6 + Scrapy1.4 What I want to do: 1. Complete a simulated landing _2. After successful login, extract the cookie s and save them locallyCookie.txtFile _3. Use it again from localCookie.txtRead cookie s and omit simulated login. I read some blogs about how Scrapy manipulates cookies, and they are all very different (they don ...

Posted by fugix on Fri, 10 Jul 2020 09:14:35 -0700

Additions and deletions based on Form component and based on ModelForm

Introduction to ModelForm ModelForm a. class Meta: model, # Corresponding Model Of fields=None, # field exclude=None, # Exclusion field labels=None, # Prompt message help_texts=None, ...

Posted by 1337hovie on Wed, 08 Jul 2020 08:39:55 -0700

Additions and deletions based on Form component and based on ModelForm

Introduction to ModelForm ModelForm a. class Meta: model, # Corresponding Model Of fields=None, # field exclude=None, # Exclusion field labels=None, # Prompt message help_texts=None, ...

Posted by Wolphie on Wed, 08 Jul 2020 08:40:24 -0700

python common errors and exceptions! Incidental treatment method

As a Python beginner, when learning Python programming, we often see some error messages. Python has two types of errors that are easy to recognize: syntax errors and exceptions. Python assert is used to judge an expression and trigger an exception when the expression condition is false. syntax error Python syntax errors, or parsing errors, ar ...

Posted by michaelmuller on Mon, 29 Jun 2020 20:17:42 -0700