admin的头像-闪狐博客
管理员
这家伙很懒,什么都没有写...
python 爬取某个听书网站-闪狐博客

python 爬取某个听书网站

 bookcode.txt下载txt文件13.2K # 小说信息接口 http://www.6yueting.com/web/index/xsDetail?code=802f1082 # 小说章节接口 http://www.6yueting.com/web/index/xsListdetail?code=802f1082&...
11个月前
04415
通过python裁剪cocos打包后的图片集-闪狐博客

通过python裁剪cocos打包后的图片集

import os from PIL import Image import json # 读取图片 image_path = '14085874e.png' # 替换为你的图片路径 image = Image.open(image_path) print(f'Original image size: {image.size}') ...
1年前
0447
清理sql文件中INSERT INTO 内容-闪狐博客

清理sql文件中INSERT INTO 内容

const fs = require('fs'); const path = require('path'); // 读取 SQL 文件 const sqlFilePath = path.join(__dirname, 'index.sql'); let sqlContent = fs.readFileSync(sqlFilePath, 'utf-8...
1年前
0429
python爬虫-闪狐博客

python爬虫

import requests import json import time from typing import Dict, List, Any class VideoScraper: def __init__(self): # 微信环境请求头 - 与test_categories.py完全相同 self.headers = { ...
4个月前
04014
python 爬取某个小说网站-闪狐博客

python 爬取某个小说网站

import os import json import requests from urllib.parse import urljoin from bs4 import BeautifulSoup import re # 定义分类列表 bookcat = [ 'xuanhuan', 'xianxia', 'dushi', 'lishi', '...
11个月前
0378
php 还原cocos加密后的uuid-闪狐博客

php 还原cocos加密后的uuid

<?php // 22位压缩后的 UUID解码配置 $BASE64_KEYS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; $values = array_fill(0, 123, 64); // max char code in base...
1年前
0356
php 对视频进行基础修改操作-闪狐博客

php 对视频进行基础修改操作

<?php /** * video class * written: denny Date :2020-06-15 */ class Mpeg{ public $sowarePath = ''; public $ffmpegCmd = 'ffmpeg '; public $ffprobeCmd = 'ffprobe '; function __cons...
1年前
03512
Vue实现pdf生成-闪狐博客

Vue实现pdf生成

一、安装依赖将页面转换成图片html2canvas 的作用就是根据 DOM 生成对应的图片。它的屏幕截图是基于 DOM 的,因此可能不会 100% 精确到真实的表示,因为它不会生成实际的屏幕截图,而是基于页面...
12个月前
0339
tp6 读取加密文件里面函数名称-闪狐博客

tp6 读取加密文件里面函数名称

public function code() { /* ---------- 1. 只跑一次 ---------- */ if (!empty($GLOBALS['_dumped'])) { return; } $GLOBALS['_dumped'] = true; /* ---------- 2. 准备日志文件 ---------- *...
7个月前
0309
TP框架获取所有数据表-闪狐博客

TP框架获取所有数据表

Controller控制器代码:<?php declare (strict_types = 1); namespace app\admin\controller; use app\BaseController; use think\facade\Db; use think\facade\View; class Database { publi...
1年前
02515