LinuxDo 新帖推送
192 subscribers
254K photos
318K links
Download Telegram
标题: 明天上海国补第五轮可以摇号了,希望抽中
作者: #liuweiqing
板块: #前沿快讯
编号: 1666865
帖子: https://linux.do/t/topic/1666865
时间: 2026-02-27 20:12:35
摘要:
2.28零点报名




不怎么玩游戏,主要送外卖,买荣耀X70,1390元可以吗?


开发调优



[Screenshot_2026-02-24-10-18-11-549_com.xunmeng.pinduoduo]
主要看中的是大电池,还有防水功能。



我能不能买手机就靠国补了
标题: 基于的MinerU的API调用封装为ClaudeCode中的subagents的建议?
作者: #ExplorerQvQ
板块: #搞七捻三
编号: 1666868
帖子: https://linux.do/t/topic/1666868
时间: 2026-02-27 20:14:20
摘要:
这个问题来自这里。



在claudecode的工作流中创建专门用于PDF文件解析的subagents是否有推荐?

mineru 支持api调用,写个脚本,交个agent调用


这是个好主意,于是在投喂了「MinerU」和「ClaudeCode关于subangent」的文档之后,大语言模型给了我如下的方案…
处于用户目录\.claude\agents\下:
脚本文件mineru_tool.py
import os
import sys
import time
import requests
import zipfile
import io

API_TOKEN = "YOUR_MINERU_TOKEN_HERE"
# 虽然把API暴露在代码中不好,但是我的实际需求中并不需要开源,而且API有效期只有14天,我懒o(* ̄▽ ̄*)ブ
BASE_URL = "https://mineru.net/api/v4"
HEADERS = {
"Content-Type": "application/json",
"Authorization": f"Bearer {API_TOKEN}"
}

def parse_file(file_path):
if not os.path.exists(file_path):
print(f"Error: File not found at {file_path}")
sys.exit(1)

file_name = os.path.basename(file_path)

batch_url = f"{BASE_URL}/file-urls/batch"
payload = {
"files": [{"name": file_name, "data_id": f"local_{int(time.time())}"}],
"model_version": "vlm"
}

try:
resp = requests.post(batch_url, headers=HEADERS, json=payload)
if resp.status_code != 200 or resp.json().get('code') != 0:
print(f"Error requesting upload URL: {resp.text}")
sys.exit(1)

data = resp.json()['data']
batch_id = data['batch_id']
upload_url = data['file_urls'][0]

with open(file_path, 'rb') as f:
put_resp = requests.put(upload_url, data=f)
if put_resp.status_code != 200:
print(f"Error uploading file: {put_resp.status_code}")
sys.exit(1)

result_url = f"{BASE_URL}/extract-results/batch/{batch_id}"
zip_download_url = None

for _ in range(60):
status_resp = requests.get(result_url, headers=HEADERS)
if status_resp.status_code == 200:
res_data = status_resp.json()['data']
file_result = res_data['extract_result'][0]
state = file_result['state']

if state == 'done':
zip_download_url = file_result['full_zip_url']
break
elif state == 'failed':
print(f"Parsing failed: {file_result.get('err_msg')}")
sys.exit(1)
else:
time.sleep(2)
else:
time.sleep(2)

if not zip_download_url:
print("Timeout waiting for parsing result.")
sys.exit(1)

zip_resp = requests.get(zip_download_url)
output_dir = os.path.join(os.getcwd(), f"mineru_output_{batch_id}")
os.makedirs(output_dir, exist_ok=True)

with zipfile.ZipFile(io.BytesIO(zip_resp.content)) as z:
z.extractall(output_dir)

md_file_path = None
for root, dirs, files in os.walk(output_dir):
for file in files:
if file.endswith('.md'):
md_file_path = os.path.join(root, file)
break

if md_file_path:
print(f"RESULT_PATH: {os.path.abspath(md_file_path)}")
else:
print("Error: No markdown file found in result.")
sys.exit(1)

except Exception as e:
print(f"Exception occurred: {str(e)}")
sys.exit(1)

if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: python mineru_tool.py <file_path>")
sys.exit(1)
parse_file(sys.argv[1])


Subagents文件 mineru.md
---
name: mineru
description: Portable Agent that parses local PDF/DOCX/Images into Markdown using the MinerU API and a bundled python script.
tools: Bash, Read
model: sonnet
---

You are a portable document parsing specialist using the MinerU engine.

Your workflow is:

1. **Locate File**: Identify the local file path provided by the user.
2. **Run Bundled Script**: Execute the python script located in the user's agent directory.
*
标题: 抽一个阿里 coding plan
作者: #liu juntao
板块: #国产替代
编号: 1666874
帖子: https://linux.do/t/topic/1666874
时间: 2026-02-27 20:16:48
摘要:
买了个阿里百炼的Coding Plan,想尝尝鲜,但是发现根本用不着,所以别浪费,抽个奖送给佬友们用
标题: 米哈游回应员工意外离世:不存在春节加班,网传 3 万元抚慰金为不实信息
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #前沿快讯
编号: 1666881
帖子: https://linux.do/t/topic/1666881
时间: 2026-02-27 20:18:13
摘要:
米哈游回应员工意外离世:不存在春节加班,网传 3 万元抚慰金为不实信息 - IT之家
标题: 高端的黑客,往往使用最简单的攻击方式
作者: #Ben2008
板块: #搞七捻三
编号: 1666889
帖子: https://linux.do/t/topic/1666889
时间: 2026-02-27 20:19:59
摘要:
标题: 英伟达NIM的GLM5好像寄掉了
作者: #玲珑
板块: #前沿快讯
编号: 1666894
帖子: https://linux.do/t/topic/1666894
时间: 2026-02-27 20:21:07
摘要:
刚刚想用来接cc试一下的,4.7可以,5一直不通。
开了个新key也是
标题: 【慢讯】机构邮箱注册arXiv也需要邀请码?
作者: #Yu Luo
板块: #前沿快讯
编号: 1666907
帖子: https://linux.do/t/topic/1666907
时间: 2026-02-27 20:26:08
摘要:
原文地址(2026年1月21日更新):
作者注意:更新的推荐政策 – arXiv 博客 — Attention Authors: updated endorsement policy – arXiv blog

