Python爬虫-爬取图片并且存储到MySQL数据库中

一、获取网址,解析网址 https://img blog.csdnimg.cn/c6a696252aa54310b9de9f72df8fb6b8.png?x oss process=image/watermark,type d3F5LXplbmhlaQ,shadow 50,text Q1NETiBA5bid5Zu95ZC 54ix,size 20,color FFFFFF,t 70,g se,x 16 (1)、for循环获取不同页的数据 https://img blog.csdnimg.cn/...

2022-05-14 | 帝国吾爱 | 208浏览

Django 通过 admin 操作 MySQL数据库 ,审核功能加储存记录

1.创建MySQL数据库 moderate 表 和 moderate log(储存记录) 表 https://img blog.csdnimg.cn/20190121095718738.png?x oss process=image/watermark,type ZmFuZ3poZW5naGVpdGk,shadow 10,text aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM5NjUyNjI4,size 16,color FFFFFF,t 70 https://img ...

2022-05-14 | 帝国吾爱 | 974浏览

运行Django找不到Windows“http://127.0.0.1:8000/”的问题

这个好像是系统的问题,不是软件的问题,好像是杀毒软件删了一些文件。  https://img blog.csdnimg.cn/2018122811555111.png?x oss process=image/watermark,type ZmFuZ3poZW5naGVpdGk,shadow 10,text aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM5NjUyNjI4,size 16,color FFFFFF,t 70 Django没有错误,可以在网站直接输入网址。  ...

2022-05-14 | 帝国吾爱 | 618浏览

Python Django 循环插入到 MongoDB数据库中

 单对单表关联: 开始先循环插入数据到MongoDB中,然后把表1的ID放到表2中,然后就可以通过表2来查看表1了 import random import pymongo '''DBRef关联的表''' from bson.dbref import DBRef from django.http import HttpResponse from bson.objectid import ObjectId def Circular Insertion request : / 链接mongo cl...

2022-05-14 | 帝国吾爱 | 325浏览

django 登入,注册,密码重置

先创建Django项目: 配置settings.py和MySQL我不说了,自己网上配置   https://img blog.csdnimg.cn/20181216210713340.png https://img blog.csdnimg.cn/20181216213005973.png xiangmu.js文件 我的MySQL: https://img blog.csdnimg.cn/20181216210854173.png?x oss process=image/watermark,ty...

2022-05-14 | 帝国吾爱 | 351浏览

python 笔记

''' 快捷注释:ctrl+/ 注释:python中的注释是 shift键+3(/ ) 键,用自己的话把代码的意思给写出 快捷键(ctrl+/) 单行注释:可以写到程序头或者程序末尾 多行注释:三个单引号或者三个双引号 变量:用来存储数据 1.变量的定义 语法 变量名=值 2.变量的类型 名称、保存的数据、存储数据的类型、标示地址 3.变量的命名 and、elif、import、return、as、else、in、try、assert,assert excep、is、while、assert、e...

2022-05-14 | 帝国吾爱 | 290浏览

Pyside2 of Python makes a browser opening gadget

This paper is biased towards the basis , Mainly familiar PySide2 Interface development , How the button calls the function ; https://img blog.csdnimg.cn/acca874cd22145e589216037df3de310.png Finally, click the button , Open the URL function entered ...

2022-05-14 | Fantasy Lab | 444浏览

Pyside2 button, single line text box and text label of Python

Interface effect https://img blog.csdnimg.cn/142da7955ad24b62ac1fbf58ae680544.png designer Drawing interface If you haven't installed the corresponding library file , Please refer to the tutorial here : pyhton And GUI install PySide2、pyqt5 tools...

2022-05-14 | Fantasy Lab | 515浏览

Python notes

''' Quick notes :ctrl+/ notes :python The note in is shift key +3(/ ) key , Write the meaning of the code in your own words Shortcut key (ctrl+/) Single-line comments : It can be written to the beginning or end of the program Multiline comme...

2022-05-14 | Empire my love | 170浏览

Django login, registration, password reset

First create Django project : To configure settings.py and MySQL I won't say , Own online configuration   https://img blog.csdnimg.cn/20181216210713340.png https://img blog.csdnimg.cn/20181216213005973.png xiangmu.js file my MySQL: https://img b...

2022-05-14 | Empire my love | 657浏览

