Use Python to capture all the movies of Mouton Video, and you can watch VIP movies without money!

Crawler for all movie crawlers implemented by python # -*- coding: utf-8 -*- import re import urllib2 from bs4 import BeautifulSoup import string, time import pymongo NUM = 0 #Global variables, number of movies m_type = u'' #Global variables, movie types m_site = u'qq' #Global Va ...

Posted by eRott on Tue, 01 Oct 2019 02:45:40 -0700

Django Framework csv Files and Project Deployment

Django Web Framework Teaching Notes Catalog Article directory Django Web framework teaching notes Catalog User authentication in Django (using Django authentication system) Auh Basic Model Operation: Generating CSV files E-mail Sending Project deployment WSGI Django Work Environment Deployment ...

Posted by mark103 on Mon, 23 Sep 2019 04:43:35 -0700

2. python Deep Decorator

Two important concepts of decorator: 1'@'grammatical sugar (2) Customization before and after execution without changing the original function code The decorator is placed where a function begins to be defined, and it is worn like a hat on the head ...

Posted by Nandini on Mon, 16 Sep 2019 01:45:01 -0700

Python Server Dynamic Resource Request

Server Dynamic Resource Request 1. Browser request dynamic page process 2. WSGI How do you run a Django application and Flask application on the Web server you just built, and how do you adapt to different web architectures without any changes? ...

Posted by callie212 on Mon, 09 Sep 2019 06:41:59 -0700

Using transaction and accessing Alipay payment function in django

I have always wanted to record the transactions used in the project and the payment function of Alipay. I have been lazy all the time. I will take a look at this while I am a bit interested today. The essential function of the mall project is to pay the order, so it will involve the preservation of the order and the introduction of the payment ...

Posted by trauch on Fri, 06 Sep 2019 21:05:09 -0700

drf framework serialization and deserialization

0903 self-summary drf framework serialization and deserialization from rest_framework import serializers I. My own classification of serialization and deserialization Front-end and back-end interactions include get,post,puch,put,deleter Where serialized get is used Use the remaining four of back serialization II. Use of serialization 1. First, ...

Posted by scarface222 on Wed, 04 Sep 2019 23:46:41 -0700

python's Django Framework (Introduction to Django Framework, View Decorator, request Object, Response Object)

12.33 Django Framework Introduction: MVC, whose full name is Model View Controller, is a software architecture model in software engineering. It divides software system into three basic parts: Model, View and Controller. It has the advantages of low coupling, high reusability and low life cycle cost. The design pattern of Django framework dra ...

Posted by flameche on Fri, 30 Aug 2019 07:41:51 -0700

Timing task APScheduler, keep data synchronization at all times

1. What is APScheduler? APScheduler (advanced Python scheduler) is a timing task tool developed by Python. User Guide https://apscheduler.readthedocs.io/en/latest/userguide.html#starting-the-scheduler APScheduler has four components: Scheduler, e ...

Posted by keziah on Thu, 29 Aug 2019 06:26:30 -0700

Django caching, authentication code, login, form validation

1.3 Caching, Verification Code, Logon, Form Verification Caching in Django Interface and usage from django.core.cache import cache # Set age = 123, 10 seconds expiration in the cache cache.set('age', 123, 10) # Get age a = cache.get('age') pr ...

Posted by Zjoske on Wed, 28 Aug 2019 05:58:56 -0700

SQLAlchemy is too big to try Peewee

Shenzhen Python Training: SQL Alchemy is too big to try Peewee SQLAlchemy has powerful functions and rich documents. It is a heavyweight ORM framework. This article introduces a small, clean, lightweight ORM framework Peewee, which supports Python 2. ...

Posted by filburt1 on Mon, 26 Aug 2019 00:12:54 -0700