前端代码
浏览器打开 https://cloud.iocoder.cn/intro/
F12
执行代码
var aaa= $(".sidebar-group-items").find("a");
var ll=[];
var tt=[];
for(var i=0;i<aaa.length;i++ ){ ll.push("https://doc.iocoder.cn"+ $(aaa[i]).attr("href"));tt.push($(aaa[i]).html());
}
对 ll 和 tt ,鼠标右键 copy object ,格式化字符串后 作为下面java参数的代码
java代码
import cn.hutool.core.io.FileUtil;
import cn.hutool.http.HttpUtil;import java.io.File;
import java.nio.charset.Charset;public class YuDaoTest {public static void main(String[] args) {String[] urlList= new String [] {"https://doc.iocoder.cn/intro/","https://doc.iocoder.cn/qun/","https://doc.iocoder.cn/video/","https://doc.iocoder.cn/feature/","https://doc.iocoder.cn/quick-start/","https://doc.iocoder.cn/quick-start-front/","https://doc.iocoder.cn/api-doc/","https://doc.iocoder.cn/technology/","https://doc.iocoder.cn/project-intro/","https://doc.iocoder.cn/dev-hot-swap/","https://doc.iocoder.cn/project-rename/","https://doc.iocoder.cn/delete-code/","https://doc.iocoder.cn/natapp/","https://doc.iocoder.cn/db-dameng/","https://doc.iocoder.cn/module-new/","https://doc.iocoder.cn/new-feature/","https://doc.iocoder.cn/new-feature/master-sub/","https://doc.iocoder.cn/new-feature/tree/","https://doc.iocoder.cn/resource-permission/","https://doc.iocoder.cn/data-permission/","https://doc.iocoder.cn/user-center/","https://doc.iocoder.cn/social-user/","https://doc.iocoder.cn/oauth2/","https://doc.iocoder.cn/saas-tenant/","https://doc.iocoder.cn/saas-tenant/dynamic/","https://doc.iocoder.cn/websocket/","https://doc.iocoder.cn/exception/","https://doc.iocoder.cn/validator/","https://doc.iocoder.cn/page-feature/","https://doc.iocoder.cn/file/","https://doc.iocoder.cn/excel-import-and-export/","https://doc.iocoder.cn/system-log/","https://doc.iocoder.cn/mybatis/","https://doc.iocoder.cn/mybatis-pro/","https://doc.iocoder.cn/dynamic-datasource/","https://doc.iocoder.cn/redis-cache/","https://doc.iocoder.cn/local-cache/","https://doc.iocoder.cn/async-task/","https://doc.iocoder.cn/util/","https://doc.iocoder.cn/unit-test/","https://doc.iocoder.cn/distributed-lock/","https://doc.iocoder.cn/idempotent/","https://doc.iocoder.cn/db-doc/","https://doc.iocoder.cn/captcha/","https://doc.iocoder.cn/cloud-debug/","https://doc.iocoder.cn/registry-center/","https://doc.iocoder.cn/config-center/","https://doc.iocoder.cn/gateway/","https://doc.iocoder.cn/rpc/","https://doc.iocoder.cn/job/","https://doc.iocoder.cn/message-queue/event/","https://doc.iocoder.cn/message-queue/redis/","https://doc.iocoder.cn/message-queue/rocketmq/","https://doc.iocoder.cn/message-queue/rabbitmq/","https://doc.iocoder.cn/message-queue/kafka/","https://doc.iocoder.cn/message-queue/cloud/","https://doc.iocoder.cn/distributed-transaction/","https://doc.iocoder.cn/server-protection/","https://doc.iocoder.cn/bpm/","https://doc.iocoder.cn/bpm/dameng/","https://doc.iocoder.cn/report/","https://doc.iocoder.cn/report/screen/","https://doc.iocoder.cn/pay/build/","https://doc.iocoder.cn/pay/alipay-pay-demo/","https://doc.iocoder.cn/pay/wx-pub-pay-demo/","https://doc.iocoder.cn/pay/wx-lite-pay-demo/","https://doc.iocoder.cn/pay/refund-demo/","https://doc.iocoder.cn/member/build/","https://doc.iocoder.cn/member/weixin-mp-login/","https://doc.iocoder.cn/member/weixin-lite-login/","https://doc.iocoder.cn/member/user/","https://doc.iocoder.cn/member/level/","https://doc.iocoder.cn/mall-preview/","https://doc.iocoder.cn/mall/build/","https://doc.iocoder.cn/mall/diy/","https://doc.iocoder.cn/mall/product-category/","https://doc.iocoder.cn/mall/product-property/","https://doc.iocoder.cn/mall/product-spu-sku/","https://doc.iocoder.cn/mall/product-comment/","https://doc.iocoder.cn/mall/trade-cart/","https://doc.iocoder.cn/mall/trade-order/","https://doc.iocoder.cn/mall/trade-aftersale/","https://doc.iocoder.cn/mall/trade-delivery-express/","https://doc.iocoder.cn/mall/trade-delivery-pickup/","https://doc.iocoder.cn/mall/trade-brokerage/","https://doc.iocoder.cn/mall/promotion-coupon/","https://doc.iocoder.cn/mall/promotion-combination/","https://doc.iocoder.cn/mall/promotion-seckill/","https://doc.iocoder.cn/mall/promotion-bargain/","https://doc.iocoder.cn/mall/promotion-record/","https://doc.iocoder.cn/mall/promotion-discount/","https://doc.iocoder.cn/mall/promotion-content/","https://doc.iocoder.cn/mall/statistics/","https://doc.iocoder.cn/erp-preview/","https://doc.iocoder.cn/erp/build/","https://doc.iocoder.cn/erp/product/","https://doc.iocoder.cn/erp/stock/","https://doc.iocoder.cn/erp/stock-in-out/","https://doc.iocoder.cn/erp/stock-move-check/","https://doc.iocoder.cn/erp/purchase/","https://doc.iocoder.cn/erp/sale/","https://doc.iocoder.cn/sale/finance-payment-receipt/","https://doc.iocoder.cn/crm-preview/","https://doc.iocoder.cn/crm/build/","https://doc.iocoder.cn/crm/clue/","https://doc.iocoder.cn/crm/customer/","https://doc.iocoder.cn/crm/business/","https://doc.iocoder.cn/crm/contract/","https://doc.iocoder.cn/crm/receivable/","https://doc.iocoder.cn/crm/product/","https://doc.iocoder.cn/crm/permission/","https://doc.iocoder.cn/crm/follow-up/","https://doc.iocoder.cn/mp/build/","https://doc.iocoder.cn/mp/account/","https://doc.iocoder.cn/mp/user/","https://doc.iocoder.cn/mp/tag/","https://doc.iocoder.cn/mp/message/","https://doc.iocoder.cn/mp/auto-reply/","https://doc.iocoder.cn/mp/menu/","https://doc.iocoder.cn/mp/material/","https://doc.iocoder.cn/mp/article/","https://doc.iocoder.cn/mp/statistics/","https://doc.iocoder.cn/sms/","https://doc.iocoder.cn/mail/","https://doc.iocoder.cn/notify/","https://doc.iocoder.cn/desensitize/","https://doc.iocoder.cn/sensitive-word/","https://doc.iocoder.cn/area-and-ip/","https://doc.iocoder.cn/dev-env/","https://doc.iocoder.cn/deployment-linux/","https://doc.iocoder.cn/deployment-docker/","https://doc.iocoder.cn/deployment-jenkins/","https://doc.iocoder.cn/https/","https://doc.iocoder.cn/server-monitor/","https://doc.iocoder.cn/vue3/dev-spec/","https://doc.iocoder.cn/vue3/route/","https://doc.iocoder.cn/vue3/icon/","https://doc.iocoder.cn/vue3/dict/","https://doc.iocoder.cn/vue3/components/","https://doc.iocoder.cn/vue3/util/","https://doc.iocoder.cn/vue3/config-center/","https://doc.iocoder.cn/vue3/crud-schema/","https://doc.iocoder.cn/vue3/i18n/","https://doc.iocoder.cn/vue3/debugger/","https://doc.iocoder.cn/vue3/format/","https://doc.iocoder.cn/vue2/dev-spec/","https://doc.iocoder.cn/vue2/route/","https://doc.iocoder.cn/vue2/icon/","https://doc.iocoder.cn/vue2/dict/","https://doc.iocoder.cn/vue2/components/","https://doc.iocoder.cn/vue2/util/","https://doc.iocoder.cn/vue2/config-center/","https://doc.iocoder.cn/changelog/2.1.0/","https://doc.iocoder.cn/changelog/2.0.1/","https://doc.iocoder.cn/changelog/2.0.0/","https://doc.iocoder.cn/changelog/1.9.0/","https://doc.iocoder.cn/changelog/1.8.3/","https://doc.iocoder.cn/intro/","https://doc.iocoder.cn/qun/","https://doc.iocoder.cn/video/","https://doc.iocoder.cn/feature/","https://doc.iocoder.cn/quick-start/","https://doc.iocoder.cn/quick-start-front/","https://doc.iocoder.cn/api-doc/","https://doc.iocoder.cn/technology/","https://doc.iocoder.cn/project-intro/","https://doc.iocoder.cn/dev-hot-swap/","https://doc.iocoder.cn/project-rename/","https://doc.iocoder.cn/delete-code/","https://doc.iocoder.cn/natapp/","https://doc.iocoder.cn/db-dameng/","https://doc.iocoder.cn/module-new/","https://doc.iocoder.cn/new-feature/","https://doc.iocoder.cn/new-feature/master-sub/","https://doc.iocoder.cn/new-feature/tree/","https://doc.iocoder.cn/resource-permission/","https://doc.iocoder.cn/data-permission/","https://doc.iocoder.cn/user-center/","https://doc.iocoder.cn/social-user/","https://doc.iocoder.cn/oauth2/","https://doc.iocoder.cn/saas-tenant/","https://doc.iocoder.cn/saas-tenant/dynamic/","https://doc.iocoder.cn/websocket/","https://doc.iocoder.cn/exception/","https://doc.iocoder.cn/validator/","https://doc.iocoder.cn/page-feature/","https://doc.iocoder.cn/file/","https://doc.iocoder.cn/excel-import-and-export/","https://doc.iocoder.cn/system-log/","https://doc.iocoder.cn/mybatis/","https://doc.iocoder.cn/mybatis-pro/","https://doc.iocoder.cn/dynamic-datasource/","https://doc.iocoder.cn/redis-cache/","https://doc.iocoder.cn/local-cache/","https://doc.iocoder.cn/async-task/","https://doc.iocoder.cn/util/","https://doc.iocoder.cn/unit-test/","https://doc.iocoder.cn/distributed-lock/","https://doc.iocoder.cn/idempotent/","https://doc.iocoder.cn/db-doc/","https://doc.iocoder.cn/captcha/","https://doc.iocoder.cn/cloud-debug/","https://doc.iocoder.cn/registry-center/","https://doc.iocoder.cn/config-center/","https://doc.iocoder.cn/gateway/","https://doc.iocoder.cn/rpc/","https://doc.iocoder.cn/job/","https://doc.iocoder.cn/message-queue/event/","https://doc.iocoder.cn/message-queue/redis/","https://doc.iocoder.cn/message-queue/rocketmq/","https://doc.iocoder.cn/message-queue/rabbitmq/","https://doc.iocoder.cn/message-queue/kafka/","https://doc.iocoder.cn/message-queue/cloud/","https://doc.iocoder.cn/distributed-transaction/","https://doc.iocoder.cn/server-protection/","https://doc.iocoder.cn/bpm/","https://doc.iocoder.cn/bpm/dameng/","https://doc.iocoder.cn/report/","https://doc.iocoder.cn/report/screen/","https://doc.iocoder.cn/pay/build/","https://doc.iocoder.cn/pay/alipay-pay-demo/","https://doc.iocoder.cn/pay/wx-pub-pay-demo/","https://doc.iocoder.cn/pay/wx-lite-pay-demo/","https://doc.iocoder.cn/pay/refund-demo/","https://doc.iocoder.cn/member/build/","https://doc.iocoder.cn/member/weixin-mp-login/","https://doc.iocoder.cn/member/weixin-lite-login/","https://doc.iocoder.cn/member/user/","https://doc.iocoder.cn/member/level/","https://doc.iocoder.cn/mall-preview/","https://doc.iocoder.cn/mall/build/","https://doc.iocoder.cn/mall/diy/","https://doc.iocoder.cn/mall/product-category/","https://doc.iocoder.cn/mall/product-property/","https://doc.iocoder.cn/mall/product-spu-sku/","https://doc.iocoder.cn/mall/product-comment/","https://doc.iocoder.cn/mall/trade-cart/","https://doc.iocoder.cn/mall/trade-order/","https://doc.iocoder.cn/mall/trade-aftersale/","https://doc.iocoder.cn/mall/trade-delivery-express/","https://doc.iocoder.cn/mall/trade-delivery-pickup/","https://doc.iocoder.cn/mall/trade-brokerage/","https://doc.iocoder.cn/mall/promotion-coupon/","https://doc.iocoder.cn/mall/promotion-combination/","https://doc.iocoder.cn/mall/promotion-seckill/","https://doc.iocoder.cn/mall/promotion-bargain/","https://doc.iocoder.cn/mall/promotion-record/","https://doc.iocoder.cn/mall/promotion-discount/","https://doc.iocoder.cn/mall/promotion-content/","https://doc.iocoder.cn/mall/statistics/","https://doc.iocoder.cn/erp-preview/","https://doc.iocoder.cn/erp/build/","https://doc.iocoder.cn/erp/product/","https://doc.iocoder.cn/erp/stock/","https://doc.iocoder.cn/erp/stock-in-out/","https://doc.iocoder.cn/erp/stock-move-check/","https://doc.iocoder.cn/erp/purchase/","https://doc.iocoder.cn/erp/sale/","https://doc.iocoder.cn/sale/finance-payment-receipt/","https://doc.iocoder.cn/crm-preview/","https://doc.iocoder.cn/crm/build/","https://doc.iocoder.cn/crm/clue/","https://doc.iocoder.cn/crm/customer/","https://doc.iocoder.cn/crm/business/","https://doc.iocoder.cn/crm/contract/","https://doc.iocoder.cn/crm/receivable/","https://doc.iocoder.cn/crm/product/","https://doc.iocoder.cn/crm/permission/","https://doc.iocoder.cn/crm/follow-up/","https://doc.iocoder.cn/mp/build/","https://doc.iocoder.cn/mp/account/","https://doc.iocoder.cn/mp/user/","https://doc.iocoder.cn/mp/tag/","https://doc.iocoder.cn/mp/message/","https://doc.iocoder.cn/mp/auto-reply/","https://doc.iocoder.cn/mp/menu/","https://doc.iocoder.cn/mp/material/","https://doc.iocoder.cn/mp/article/","https://doc.iocoder.cn/mp/statistics/","https://doc.iocoder.cn/sms/","https://doc.iocoder.cn/mail/","https://doc.iocoder.cn/notify/","https://doc.iocoder.cn/desensitize/","https://doc.iocoder.cn/sensitive-word/","https://doc.iocoder.cn/area-and-ip/","https://doc.iocoder.cn/dev-env/","https://doc.iocoder.cn/deployment-linux/","https://doc.iocoder.cn/deployment-docker/","https://doc.iocoder.cn/deployment-jenkins/","https://doc.iocoder.cn/https/","https://doc.iocoder.cn/server-monitor/","https://doc.iocoder.cn/vue3/dev-spec/","https://doc.iocoder.cn/vue3/route/","https://doc.iocoder.cn/vue3/icon/","https://doc.iocoder.cn/vue3/dict/","https://doc.iocoder.cn/vue3/components/","https://doc.iocoder.cn/vue3/util/","https://doc.iocoder.cn/vue3/config-center/","https://doc.iocoder.cn/vue3/crud-schema/","https://doc.iocoder.cn/vue3/i18n/","https://doc.iocoder.cn/vue3/debugger/","https://doc.iocoder.cn/vue3/format/","https://doc.iocoder.cn/vue2/dev-spec/","https://doc.iocoder.cn/vue2/route/","https://doc.iocoder.cn/vue2/icon/","https://doc.iocoder.cn/vue2/dict/","https://doc.iocoder.cn/vue2/components/","https://doc.iocoder.cn/vue2/util/","https://doc.iocoder.cn/vue2/config-center/","https://doc.iocoder.cn/changelog/2.1.0/","https://doc.iocoder.cn/changelog/2.0.1/","https://doc.iocoder.cn/changelog/2.0.0/","https://doc.iocoder.cn/changelog/1.9.0/","https://doc.iocoder.cn/changelog/1.8.3/"};String filePath="D:\\yudao-cloud\\";String[] titleList = new String[] {"简介", "交流群", "视频教程", "功能列表", "快速启动(后端项目)", "快速启动(前端项目)", "接口文档", "技术选型", "项目结构", "代码热加载", "一键改包", "删除功能", "内网穿透", "达梦数据库专属", "新建服务", "代码生成【单表】(新增功能)", "代码生成【主子表】", "代码生成(树表)", "功能权限", "数据权限", "用户体系", "三方登录", "OAuth 2.0(SSO 单点登录)", "SaaS 多租户【字段隔离】", "SaaS 多租户【数据库隔离】", "WebSocket 实时通信", "异常处理(错误码)", "参数校验", "分页实现", "文件存储(上传下载)", "Excel 导入导出", "系统日志", "MyBatis 数据库", "MyBatis 联表&分页查询", "多数据源(读写分离)", "Redis 缓存", "本地缓存", "异步任务", "工具类 Util", "单元测试", "分布式锁", "幂等性(防重复提交)", "数据库文档", "验证码", "微服务调试(必读)", "注册中心 Nacos", "配置中心 Nacos", "服务网关 Spring Cloud Gateway", "服务调用 Feign", "定时任务 XXL Job", "消息队列(内存)", "消息队列(Redis)", "消息队列(RocketMQ)", "消息队列(RabbitMQ)", "消息队列(Kafka)", "消息队列(Cloud)", "分布式事务 Seata", "服务保障 Sentinel", "工作流(Flowable)会签、或签", "工作流(达梦适配)", "报表设计器", "大屏设计器", "功能开启", "支付宝支付接入", "微信公众号支付接入", "微信小程序支付接入", "支付宝、微信退款接入", "功能开启", "微信公众号登录", "微信小程序登录", "会员用户、标签、分组", "会员等级、积分、签到", "商城演示", "功能开启", "商城装修", "【商品】商品分类", "【商品】商品属性", "【商品】商品 SPU 与 SKU", "【商品】商品评价", "【交易】购物车", "【交易】交易订单", "【交易】售后退款", "【交易】快递发货", "【交易】门店自提", "【交易】分销返佣", "【营销】优惠劵", "【营销】拼团活动", "【营销】秒杀活动", "【营销】砍价活动", "【营销】满减送", "【营销】限时折扣", "【营销】内容管理", "【统计】会员、商品、交易统计", "ERP 演示", "功能开启", "【产品】产品信息、分类、单位", "【库存】产品库存、库存明细", "【库存】其它入库、其它出库", "【库存】库存调拨、库存盘点", "【采购】采购订单、入库、退货", "【销售】销售订单、出库、退货", "【财务】采购付款、销售收款", "CRM 演示", "功能开启", "【线索】线索管理", "【客户】客户管理、公海客户", "【商机】商机管理、商机状态", "【合同】合同管理、合同提醒", "【回款】回款管理、回款计划", "【产品】产品管理、产品分类", "【通用】数据权限", "【通用】跟进记录、待办事项", "功能开启", "公众号接入", "公众号粉丝", "公众号标签", "公众号消息", "自动回复", "公众号菜单", "公众号素材", "公众号图文", "公众号统计", "短信配置", "邮件配置", "站内信配置", "数据脱敏", "敏感词", "地区 & IP 库", "开发环境", "Linux 部署", "Docker 部署", "Jenkins 部署", "HTTPS 证书", "服务监控", "开发规范", "菜单路由", "Icon 图标", "字典数据", "系统组件", "通用方法", "配置读取", "CRUD 组件", "国际化", "IDE 调试", "代码格式化", "开发规范", "菜单路由", "Icon 图标", "字典数据", "系统组件", "通用方法", "配置读取", "【v2.1.0】开发中", "【v2.0.1】2024-03-01", "【v2.0.0】2024-01-26", "【v1.9.0】2023-12-01", "【v1.8.3】2023-10-24"};for (int i = 0; i <urlList.length ; i++) {String s= HttpUtil.get(urlList[i]);File file = FileUtil.file(filePath+i+"."+titleList[i]+".html");FileUtil.writeString(s.replaceAll("<img src=\"/","<img src=\"https://cloud.iocoder.cn/"),file, Charset.forName("UTF-8"));}}}
设置cookie
在JS里
https://cloud.iocoder.cn/assets/js/app.5a8cc3cb.js
const n = "88974ed8-6aff-48ab-a7d1-4af5ffea88bb", e = "cat";function s() {return (Cookies.get(n) || "").indexOf(e) >= 0}Cookies.set("88974ed8-6aff-48ab-a7d1-4af5ffea88bb","cat")