用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills --skill nber-working-papers-api命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | nber-working-papers-api |
| description | Access NBER working papers and economic research datasets |
| metadata | {"openclaw":{"emoji":"📈","category":"domains","subcategory":"economics","keywords":["NBER","working papers","economics research","macroeconomics","economic policy","recession dating"],"source":"https://www.nber.org/"}} |
The National Bureau of Economic Research (NBER) is the leading U.S. economics research organization, publishing 1,200+ working papers annually by top economists. NBER papers are among the most cited in economics. The website provides structured access to working papers, researcher profiles, and macroeconomic datasets. Free metadata access; some full text requires subscription.
# Latest working papers feed
curl "https://www.nber.org/papers.rss"
# Papers by program
curl "https://www.nber.org/programs/ef/papers.rss" # Economic Fluctuations
curl "https://www.nber.org/programs/ls/papers.rss" # Labor Studies
curl "https://www.nber.org/programs/io/papers.rss" # Industrial Organization
# Search via NBER website (HTML scraping needed)
curl "https://www.nber.org/api/v1/working_page_listing/contentType/working_paper/?page=1&perPage=20&q=inflation+expectations"
# Get specific paper metadata
curl "https://www.nber.org/api/v1/working_page_listing/contentType/working_paper/?page=1&perPage=1&q=w28104"
# Macroeconomic history data
# Available at: https://data.nber.org/
# Business cycle dates
curl "https://data.nber.org/data/cycles/business_cycle_dates.json"
# CPS labor data extracts
# https://data.nber.org/cps/
| Code | Program | Focus |
|---|---|---|
ef | Economic Fluctuations and Growth | Macro, business cycles |
ls | Labor Studies | Employment, wages |
io | Industrial Organization | Markets, competition |
pe | Public Economics | Taxation, spending |
he | Health Economics | Healthcare markets |
de | Development Economics | Developing countries |
if | International Finance | Exchange rates, capital flows |
it | International Trade | Trade policy |
me | Monetary Economics | Central banking |
cf | Corporate Finance | Firm finance |
ap | Asset Pricing | Financial markets |
ed | Education | Education economics |
ag | Aging | Demographics |
ch | Children | Child welfare |
le | Law and Economics | Legal institutions |
env | Environment and Energy | Environmental policy |
pol | Political Economy | Political institutions |
import requests
from xml.etree import ElementTree
def get_latest_papers(program: str = None,
count: int = 20) -> list:
"""Get latest NBER working papers via RSS."""
if program:
url = f"https://www.nber.org/programs/{program}/papers.rss"
else:
url = "https://www.nber.org/papers.rss"
resp = requests.get(url, timeout=30)
resp.raise_for_status()
root = ElementTree.fromstring(resp.content)
papers = []
for item in root.findall(".//item")[:count]:
papers.append({
"title": item.findtext("title", ""),
"link": item.findtext("link", ""),
"description": item.findtext("description", "")[:300],
"pub_date": item.findtext("pubDate", ""),
})
return papers
def search_papers(query: str, page: int = 1,
per_page: int = 20) -> list:
"""Search NBER working papers."""
resp = requests.get(
"https://www.nber.org/api/v1/working_page_listing/"
,
params={: query, : page, : per_page},
timeout=,
)
resp.raise_for_status()
data = resp.json()
results = []
item data.get(, []):
results.append({
: item.get(),
: item.get(, ),
: item.get(, ),
: item.get(, ),
: ,
: item.get(, )[:],
: item.get(, []),
})
results
() -> :
resp = requests.get(
,
timeout=,
)
resp.raise_for_status()
resp.json()
papers = get_latest_papers(program=, count=)
p papers:
()
()
results = search_papers()
r results:
()
()
cycles = get_business_cycle_dates()
c cycles[-:]:
()
| Dataset | Description |
|---|---|
| Business Cycle Dates | Official US recession start/end dates |
| CPS Extracts | Current Population Survey labor data |
| Macrohistory Database | 150 years of macro indicators |
| Patent Data | Patent citation and classification |
| Trade Data | Bilateral trade statistics |