摘要: import requests cookies = { 'Hm_lvt_b8f2e33447143b75e7e4463e224d6b7f': '1725333776', 'HMACCOUNT': '15050700AD9FD996', 'Hm_lpvt_b8f2e33447143b75e7e4463 阅读全文
posted @ 2024-09-03 11:49 龙岩龙 阅读(106) 评论(0) 推荐(0)
摘要: CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379", "OPTIONS": { "CLIENT_CLASS": "django_redis.c 阅读全文
posted @ 2024-09-01 21:39 龙岩龙 阅读(20) 评论(0) 推荐(0)
摘要: anime.js下载地址:https://raw.githubusercontent.com/juliangarnier/anime/master/lib/anime.min.js 阅读全文
posted @ 2024-09-01 10:43 龙岩龙 阅读(162) 评论(0) 推荐(0)
摘要: 1、第一步安装数据库连接池第三方模块 pip install django-db-connection-pool 2、在项目目录下的settings文件中添加下面配置 DATABASES = { "default": { 'ENGINE': 'dj_db_conn_pool.backends.mys 阅读全文
posted @ 2024-08-30 13:37 龙岩龙 阅读(303) 评论(0) 推荐(0)
摘要: import time # 事件库,用于硬性等待 import threading from bs4 import BeautifulSoup from selenium import webdriver # 导入selenium的webdriver模块 from selenium.webdrive 阅读全文
posted @ 2024-08-12 16:09 龙岩龙 阅读(530) 评论(0) 推荐(0)
摘要: `` import time # 事件库,用于硬性等待 import threading from bs4 import BeautifulSoup from selenium import webdriver # 导入selenium的webdriver模块 from selenium.webdr 阅读全文
posted @ 2024-08-12 12:26 龙岩龙 阅读(1372) 评论(0) 推荐(0)
摘要: ``APPID = 'xxxxxxxxx' APPSECRET = 'xxxxxxxxxxxxxx' response = requests.get( 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appi 阅读全文
posted @ 2024-05-22 17:13 龙岩龙 阅读(379) 评论(0) 推荐(0)
摘要: 视图函数export_persons 引入导出excle相关库 import xlwt def export_persons(request): # 获取数据库中的所有Project对象 persons = m1.Project.objects.all() # 创建Excel文件 book = xl 阅读全文
posted @ 2024-03-15 16:54 龙岩龙 阅读(214) 评论(0) 推荐(0)
摘要: uu为传入的手机号码 def sendsms(uu): try: # 必要步骤: # 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。 # 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。 # 您也可以直接在代码中写死密钥对,但是小心不要将代码 阅读全文
posted @ 2024-03-04 11:46 龙岩龙 阅读(238) 评论(0) 推荐(1)