会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yuanyongsheng
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2024年9月3日
python爬取音乐小工具
摘要: import requests cookies = { 'Hm_lvt_b8f2e33447143b75e7e4463e224d6b7f': '1725333776', 'HMACCOUNT': '15050700AD9FD996', 'Hm_lpvt_b8f2e33447143b75e7e4463
阅读全文
posted @ 2024-09-03 11:49 龙岩龙
阅读(106)
评论(0)
推荐(0)
2024年9月1日
django中settings.py配置redis缓存
摘要: 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 网页动画库,轻松实现网页数字滚动效果
摘要: anime.js下载地址:https://raw.githubusercontent.com/juliangarnier/anime/master/lib/anime.min.js
阅读全文
posted @ 2024-09-01 10:43 龙岩龙
阅读(162)
评论(0)
推荐(0)
2024年8月30日
django中的数据库连接池实现
摘要: 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)
2024年8月12日
python实现抖音评论实时抓取并语音播报
摘要: 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)
亲测有效!!!python实现抖音直播间评论区最新评论爬取
摘要: `` 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)
2024年5月22日
python 实现公众号模板消息推送(亲测有效)
摘要: ``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)
2024年3月15日
django实现将后台数据excel文件形式导出
摘要: 视图函数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)
2024年3月4日
腾讯云sdk实现短信发送
摘要: uu为传入的手机号码 def sendsms(uu): try: # 必要步骤: # 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。 # 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。 # 您也可以直接在代码中写死密钥对,但是小心不要将代码
阅读全文
posted @ 2024-03-04 11:46 龙岩龙
阅读(238)
评论(0)
推荐(1)
上一页
1
2
公告