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 = { ...
22天前
03814
python 爬取某个小说网站-闪狐博客

python 爬取某个小说网站

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

php 还原cocos加密后的uuid

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

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

1、在 vscode 终端执行 get-ExecutionPolicy # 返回 Restricted 说明状态是禁止的 Restricted 2、更改状态 set-ExecutionPolicy RemoteSigned 如果提示需要管理员权限,可加参数运行 Set-Execut...
9个月前
0587
cocos 获取所有节点组件信息-闪狐博客

cocos 获取所有节点组件信息

在浏览器控台输入一下代码运行即可var scene = cc.director.getScene(); var nodeList = new Array(); var total = 0; var startTime = new Date().valueOf(); var searchNode = function (node...
8个月前
0436
UNIAPP自定义底部TabBar-闪狐博客

UNIAPP自定义底部TabBar

1.项目中创建一个 components 文件夹2.文件夹中创建一个TabBar文件夹,在其中创建TabBar.vue文件3.将其源码复制到TabBar.vue中<template> <view> <view class='content' :style=...
10个月前
0645
tp6 读取加密文件里面函数名称-闪狐博客

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

public function code() { /* ---------- 1. 只跑一次 ---------- */ if (!empty($GLOBALS['_dumped'])) { return; } $GLOBALS['_dumped'] = true; /* ---------- 2. 准备日志文件 ---------- *...
3个月前
0279
电脑编程环境搭建-闪狐博客

电脑编程环境搭建

首先打开cmd控制台切换winget的国内源winget source remove winget winget source add winget https://mirrors.ustc.edu.cn/winget-source --trust-level trusted最基本的开发环境winget instal...
8个月前
011610