<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>解说文案 - hhs</title>
<link>https://xwean.com/author/2/</link>
<atom:link href="https://xwean.com/feed/author/2/" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description>hhs</description>
<lastBuildDate>Sun, 12 Oct 2025 21:15:51 +0800</lastBuildDate>
<pubDate>Sun, 12 Oct 2025 21:15:51 +0800</pubDate>
<item>
<title>火山引擎 即梦4.0 图片生成 本地API版本 无水印</title>
<link>https://xwean.com/2049.html</link>
<guid>https://xwean.com/2049.html</guid>
<pubDate>Sun, 12 Oct 2025 21:15:51 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[火山引擎 即梦4.0 图片生成嗯！本来可以在网页上直接操作的，但是想了又想，总想在本地搞点事情，但好像事情也没怎么搞好，于是除了个这个玩意↓↓↓优点就是没发现什么优点，反正api是没有水印的，但...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h4>火山引擎 即梦4.0 图片生成</h4><p>嗯！</p><p>本来可以在网页上直接操作的，但是想了又想，总想在本地搞点事情，但好像事情也没怎么搞好，于是除了个这个玩意</p><p>↓↓↓</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122057170.png" alt="image-20251012205755066" title="image-20251012205755066"></p><p>优点就是没发现什么优点，反正api是没有水印的，但是缺点有很多</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122058337.png" alt="image-20251012205852315" title="image-20251012205852315"></p><p>我也真就不明白了 封装之后竟然会这么大</p><p>但毕竟有人说了，不知道什么环境下运行</p><p>所以除了2版</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122059772.png" alt="image-20251012205941748" title="image-20251012205941748"></p><p>第二个勉强能接受</p><hr><p>封装版本，打开就能用</p><p><strong>先说版本1   封装版</strong></p><p>每次封装总是在openai库报错，也就是用deepseek的时候出现了问题</p><p>于是直接<code>auto-py-to-exe</code></p><p>打开软件后</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122109399.png" alt="image-20251012210946335" title="image-20251012210946335"></p><p>先把Key填写进去</p><p>deepseek:</p><p><a href="https://platform.deepseek.com/api_keys">https://platform.deepseek.com/api_keys</a></p><p>直接打开就行</p><p>即梦:<a href="https://www.volcengine.com/experience/ark/?mode=vision&launch=seedream">https://www.volcengine.com/experience/ark/?mode=vision&launch=seedream</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202510122111771.png" alt="image-20251012211104660" title="image-20251012211104660"></p><p>200张免费</p><p>过后每张图0.2元</p><p>完事后一定要测试一下</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122112036.png" alt="image-20251012211200993" title="image-20251012211200993"></p><p>这地方是要上传图片的</p><p>剩下的就是傻瓜操作</p><p>这里可以deepseek来优化提示词</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122113093.png" alt="image-20251012211354060" title="image-20251012211354060"></p><p>(其实用coze的工作流 一样~)</p><p>差不多了就生成图像就行</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122114842.png" alt="image-20251012211453793" title="image-20251012211453793"></p><p>双击可以打开</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122115194.png" alt="image-20251012211519938" title="image-20251012211519938"></p><p>..</p><p><strong>版本2</strong></p><p>安装了python</p><p><img src="http://pic2.xwean.com/typora1/2023/202510122117242.png" alt="image-20251012211713212" title="image-20251012211713212"></p><p>就行</p><p>下载链接</p><p>版本1</p><p>通过网盘分享的文件：即梦4.0封装<br>链接: <a href="https://pan.baidu.com/s/1RTU8udP4eCN1WIRSQzhjMQ?pwd=f8f9">https://pan.baidu.com/s/1RTU8udP4eCN1WIRSQzhjMQ?pwd=f8f9</a> 提取码: f8f9 </p><p>版本2</p><p>通过网盘分享的文件：即梦4.0散装<br>链接: <a href="https://pan.baidu.com/s/19QqlFa3f_ygXdjJXjjWgYA?pwd=cwmk">https://pan.baidu.com/s/19QqlFa3f_ygXdjJXjjWgYA?pwd=cwmk</a> 提取码: cwmk</p>
]]></content:encoded>
<slash:comments>1</slash:comments>
<comments>https://xwean.com/2049.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>笔趣阁TXT下载器(测试版)</title>
<link>https://xwean.com/2045.html</link>
<guid>https://xwean.com/2045.html</guid>
<pubDate>Sun, 03 Aug 2025 20:50:04 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[嗯...可能是我的问题，|´・ω・)ノ 发现笔趣阁有些电子书下载不了~于是找到这款小软件测试过 还可以直接用就行通过网盘分享的文件：笔趣阁下载器.rar链接: https://pan.baidu...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>嗯...</p><p>可能是我的问题，|´・ω・)ノ </p><p>发现笔趣阁有些电子书下载不了~</p><p>于是找到这款小软件</p><p><img src="https://pic2.xwean.com/typecho/2025/08/2374378514.png" alt="2025-08-03T12:43:51.png" title="2025-08-03T12:43:51.png"></p><p>测试过 还可以</p><p></p><p><strong>直接用就行</strong></p><p>通过网盘分享的文件：笔趣阁下载器.rar<br>链接: <a href="https://pan.baidu.com/s/1khe1k4vY0vrSm60H_YC3vg?pwd=jhj5">https://pan.baidu.com/s/1khe1k4vY0vrSm60H_YC3vg?pwd=jhj5</a> 提取码: jhj5 </p><p><img src="https://pic2.xwean.com/typecho/2025/08/2187621083.png" alt="2025-08-03T12:49:04.png" title="2025-08-03T12:49:04.png"></p><p>直接打开这个</p><p><img src="https://pic2.xwean.com/typecho/2025/08/2062179175.png" alt="2025-08-03T12:49:21.png" title="2025-08-03T12:49:21.png"></p><p>然后输入第一张的 文件链接  选择好输出地址就行</p>
]]></content:encoded>
<slash:comments>2</slash:comments>
<comments>https://xwean.com/2045.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>二奢类目算法调整(测试)</title>
<link>https://xwean.com/2040.html</link>
<guid>https://xwean.com/2040.html</guid>
<pubDate>Thu, 03 Apr 2025 21:14:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[流量审核1.机器审核→抓取铭感词汇,进行匹配2.初审→人工复核3.复审→播放量大于10W,有举报,标黄4.三审→播放大于300万→判定优质内容,提示优化内容自然流1.2W 是个门槛,进行评级算法...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>流量审核</h3><p>1.机器审核→抓取铭感词汇,进行匹配</p><p>2.初审→人工复核</p><p>3.复审→播放量大于10W,有举报,标黄</p><p>4.三审→播放大于300万→判定优质内容,提示优化内容</p><p>自然流1.2W 是个门槛,进行评级</p><h3>算法的调整</h3><p>监管方要求,禁止出现信息茧房</p><p>推送机制→兴趣多样性 言外之意,用户多模态抓取推送,多标签混合建模</p><p>女生→二奢</p><p>​    →美妆</p><p>​    →追星</p><p>用户过往在抖音上喜欢的内容,多样性///</p><h3>本地推</h3><p>内容成长快 上dou+</p><p>内容少的 上本地推</p><p>上实物的标准,本地推 抖音小店  平台可以拖则  白号断开交易链路</p><p>报白5个连锁店,或者入住其他连锁品牌</p><p><strong>禁止销售 语境 语意</strong></p><h3>搜索</h3><p>搜索内容和标签进行匹配  包含站外方向</p><p>精准的搜索喜欢,助推视频流量</p><p>作品里面植入产品</p><hr><p><a href="https://95152.douyin.com/">https://95152.douyin.com/</a></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://xwean.com/2040.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>Deepseek 本地部署(成功版)</title>
<link>https://xwean.com/2038.html</link>
<guid>https://xwean.com/2038.html</guid>
<pubDate>Wed, 05 Feb 2025 22:09:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[Deepseek 本地部署(成功版)Error: 1 documents failed toadd.Forbidden access to file:"https://cdn.useanythi...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>Deepseek 本地部署(成功版)</h3><p><img src="http://pic2.xwean.com/typora1/2023/202502052101335.png" alt="image-20250202205157324" title="image-20250202205157324"></p><p>Error: 1 documents failed toadd.<br>Forbidden access to file:"https://cdn.useanything.com/support/models/Xenova/all-MiniLM-L6-v2/tokenizer config.json" 解决办法</p><h3>跟着步骤来 肯定能成功</h3><h4>Ollama部署版本</h4><p>首先打开官网</p><p><a href="https://ollama.com/download">https://ollama.com/download</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101315.png" alt="image-20250202205405868" title="image-20250202205405868"></p><p><strong>直接下载Windows版本</strong></p><p>​    <em>可能有些网速不够快 , 提供下载安装版本</em></p><p>通过网盘分享的文件：OllamaSetup_2.exe<br>链接: <a href="https://pan.baidu.com/s/13cWJZZ4MDbnsYGlfetRRjQ?pwd=2hy2">https://pan.baidu.com/s/13cWJZZ4MDbnsYGlfetRRjQ?pwd=2hy2</a> 提取码: 2hy2 </p><p>下载安装就能用</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101390.png" alt="image-20250202210810876" title="image-20250202210810876"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101350.png" alt="image-20250202210826637" title="image-20250202210826637"></p><p>记住安装位置,到时候可能会用得上</p><p>安装完毕不会有任何提示,但实际上已经安装完毕</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101356.png" alt="image-20250202210935044" title="image-20250202210935044"></p><p>如果觉得C盘放模型会占地方,可以换其他的盘</p><p>先检查一下版本</p><p>win+r</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101353.png" alt="image-20250202211039123" title="image-20250202211039123"></p><p><code>ollama -v</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101337.png" alt="image-20250202211127233" title="image-20250202211127233"></p><p>出现这个表示已经安装成功,此时先不要着急上模型,如果放在C盘 直接安装即可 <strong>首先退出Ollama 再操作</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101359.png" alt="image-20250202211235392" title="image-20250202211235392"></p><p>右键计算机 选择属性</p><p>不知道win10  和 win11是不是一样 但都是进入属性进行设置 </p><p><strong>右键计算机---属性---高级系统设置---环境变量</strong></p><p>如下选择</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101323.png" alt="image-20250202211642672" title="image-20250202211642672"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101341.png" alt="image-20250202211917978" title="image-20250202211917978"></p><p>直接复制<code>OLLAMA_MODELS</code></p><p>下面一行在D盘新建文件夹后直接复制路径</p><p>然后确定--确定--确定 即可</p><p>当一切准备完毕</p><p>回到ollama    <a href="https://ollama.com/download">https://ollama.com/download</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101519.png" alt="image-20250202212301095" title="image-20250202212301095"></p><p>回到deepeek官网 发现深度思考是R1模型</p><p><img src="http://pic2.xwean.com/typora1/2023/202502022124351.png" alt="image-20250202212405317" title="image-20250202212405317"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502022124270.png" alt="image-20250202212431234" title="image-20250202212431234"></p><p>每个模型的大小都不一样 根据自己的显卡来</p><p>4090 可以直接莽32b+</p><p>3060卡 据说14b好像是极限..</p><p><code>ollama run deepseek-r1:14b</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052101673.png" alt="image-20250202213008776" title="image-20250202213008776"></p><p>然后就是漫长的过程...</p><p><em>百度网网盘</em></p><p>通过网盘分享的文件：--ollama---models<br>链接: <a href="https://pan.baidu.com/s/11VX-eDCfJg5h_I_3twcctg?pwd=vgwf">https://pan.baidu.com/s/11VX-eDCfJg5h_I_3twcctg?pwd=vgwf</a> 提取码: vgwf </p><p><img src="http://pic2.xwean.com/typora1/2023/202502052111353.png" alt="image-20250205211135303" title="image-20250205211135303"></p><p>下载好了之后 可以直接放到原始地址,也可以放到变量地址</p><p>原始地址<code>C:\Users\Administrator\.ollama</code>    Users是自己的用户名</p><p>然后 win+r</p><p><code>ollama list</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052115981.png" alt="image-20250205211531946" title="image-20250205211531946"></p><p>尝试启动</p><p><code>ollama run deepseek-r1:14b</code></p><p>出现这个</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052117593.png" alt="image-20250205211737515" title="image-20250205211737515"></p><p>代表启动成功</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052118892.png" alt="image-20250205211826846" title="image-20250205211826846"></p><p>完成</p><p>退出输入 <code>/bye</code></p><p><strong>需要注意的  如果放在机械硬盘里 启动可能稍微慢一点 ~</strong></p><hr><h4>知识库</h4><p>打开刚才下载的文件</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052120167.png" alt="image-20250205212032137" title="image-20250205212032137"></p><p>进行安装</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052121971.png" alt="image-20250205212112942" title="image-20250205212112942"></p><p>安装到哪其实都行 就看你固态够不够大</p><p>首次打开</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052131070.png" alt="image-20250205213159021" title="image-20250205213159021"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052135007.png" alt="image-20250205213514953" title="image-20250205213514953"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052137979.png" alt="999" title="999"></p><p>都完事了 进入到这个界面</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052138755.png" alt="image-20250205213828711" title="image-20250205213828711"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052141359.png" alt="image-20250205214151313" title="image-20250205214151313"></p><p>简单设置一下</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052142293.png" alt="image-20250205214258255" title="image-20250205214258255"></p><p>这个地方</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052143064.png" alt="image-20250205214327009" title="image-20250205214327009"></p><p>再进行简单设置</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052145602.png" alt="image-20250205214547547" title="image-20250205214547547"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052223824.png" alt="image-20250205222323757" title="image-20250205222323757"></p><p>然后</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052223707.png" alt="image-20250205222344644" title="image-20250205222344644"></p><p><img src="http://pic2.xwean.com/typora1/2023/202502052223747.png" alt="image-20250205222356685" title="image-20250205222356685"></p><p>当出现<img src="http://pic2.xwean.com/typora1/2023/202502052302687.png" alt="5eeff2e1a9800f8283ebfa7959a1147" title="5eeff2e1a9800f8283ebfa7959a1147"><br>挂个梯子就好了</p><p><img src="http://pic2.xwean.com/typora1/2023/202502052230948.png" alt="image-20250205223021910" title="image-20250205223021910"></p><p>或者直接把文档扔进去都行</p><hr><p>下课!</p><p><strong>注意 回答的质量完全取决于你知识库的丰富程度</strong></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://xwean.com/2038.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>Lama-Cleaner 本地安装使用教程 Ai去除水印</title>
<link>https://xwean.com/2031.html</link>
<guid>https://xwean.com/2031.html</guid>
<pubDate>Tue, 17 Sep 2024 12:14:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[Lama-Cleaner 本地安装使用教程 Ai去除水印本来可以花钱解决的问题.....但就是想尝试一下免费的科技的意义  似乎是改变生活的...流程开始1需要安装Python去官网下载即可ht...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>Lama-Cleaner 本地安装使用教程 Ai去除水印</h3><p>本来可以花钱解决的问题.....但就是想尝试一下免费的</p><ul><li>科技的意义  似乎是改变生活的...</li></ul><p><strong>流程开始</strong></p><p>1</p><p>需要安装<code>Python</code></p><p>去官网下载即可</p><p><code>https://www.python.org/downloads/windows/</code></p><p>安装时,要选择,就最下面的下√</p><p><code>Add python.exe to PATH</code></p><p>2</p><p>安装<code>pytorch</code></p><p>官网地址  <code>https://pytorch.org/</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171114495.png" alt="image-20240917111447355" title="image-20240917111447355"></p><p>注意一个问题</p><p>如果直接<code>win+R cmd</code>运行的话 会出现???????????  <em>应该是之前安装过python的 会出现这个状态</em></p><p>此时升级一下<code>python</code></p><p><code>python -m pip install --upgrade pip</code></p><p>建议是进入安装目录 在地址栏输入<code>cmd</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171133991.png" alt="image-20240917113333962" title="image-20240917113333962"></p><p>然后等待即可</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171133133.png" alt="image-20240917113356098" title="image-20240917113356098"></p><p>一会....</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171139197.png" alt="image-20240917113844837" title="image-20240917113844837"></p><p>这就安装完毕了</p><p>3</p><p>安装<code>Lama-Cleaner</code></p><p><code>pip install Lama-Cleaner</code></p><p>注意 变量或者路径错误 都会导致错误</p><ul><li><p>出现报错检查</p><ul><li>我的电脑-属性-高级-环境变量</li><li>找到正确的环境变量 - 地址栏打开cmd</li></ul></li></ul><p>升级命令 最高级的就不需要了</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171212158.png" alt="image-20240917121209116" title="image-20240917121209116"></p><p><code>python.exe -m pip install --upgrade pip</code></p><p>4</p><p>运行</p><p>在刚才的<code>cmd</code>里面直接输入</p><p><code>lama-cleaner --model=lama --device=cpu --port=8011</code></p><p>第一次运行 会自动下载东西</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171216740.png" alt="image-20240917121605706" title="image-20240917121605706"></p><p>等到完毕后</p><p>在浏览器输入 <code>http://127.0.0.1:8011/</code></p><p>如图</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171216121.png" alt="image-20240917121654069" title="image-20240917121654069"></p><p><strong>注意一点</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171217328.png" alt="image-20240917121734297" title="image-20240917121734297"></p><p><code>lama-cleaner --model=lama --device=cpu --port=8011</code></p><p>其中的cpu 代表只用cpu进行工作</p><p>如果有N卡 </p><p>建议使用这个命令</p><p><code>lama-cleaner --model=lama --device=cuda --port=8011</code></p><p>然后重新打开即可</p><p>5</p><p>快捷键</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171220506.png" alt="image-20240917122012471" title="image-20240917122012471"></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171220975.png" alt="image-20240917122031937" title="image-20240917122031937"></p><p>如果做局域网</p><p>则需要使用这条命令</p><p><code> lama-cleaner --model=lama --device=cuda --port=8011  --host=0.0.0.0</code></p><p><strong>延伸</strong></p><p>可以部署在自己的服务器上,然后绑定域名 做个收费的项目......  (未测试)</p><p>或者部署在自家电脑上 然后通过隧道服务 巴拉巴拉 进行远程访问..... (测试成功,工程量还行吧,技术稍微有点敏感,不做教程了)</p><p><img src="http://pic2.xwean.com/typora1/2023/202409171224564.png" alt="image-20240917122423528" title="image-20240917122423528"></p><p>在右上角的设置 还可以选择很多模型进行处理</p><p><strong>最后</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202409171227621.png" alt="image-20240917122731518" title="image-20240917122731518"></p><p>效果非常不错!!</p><p><strong>下课</strong></p><p>所以,某个软件你收费那么贵 还用自己的电脑算力跑软件,真会玩!!</p>
]]></content:encoded>
<slash:comments>1</slash:comments>
<comments>https://xwean.com/2031.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>幻剪  混剪神器 图片搜索片段</title>
<link>https://xwean.com/2029.html</link>
<guid>https://xwean.com/2029.html</guid>
<pubDate>Sat, 17 Aug 2024 16:40:41 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[幻剪  混剪神器 图片搜索片段用视频中的图片搜索整个素材中出现的片段跟着操作走 必定会成功!首先下载幻剪内侧地址:最新安装包下载地址：https://www.123pan.com/s/9dgKV...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>幻剪  混剪神器 图片搜索片段</h3><p><strong>用视频中的图片搜索整个素材中出现的片段</strong></p><p>跟着操作走 必定会成功!</p><p>首先下载幻剪</p><p>内侧地址:</p><p>最新安装包下载地址：<br><code>https://www.123pan.com/s/9dgKVv-Cmd0v.html?</code></p><p><strong>提取码:KRlk</strong></p><p>如图</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171612458.png" alt="image-20240817161246297" title="image-20240817161246297"></p><p>--</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171613863.png" alt="image-20240817161321834" title="image-20240817161321834"></p><p><strong>用心不用旧</strong></p><p>安装地址建议选择在 SSD 固态硬盘中  据说速度更快</p><p><code>CPU 建议最低配 i5 7200 +</code></p><p><code>内侧 8G</code></p><p><code>N卡</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171615922.png" alt="image-20240817161505899" title="image-20240817161505899"></p><p>直接打开</p><p><strong>但在打开之前先准备好素材</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171617847.png" alt="image-20240817161716827" title="image-20240817161716827"></p><p>举例说明,,,,</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171618843.png" alt="image-20240817161825786" title="image-20240817161825786"></p><p>登录之后</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171618372.png" alt="image-20240817161848337" title="image-20240817161848337"></p><p>输入邀请码</p><p><code>JiTdkQ</code></p><p><font color="red"><strong>先白嫖几天会员再说</strong></font>~</p><p>一定要注意  这个地方</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171622491.png" alt="image-20240817162226452" title="image-20240817162226452"></p><p>素材时长一定要小于素材库容量</p><p>幻剪 不是按照素材大小决定容量的 而是用素材的时长决定的</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171625727.png" alt="image-20240817162503640" title="image-20240817162503640"></p><p>文件夹或者单个素材直接导入</p><p>完事直接索引就好,期间不需要任何操作  <strong>看完再操作!!! </strong>   <code>看完在操作</code></p><p><code>如果遇到提示下载模型,直接下载就行</code></p><p><strong>如果要提速</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171626343.png" alt="image-20240817162610256" title="image-20240817162610256"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171626331.png" alt="image-20240817162623247" title="image-20240817162623247"></p><p>--</p><p><strong>导出的并发数可以是2  主要是看配置</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171627984.png" alt="image-20240817162747959" title="image-20240817162747959"></p><p>重要的是这个</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171628680.png" alt="image-20240817162821655" title="image-20240817162821655"></p><p>8G内侧 i7cpu 8G显存 这样的及以上配置  建议调到2</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171629548.png" alt="image-20240817162922511" title="image-20240817162922511"></p><p>当所有的东西准备完毕后 </p><p>检查 没有失败就是成功</p><p>发现失败  右键重新索引</p><p><strong>重点!</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171630405.png" alt="image-20240817163048327" title="image-20240817163048327"></p><p><strong>语言一定要选对  要不白扯</strong></p><p><strong>如果有字幕文件,一定要和素材文件同名</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171632157.png" alt="image-20240817163221146" title="image-20240817163221146"></p><p><strong>搜索素材3个方式</strong></p><ul><li>如果有字幕文件最好 速度也是最快  只要搜索相应的字幕 <code>就能出现画面</code></li><li>如果搜索画面  这直接输入关键词 就能根据关键词找到画面</li><li>如果输入图片  (剪贴板 截图粘贴  或者图片地址),也能迅速找到画面</li></ul><p><strong>分开演示</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171637012.png" alt="image-20240817163713934" title="image-20240817163713934"></p><p>搜爆炸  就能在全部已经索引的素材中找到爆炸的场景</p><p>然后选中素材<code>右键</code>导出</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171640570.png" alt="image-20240817164010538" title="image-20240817164010538"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171640525.png" alt="image-20240817164035467" title="image-20240817164035467"></p><p><strong>此时会有人问 为何不批量导出 ?</strong></p><p>答: 当你看到这篇文章的时候,已经支持批量了.如果不支持 下面留言,我跟软件作者单挑去!</p><p><strong>下一步进行图片寻找片段</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171645355.png" alt="image-20240817164546217" title="image-20240817164546217"></p><p>找一个差不多点的</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171646510.png" alt="image-20240817164606242" title="image-20240817164606242"></p><p>就这个吧</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171646905.png" alt="image-20240817164632876" title="image-20240817164632876"></p><p>剪贴板直接复制就行</p><p><code>就是截图 直接Ctrl+V</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171648661.png" alt="image-20240817164816588" title="image-20240817164816588"></p><p>右键导出</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171648432.png" alt="image-20240817164838351" title="image-20240817164838351"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171649154.png" alt="image-20240817164938093" title="image-20240817164938093"></p><p>如果觉得少 </p><p>还可以一直放下翻</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171650938.png" alt="image-20240817165014707" title="image-20240817165014707"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408171650232.png" alt="image-20240817165027059" title="image-20240817165027059"></p><p>下课!!</p><p>交流群↓</p><p><img src="http://pic2.xwean.com/typora1/2023/202408171651396.png" alt="image-20240817165113363" title="image-20240817165113363"></p><p>有问题留言</p><p><strong>有问题直接评论留言</strong></p>
]]></content:encoded>
<slash:comments>2</slash:comments>
<comments>https://xwean.com/2029.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>谷歌浏览器 Edge浏览器 整个网页截图</title>
<link>https://xwean.com/2028.html</link>
<guid>https://xwean.com/2028.html</guid>
<pubDate>Sat, 10 Aug 2024 10:54:14 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[谷歌浏览器 Edge浏览器 整个网页截图2中方法第一种,用自带的命令进行操作谷歌浏览器 和 微软的Edge浏览器 本身的区别不大就用谷歌浏览器做演示例如这种随着往下滑动 永无止境根本到不了头F1...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h3>谷歌浏览器 Edge浏览器 整个网页截图</h3><p><strong>2中方法</strong></p><p>第一种,用自带的命令进行操作</p><p>谷歌浏览器 和 微软的Edge浏览器 本身的区别不大</p><p>就用谷歌浏览器做演示</p><p>例如这种</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101035505.png" alt="image-20240810103522406" title="image-20240810103522406"></p><p>随着往下滑动 永无止境根本到不了头</p><p><code>F12</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101036324.png" alt="image-20240810103632282" title="image-20240810103632282"></p><p>如果不是中文,可以点击右上角的齿轮 更改为中文操作</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101037422.png" alt="image-20240810103714388" title="image-20240810103714388"></p><p><strong>调整语言后,重启浏览器生效</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101040820.png" alt="image-20240810104021793" title="image-20240810104021793"></p><p><code>Ctrl</code>+<code>Shift</code>+<code>P</code></p><p>但有时候快捷键会失灵,直接点击</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101051294.png" alt="image-20240810105113266" title="image-20240810105113266"></p><p>得到如下结果<img src="http://pic2.xwean.com/typora1/2023/202408101051856.png" alt="www.baidu.com_" title="www.baidu.com_"></p><p>整体效果还算可以</p><p><strong>但如果网页上嵌套各种模块 根本无法截图整张</strong></p><p>例如动态数据分析</p><p>用到这个插件</p><ul><li>​    通过百度网盘分享的文件：GoFullPage插件.zip<br>​    链接：<a href="https://pan.baidu.com/s/1XqgS5wk-NGtJCnQBeHX0_w?pwd=ygyj">https://pan.baidu.com/s/1XqgS5wk-NGtJCnQBeHX0_w?pwd=ygyj</a> <br>​    提取码：ygyj</li></ul><p><img src="http://pic2.xwean.com/typora1/2023/202408101057497.png" alt="image-20240810105709468" title="image-20240810105709468"></p><p><strong>安转方法如下</strong></p><p>依次</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101058437.png" alt="image-20240810105831416" title="image-20240810105831416"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101058256.png" alt="image-20240810105849228" title="image-20240810105849228"></p><p>或者直接复制 浏览器打开</p><p><code>chrome://extensions/</code></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101059248.png" alt="image-20240810105928204" title="image-20240810105928204"></p><p>打开开发者模式</p><p>直接将下载好的压缩包扔里面</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101100308.png" alt="image-20240810110004282" title="image-20240810110004282"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101100470.png" alt="image-20240810110021440" title="image-20240810110021440"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101100221.png" alt="image-20240810110056155" title="image-20240810110056155"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101101460.png" alt="image-20240810110114439" title="image-20240810110114439"></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101101275.png" alt="image-20240810110124249" title="image-20240810110124249"></p><p><strong>其实安装不安装都可以</strong></p><p><img src="http://pic2.xwean.com/typora1/2023/202408101102795.png" alt="image-20240810110207769" title="image-20240810110207769"></p><p>出现照相机图标 就OK了</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101102231.png" alt="image-20240810110249124" title="image-20240810110249124"></p><p>针对网页里的嵌套 也可以用</p><p>右上角的设置里面</p><p>可以详细设置</p><p><img src="http://pic2.xwean.com/typora1/2023/202408101104475.png" alt="image-20240810110458366" title="image-20240810110458366"></p><p>下课!</p>
]]></content:encoded>
<slash:comments>1</slash:comments>
<comments>https://xwean.com/2028.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>ChatGPT  发音提取 </title>
<link>https://xwean.com/2026.html</link>
<guid>https://xwean.com/2026.html</guid>
<pubDate>Thu, 04 Jul 2024 22:17:16 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[ChatGPT 发音提取众所周知 GPT的发音不仅声音好,而且还高度拟人化所以为什么不直接下载搞呢?于是....正文如下首先在魔法环境中打开https://chromewebstore.goog...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h4>ChatGPT 发音提取</h4><p>众所周知 GPT的发音不仅声音好,而且还高度拟人化</p><p>所以为什么不直接下载搞呢?</p><p>于是....正文如下</p><p>首先在魔法环境中打开</p><p><a href="https://chromewebstore.google.com/detail/audiotts-simple-text-to-s/lhbdjaomnaobfljmhkmcfhhnihaaangh">https://chromewebstore.google.com/detail/audiotts-simple-text-to-s/lhbdjaomnaobfljmhkmcfhhnihaaangh</a></p><p><img src="http://pic2.xwean.com/typora1/2023/202407042218760.png" alt="image-20240704221811609" title="image-20240704221811609"></p><p><strong>直接点击安装即可,然后关闭浏览器 重新打开就好</strong></p><p>然后</p><p><img src="http://pic2.xwean.com/typora1/2023/202407042220068.png" alt="发音" title="发音"></p><p>直接点击朗读</p><p><img src="http://pic2.xwean.com/typora1/2023/202407042222091.png" alt="image-20240704222201067" title="image-20240704222201067"></p><p>下载的是<code>.acc</code>文件,可以直接使用,也可以转码</p><p>当然,<strong>没有</strong>魔法环境也不怕</p><p>已经打包好文件和秘钥 拿来就能用</p><p>把<code>.crx</code>直接拖入到<code>chrome</code>就能用</p><p><img src="http://pic2.xwean.com/typora1/2023/202407042224643.png" alt="image-20240704222444618" title="image-20240704222444618"></p><p>下载地址:</p><p>链接：<a href="https://pan.baidu.com/s/1IFhNwkXdqdlbzuKcY89rww?pwd=6b8d">https://pan.baidu.com/s/1IFhNwkXdqdlbzuKcY89rww?pwd=6b8d</a> <br>提取码：6b8d </p><p>更新时间为文章时间</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://xwean.com/2026.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>Anthropic 初次评测claude.ai</title>
<link>https://xwean.com/2014.html</link>
<guid>https://xwean.com/2014.html</guid>
<pubDate>Sat, 22 Jun 2024 21:58:00 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[据说这是openai的人搞出来的关于Pro功能，Openai是20美元 商店里买是19.99美元claude的Pro是20美元，商店里还没有测试同样，没有PayPal支付功能，而且币种只有外卡获...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>据说这是openai的人搞出来的</p><p>关于Pro功能，Openai是20美元 商店里买是19.99美元<br>claude的Pro是20美元，商店里还没有测试</p><p><img src="http://pic2.xwean.com/typecho/2024/06/1022568316.png" alt="2024-06-22T13:50:50.png" title="2024-06-22T13:50:50.png"></p><p>同样，没有PayPal支付功能，而且币种只有外卡<br>获得外卡的渠道就不说了</p><p><strong>不过</strong><br>值的说的是 Claude注册 是需要验证手机号的<br>似乎...不支持</p><p>进去之后</p><p><img src="http://pic2.xwean.com/typecho/2024/06/1640672606.png" alt="2024-06-22T13:54:34.png" title="2024-06-22T13:54:34.png"></p><p>输入完名字之后直接开始使用</p><p>于是将之前总结的营销号格式扔了进去，并同时要求写一篇关于吃香蕉通便的营销文案</p><p><img src="http://pic2.xwean.com/typecho/2024/06/1630383217.png" alt="2024-06-22T13:57:32.png" title="2024-06-22T13:57:32.png"><br><strong>这是Claude</strong>生成的文案</p><p><img src="http://pic2.xwean.com/typecho/2024/06/3700216564.png" alt="2024-06-22T13:58:37.png" title="2024-06-22T13:58:37.png"><br><img src="http://pic2.xwean.com/typecho/2024/06/2014209420.png" alt="2024-06-22T13:58:50.png" title="2024-06-22T13:58:50.png"><br><strong>这是GPT-4o</strong>给出的答案</p><p>不难看出，都是在一本正经的胡说八道<br>...</p><p>例如，询问了一下北京今天的天气<br><img src="http://pic2.xwean.com/typecho/2024/06/1807749396.png" alt="2024-06-22T14:00:10.png" title="2024-06-22T14:00:10.png"></p><p><img src="http://pic2.xwean.com/typecho/2024/06/2331873844.png" alt="2024-06-22T14:00:53.png" title="2024-06-22T14:00:53.png"></p><p>至于说哪个更有优势，看自己怎么说吧</p><p><strong>但是</strong><br>基于Openai写出的GPTs，不知道能否直接在Claude上直接使用</p><p><img src="http://pic2.xwean.com/typecho/2024/06/695118830.png" alt="2024-06-22T14:03:00.png" title="2024-06-22T14:03:00.png"><br>打开的官网是这样的<br><a href="https://www.anthropic.com/">https://www.anthropic.com/</a></p><p><strong>最后</strong><br>咱先不说技术上的测试与评价，也不管是基于什么样的模型去延展，或者是什么样的算法<br>总体而言，自己感觉哪个最适合自己才是最好的</p><p>这里没有用3.5去对3.5  因为在Openai上用了很长时间的Pro 上来直接就默认使用更高一级的版本。</p><p>行吧，官网已经放在文章里了，感兴趣的自己去尝试，不过都是Claude写代码厉害.. 还没试过</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://xwean.com/2014.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
<item>
<title>简单的IP查询页面制作（二） </title>
<link>https://xwean.com/2011.html</link>
<guid>https://xwean.com/2011.html</guid>
<pubDate>Tue, 04 Jun 2024 12:06:45 +0800</pubDate>
<dc:creator>hhs</dc:creator>
<description><![CDATA[接上一个文章https://xwean.com/1959.html做个代码备份NGINX 新增代理→nginx.conf        # 新增Node.js应用的反向代理配置        l...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>接上一个文章</p><p><a href="https://xwean.com/1959.html">https://xwean.com/1959.html</a></p><p>做个代码备份</p><p><img src="http://pic2.xwean.com/typecho/2024/06/1409205433.png" alt="2024-06-04T04:05:47.png" title="2024-06-04T04:05:47.png"></p><p><strong>NGINX 新增代理</strong>→nginx.conf</p><pre><code class="lang-conf">
        # 新增Node.js应用的反向代理配置
        location /get-ip-info {
            proxy_pass http://localhost:3000;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection &#039;upgrade&#039;;
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Real-IP $remote_addr;
        }

        location /get-weather {
            proxy_pass http://localhost:3000;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection &#039;upgrade&#039;;
            proxy_set_header Host $host;
            proxy_cache_bypass $http_upgrade;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Real-IP $remote_addr;
        }
    }


</code></pre><p>前端→index.html</p><pre><code class="lang-html">&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;zh-CN&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
    &lt;title&gt;看看天气咋样&lt;/title&gt;
    &lt;style&gt;
        body {
            font-family: &#039;Arial&#039;, sans-serif;
            background-color: #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            flex-direction: column;
        }

        .container {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            width: 300px;
            text-align: center;
            margin-bottom: 20px; /* 与底部文字保持距离 */
        }

        .info-box {
            background-color: #E9ECEF;
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
        }

        .footer {
            color: black; /* 设置底部文字颜色 */
            font-size: 12px; /* 设置底部文字大小 */
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class=&quot;container&quot;&gt;
        &lt;h1&gt;我的天气！&lt;/h1&gt;
        &lt;div id=&quot;ip&quot; class=&quot;info-box&quot;&gt;IP地址：加载中...&lt;/div&gt;
        &lt;div id=&quot;location&quot; class=&quot;info-box&quot;&gt;位置：加载中...&lt;/div&gt;
        &lt;div id=&quot;weather&quot; class=&quot;info-box&quot;&gt;天气：加载中...&lt;/div&gt;
        &lt;div id=&quot;time&quot; class=&quot;info-box&quot;&gt;当前时间：加载中...&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;footer&quot;&gt;
        私人网盘正在开发中....
        ozxuu@outlook.com
    &lt;/div&gt;
    &lt;script&gt;
        // 获取IP和位置信息
        fetch(&#039;/get-ip-info&#039;)
            .then(response =&gt; response.json())
            .then(data =&gt; {
                document.getElementById(&#039;ip&#039;).textContent = `IP地址：${data.ip}`;
                document.getElementById(&#039;location&#039;).textContent = `位置：${data.country} - ${data.city} - ${data.region}`;
                
                // 使用获取到的位置信息请求天气数据
                return fetch(`/get-weather?city=${data.city}`);
            })
            .then(response =&gt; response.json())
            .then(data =&gt; {
                document.getElementById(&#039;weather&#039;).textContent = `天气：${data.weather[0].main}, 温度：${data.main.temp}°C`;
            })
            .catch(error =&gt; console.error(&#039;获取信息失败&#039;, error));

        // 显示当前时间
        document.getElementById(&#039;time&#039;).textContent = `当前时间：${new Date().toLocaleTimeString()}`;
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre><p>后端→index.js</p><pre><code class="lang-JavaScript">
require(&#039;dotenv&#039;).config(); // 加载环境变量

const express = require(&#039;express&#039;);
const fetch = require(&#039;node-fetch&#039;);
const morgan = require(&#039;morgan&#039;);
const fs = require(&#039;fs&#039;);
const path = require(&#039;path&#039;);

const app = express();
const PORT = process.env.PORT || 3000;

// 创建一个写入流，并将日志写入到指定文件中
const accessLogStream = fs.createWriteStream(path.join(__dirname, &#039;access.log&#039;), { flags: &#039;a&#039; });

// 设置morgan日志记录中间件，将日志输出到文件中
app.use(morgan(&#039;combined&#039;, { stream: accessLogStream }));

// 获取IP地址信息的路由
app.get(&#039;/get-ip-info&#039;, async (req, res) =&gt; {
    const ipinfoToken = process.env.IPINFO_TOKEN;
    // 获取请求者的IP地址
    const visitorIp = req.headers[&#039;x-forwarded-for&#039;]?.split(&#039;,&#039;).shift() || req.connection.remoteAddress;

    if (!visitorIp) {
        res.status(500).json({ error: &#039;无法获取位置IP&#039; });
        return;
    }

    try {
        // 调用IPinfo API获取访问者的IP地址信息
        const ipinfoResponse = await fetch(`https://ipinfo.io/${visitorIp}?token=${ipinfoToken}`);
        const ipinfoData = await ipinfoResponse.json();

        // 如果返回的数据不包含IP信息，则停止并返回错误
        if (!ipinfoData || !ipinfoData.ip) {
            res.status(500).json({ error: &#039;无法获取位置IP&#039; });
            return;
        }

        res.json(ipinfoData); // 将访问者的IP地址信息发送给前端
    } catch (error) {
        console.error(&#039;Error fetching IP info:&#039;, error);
        res.status(500).json({ error: &#039;Server Error&#039; });
    }
});

// 获取天气信息的路由
app.get(&#039;/get-weather&#039;, async (req, res) =&gt; {
    const openWeatherMapApiKey = process.env.OPENWEATHERMAP_API_KEY;
    const city = req.query.city; // 从查询参数中获取城市名称

    if (!city) {
        res.status(400).json({ error: &#039;城市名称是必需的&#039; });
        return;
    }

    try {
        // 根据城市名称获取天气信息
        const weatherResponse = await fetch(`https://api.openweathermap.org/data/2.5/weather?q=${city}&amp;appid=${openWeatherMapApiKey}&amp;units=metric`);
        const weatherData = await weatherResponse.json();

        // 如果API返回了错误
        if (weatherData.cod != 200) {
            res.status(weatherData.cod).json({ error: weatherData.message });
            return;
        }

        res.json(weatherData); // 将天气信息发送给前端
    } catch (error) {
        console.error(&#039;Error fetching weather data:&#039;, error);
        res.status(500).json({ error: &#039;Server Error&#039; });
    }
});

app.listen(PORT, () =&gt; {
    console.log(`Server running on port ${PORT}`);
});

</code></pre><p>其他→package.json</p><pre><code class="lang-JavaScrip">
{
  &quot;name&quot;: &quot;myapp&quot;,
  &quot;version&quot;: &quot;1.0.0&quot;,
  &quot;description&quot;: &quot;&quot;,
  &quot;main&quot;: &quot;index.js&quot;,
  &quot;scripts&quot;: {
    &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
  },
  &quot;keywords&quot;: [],
  &quot;author&quot;: &quot;&quot;,
  &quot;license&quot;: &quot;ISC&quot;,
  &quot;dependencies&quot;: {
    &quot;dotenv&quot;: &quot;^16.4.5&quot;,
    &quot;express&quot;: &quot;^4.18.3&quot;,
    &quot;morgan&quot;: &quot;^1.10.0&quot;,
    &quot;node-fetch&quot;: &quot;^2.6.1&quot;
  }
}
</code></pre><p><strong>全部地址---百度网盘---我的资源---简单IP地址看天气---压缩包</strong></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://xwean.com/2011.html#comments</comments>
<wfw:commentRss>https://xwean.com/feed/author/2/</wfw:commentRss>
</item>
</channel>
</rss>