Abstract Searcher
Automatically fetch and add abstracts to BibTeX entries.
Usage
Given a .bib file, this skill will:
- 1. Parse each BibTeX entry
- Search for the abstract using multiple sources:
- arXiv API (for arXiv papers)
- Semantic Scholar API
- CrossRef API
- OpenAlex API
- 3. If APIs fail: Use browser automation to search Google Scholar
- Add
abstract={...} to each entry - Return the complete modified .bib file
Quick Start
CODEBLOCK0
API Sources (No keys required)
- 1. arXiv API: INLINECODE1
- Semantic Scholar: INLINECODE2
- CrossRef: INLINECODE3
- OpenAlex: INLINECODE4
Browser Fallback (IMPORTANT!)
When APIs fail to find an abstract, use Chrome browser relay like a real person:
Step 1: Attach Chrome tab
CODEBLOCK1
Step 2: Open Google Scholar and search
CODEBLOCK2
Step 3: Click the result
CODEBLOCK3
Step 4: Extract abstract from the page
- - ScienceDirect: Look for "Abstract" section in snapshot
- ACL Anthology: Abstract is directly visible at top
- Springer/Wiley: May need to click "Abstract" to expand
- PubMed: Abstract is usually visible
Step 5: Copy and format for BibTeX
CODEBLOCK4
Tips:
- - Use
profile=chrome to use real Chrome with your login sessions - Google Scholar rarely blocks real Chrome browsers
- ScienceDirect/IEEE may need institutional login (your Chrome has it)
- Always verify the paper title matches before copying abstract!
Notes
- - Rate limiting: 2 seconds between API requests
- Browser fallback should find almost all papers
- Abstracts are cleaned (newlines removed, escaped for BibTeX)
- Always verify the abstract matches the correct paper!
摘要检索器
自动获取并添加摘要至BibTeX条目。
用法
给定一个.bib文件,该技能将:
- 1. 解析每个BibTeX条目
- 使用多个来源搜索摘要:
- arXiv API(针对arXiv论文)
- Semantic Scholar API
- CrossRef API
- OpenAlex API
- 3. 若API失败:使用浏览器自动化搜索Google Scholar
- 为每个条目添加abstract={...}
- 返回完整的修改后.bib文件
快速开始
bash
处理bib文件(基于API)
python3 {baseDir}/scripts/add_abstracts.py input.bib > output.bib
API来源(无需密钥)
- 1. arXiv API:http://export.arxiv.org/api/query?search_query=...
- Semantic Scholar:https://api.semanticscholar.org/graph/v1/paper/search?query=...
- CrossRef:https://api.crossref.org/works?query.title=...
- OpenAlex:https://api.openalex.org/works?search=...
浏览器回退方案(重要!)
当API无法找到摘要时,像真人一样使用Chrome浏览器中继:
步骤1:附加Chrome标签页
检查标签页是否已附加
browser action=tabs profile=chrome
若无标签页,请用户点击Clawdbot Browser Relay工具栏图标
或使用mac-control技能自动点击
步骤2:打开Google Scholar并搜索
browser action=open profile=chrome targetUrl=https://scholar.google.com
browser action=snapshot profile=chrome
在搜索框中输入论文标题
browser action=act profile=chrome request={kind:type,ref:搜索框引用,text:此处输入论文标题}
browser action=act profile=chrome request={kind:press,key:Enter}
browser action=snapshot profile=chrome
步骤3:点击结果
在结果中找到论文,点击打开
browser action=act profile=chrome request={kind:click,ref:论文标题链接引用}
browser action=snapshot profile=chrome
步骤4:从页面提取摘要
- - ScienceDirect:在快照中查找摘要部分
- ACL Anthology:摘要直接显示在顶部
- Springer/Wiley:可能需要点击摘要展开
- PubMed:摘要通常可见
步骤5:复制并格式化为BibTeX
从快照中获取摘要文本
清理:移除换行符,转义特殊字符
添加到bib条目:abstract={...},
提示:
- - 使用profile=chrome以登录会话使用真实Chrome
- Google Scholar很少屏蔽真实Chrome浏览器
- ScienceDirect/IEEE可能需要机构登录(你的Chrome已具备)
- 复制摘要前务必验证论文标题是否匹配!
注意事项
- - 速率限制:API请求间隔2秒
- 浏览器回退方案应能找到几乎所有论文
- 摘要经过清理(移除换行符,转义BibTeX特殊字符)
- 务必验证摘要与正确论文匹配!