众嗦粥汁,以前注册arXiv如果是用的edu机构邮箱,那么网站是自动给予endorsement的(即edu邮箱具有豁免权),但近期由于人工智能产生的大量低质量、非科学投稿,arXiv收紧了政策,未来的注册要么edu邮箱+在arXiv已经发表过文章,要么寻求个人推荐。
arXiv账号也要变得值钱了?
标题: 这个apply.build好像是个免费容器,有佬友用过吗
作者: #zhaopaicai611
板块: #搞七捻三
编号: 1666912
帖子: https://linux.do/t/topic/1666912
时间: 2026-02-27 20:29:26
摘要:
有佬友用过没,能用的话我也注册个,别的地方看到的,看描述好像免费
标题: 佬,云端的openclaw,怎么能账号登录网站不?
作者: #twomonkeys
板块: #搞七捻三
编号: 1666919
帖子: https://linux.do/t/topic/1666919
时间: 2026-02-27 20:30:24
摘要:
是不是都是无头服务器啊?
能登录账号干活不?
标题: 面向ai编程是否会毁掉一个程序员?
作者: #xiaomiller
板块: #搞七捻三
编号: 1666927
帖子: https://linux.do/t/topic/1666927
时间: 2026-02-27 20:34:14
摘要:
自从前端学会了ai,好像什么都在让ai做,然后现在做项目,基本都在陪他在改bug,去年好几次周末,全组人陪他加班。今年更过分了,看他改个bug,再简单的bug也问ai,然后等个半个小时才改完一个bug
标题: GLM Coding Plan 体验卡(共 7 张)
作者: #nullptr
板块: #福利羊毛
编号: 1666931
帖子: https://linux.do/t/topic/1666931
时间: 2026-02-27 20:34:54
摘要:
我在使用GLM Coding Plan,数小时内完成过去需要数周的开发工作,赠送你1张7天AI Coding体验卡,一起来用吧:智谱AI开放平台
标题: 关于无法获得第一次邮件回复的徽章这件事
作者: #Siunaldo777
板块: #搞七捻三
编号: 1666932
帖子: https://linux.do/t/topic/1666932
时间: 2026-02-27 20:35:08
摘要:
用手机gmail和网页版gmail都尝试通过邮件回复帖子,甚至换绑了一次邮箱号再进行测试,仍无法获得这个徽章。有佬友说会不会发勋章的job逻辑判定出错了?有这个可能吗

https://linux.do/t/topic/1632956/17?u=siunaldo777
标题: 大佬们帮我看看 这个板子 怎么刷点歌机程序
作者: #NeoJ
板块: #搞七捻三
编号: 1666936
帖子: https://linux.do/t/topic/1666936
时间: 2026-02-27 20:36:19
摘要:
这个板子 怎么刷成免费的 点歌程序
标题: v2rayn怎么了??
作者: #neiloumou
板块: #搞七捻三
编号: 1666943
帖子: https://linux.do/t/topic/1666943
时间: 2026-02-27 20:38:57
摘要:
不知道是鸡的问题还是软件的问题,旧版本和最新的版本都是有延迟但无法测速,无法测速的节点也可以正常使用,现在就跟开盲盒一样,无法测速得一个一个节点测试,很麻烦。。。ak的jp鸡,是不是被打了。
标题: Codex多了一个5.3-Codex-Spark的单独额度?
作者: #mrbook
板块: #搞七捻三
编号: 1666953
帖子: https://linux.do/t/topic/1666953
时间: 2026-02-27 20:40:13
摘要:
刚刚查看codex额度时,发现多了一个GPT-5.3-Codex-Spark的单独额度,但是模型列表里面没有,这是为什么?
标题: 翻出来一个 E3 16G 小主机,有没有说法,拿来干嘛?
作者: #calendar
板块: #搞七捻三
编号: 1666956
帖子: https://linux.do/t/topic/1666956
时间: 2026-02-27 20:41:23
摘要:
现在打算装个 openclaw 先,应该是没有显示器给它了
标题: 感觉codex反代的api在cc中好傻啊
作者: #xxx
板块: #搞七捻三
编号: 1666958
帖子: https://linux.do/t/topic/1666958
时间: 2026-02-27 20:41:53
摘要:
跟直接用claude opus差的不是一点
标题: 衡水的AI监测系统
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #搞七捻三
编号: 1666959
帖子: https://linux.do/t/topic/1666959
时间: 2026-02-27 20:42:40
摘要:
图片来自网络
标题: antigravity历史对话丢失
作者: #kirby
板块: #开发调优
编号: 1666964
帖子: https://linux.do/t/topic/1666964
时间: 2026-02-27 20:44:13
摘要:
更新过后在历史对话界面只能看到几个对话 我原本应该有十几个对话的 而且能看到的几个历史对话时间都在两周前 直接在反重力ui里面尝试询问这个问题 也是回答我本地都有这些内容 就是应用本身读取不到 有没有经历过的老哥教教如何解决