Python Django loop inserted into mongodb database

  Single to single table Association : Start by inserting data into the loop MongoDB in , Then put the watch 1 Of ID Put it on the table 2 in , Then you can use the table 2 To see the table 1 了 import random import pymongo '''DBRef Associated tabl...

2022-05-14 | Empire my love | 180浏览

Windows cannot be found running Django“ http://127.0.0.1:8000/ ”Question of

This seems to be a system problem , It's not a software problem , It seems that anti-virus software deleted some files .  https://img blog.csdnimg.cn/2018122811555111.png?x oss process=image/watermark,type ZmFuZ3poZW5naGVpdGk,shadow 10,text aHR0cHM6...

2022-05-14 | Empire my love | 565浏览

Django operates MySQL database through admin, and the audit function is added to store records

1. establish MySQL database moderate surface and  moderate log( Storage record ) surface https://img blog.csdnimg.cn/20190121095718738.png?x oss process=image/watermark,type ZmFuZ3poZW5naGVpdGk,shadow 10,text aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM...

2022-05-14 | Empire my love | 767浏览

Python crawler - crawl images and store them in MySQL database

One 、 Get URL , Analysis website https://img blog.csdnimg.cn/c6a696252aa54310b9de9f72df8fb6b8.png?x oss process=image/watermark,type d3F5LXplbmhlaQ,shadow 50,text Q1NETiBA5bid5Zu95ZC 54ix,size 20,color FFFFFF,t 70,g se,x 16 (1)、for Loop to get the...

2022-05-14 | Empire my love | 112浏览

Deploy multiple projects on Ubuntu (using ngingo + Django server)

The premise is already installed Nginx and uwsgi. take Django Upload the project to the server . https://img blog.csdnimg.cn/img convert/f4621d8477cff9ca7f0abd4744718ac7.png On the project root , establish uWSGI Configuration file for uwsgi.ini. ...

2022-05-14 | Empire my love | 344浏览

Python发送邮件

文章目录 Python发送邮件 Python 1 一、 文本信息 7 二、 图片信息 60 三、 附件 130 Python发送邮件 smtplib 是 Python 用来发送邮件的模块, email 是用来处理邮件消息 这里,我们使用 装饰器 62789540/article/details/124513178?spm=1001.2014.3001.5501 来制作发送邮件的功能 一、 文本信息 我们使用 MIMEText 来发送文本信息 / /usr/bin/env pytho...

2022-05-14 | A-L-Kun | 743浏览

Implementing business card management system with Python

Catalog One 、 Title Description %E4%B8%80%E3%80%81%E9%A2%98%E7%9B%AE%E6%8F%8F%E8%BF%B0 Two 、 analysis %E4%BA%8C%E3%80%81%E8%A7%A3%E6%9E%90 1、 analysis 1%E3%80%81%E5%88%86%E6%9E%90 2、 structure 2%E3%80%81%E7%BB%93%E6%9E%84         ① Encapsula...

2022-05-14 | Begin to change | 672浏览

Python's operation on Excel -- classifying and summarizing the data in 278 excel tables

Catalog One 、 subject %E4%B8%80%E3%80%81%E9%A2%98%E7%9B%AE 1、 describe 1%E3%80%81%E6%8F%8F%E8%BF%B0 2、 Exhibition 2%E3%80%81%E5%B1%95%E7%A4%BA ① Original picture %E2%91%A0%E5%8E%9F%E5%9B%BE ② design sketch %E2%91%A1%E6%95%88%E6%9E%9C%E5%9B%B...

2022-05-14 | Begin to change | 678浏览

pycharm调试django.core.exceptions.AppRegistryNotReady: Apps aren‘t loaded yet.

需求背景 我需要在django项目中app应用下写一个工具方法,用来更新数据库。 报错信息 django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. 有效代码 import os import django os.environ.setdefault 'DJANGO SETTINGS MODULE', 'devops.settings' / devops换成自己的项目名称 django.setup from blog...

2022-05-14 | JaquanC | 526浏览

[Python basics] learn more about the use of collections

Catalog ** Wedge : %F0%9F%8F%A0%F0%9F%8F%A0%E6%A5%94%E5%AD%90%20%EF%BC%9A ** One 、 Introduction to the collection %F0%9F%8F%A0%F0%9F%8F%A0%E4%B8%80%E3%80%81%E9%9B%86%E5%90%88%E7%9A%84%E4%BB%8B%E7%BB%8D ** Two 、 The basic use of sets %F0%9F%8...

2022-05-14 | Next week ovo | 179浏览