admin的头像-闪狐博客
管理员
这家伙很懒,什么都没有写...
python爬虫-闪狐博客

python爬虫

import requests import json import time from typing import Dict, List, Any class VideoScraper: def __init__(self): # 微信环境请求头 - 与test_categories.py完全相同 self.headers = { ...
3个月前
03914
通过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}') ...
11个月前
0437
python爬取西红柿小说-闪狐博客

python爬取西红柿小说

import os import re import requests import time from os import remove import aiofiles from aiohttp import ClientSession, ClientTimeout import asyncio from colorama import init from...
10个月前
0517
cocos3dx web反编译 第四篇-闪狐博客

cocos3dx web反编译 第四篇

const fs = require('fs'); const { v4: uuidv4 } = require('uuid'); // 读取文件并处理可能的错误 function readFilePromise(filePath) { return new Promise((resolve, reject) => { fs.r...
1年前
06812
通过浏览器还原cocos 3.8 场景结构(努力中)-闪狐博客

通过浏览器还原cocos 3.8 场景结构(努力中)

let sceneinfo = cc.director.getScene(); // 获取当前场景 let children = cc.director.getScene().children;//获取当前场景所有节点 let sceneData = []; //全局定义场景存储点 // 定义一个函...
11个月前
06510
python 爬取某个小说网站-闪狐博客

python 爬取某个小说网站

import os import json import requests from urllib.parse import urljoin from bs4 import BeautifulSoup import re # 定义分类列表 bookcat = [ 'xuanhuan', 'xianxia', 'dushi', 'lishi', '...
10个月前
0378
清理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...
12个月前
0419
php 还原cocos加密后的uuid-闪狐博客

php 还原cocos加密后的uuid

<?php // 22位压缩后的 UUID解码配置 $BASE64_KEYS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; $values = array_fill(0, 123, 64); // max char code in base...
11个月前
0356
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&...
10个月前
04415
解决npm 在Vscode中无法使用的问题-闪狐博客

解决npm 在Vscode中无法使用的问题

1、在 vscode 终端执行 get-ExecutionPolicy # 返回 Restricted 说明状态是禁止的 Restricted 2、更改状态 set-ExecutionPolicy RemoteSigned 如果提示需要管理员权限,可加参数运行 Set-Execut...
12个月前
0737