摘要: 校验密码 from django.contrib.auth.hashers import check_password # 需要导入User表 from django.contrib.auth.models import User # 实例化得到user对象 user = User.object.f 阅读全文
posted @ 2024-02-22 16:14 wellplayed 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装scrapy模块 pip install scrapy 第二步:在需要创建的文件夹内打开cmd窗口输入 scrapy startproject myfirstscrapy 会看到下面的命令: You can start your first spider with: cd myfirst 阅读全文
posted @ 2024-02-22 15:39 wellplayed 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 三种实现拖拽功能的方式 from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.support.wait import WebDriverWait # 等待页 阅读全文
posted @ 2024-02-22 15:09 wellplayed 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 语法格式如下 1 标签名 # 找xml中所有这个标签 2 / # 只找一层 3 // # 子子孙孙都会找 4 . # 从当前路径下 5 .. # 上一层 6 @属性名 # 找有这个属性的标签 数据准备 doc=''' <html> <head> <base href='http://example. 阅读全文
posted @ 2024-02-22 15:00 wellplayed 阅读(14) 评论(0) 推荐(0) 编辑