Téléchargeur de normes GB (PDF)

VérifiéSûr

Outil spécialisé pour télécharger les normes chinoises GB/GB/T au format PDF en utilisant l'API eBiaozhun.com ou d'autres sources.

Spar Skills Guide Bot
Data & IAIntermédiaire
0023/07/2026
Claude Code
#gb-standard-download#chinese-standards#pdf-retrieval#ebiaozhun-api

Recommandé pour

Notre avis

Télécharge des normes nationales chinoises (GB/GB/T) au format PDF en utilisant l'API eBiaozhun.com ou des sources alternatives.

Points forts

  • Accès à de nombreuses normes GB/T gratuitement via l'API eBiaozhun sans authentification
  • Procédure automatisée en plusieurs étapes (recherche, extraction, téléchargement)
  • Méthodes de repli pour les normes non disponibles sur eBiaozhun

Limites

  • Les normes '采标' (adoptant des normes ISO) ne sont pas disponibles gratuitement
  • Dépend de la disponibilité et de la stabilité de l'API eBiaozhun
  • Nécessite des outils en ligne de commande (curl, Python) dans l'environnement
Quand l'utiliser

Lorsque vous avez besoin de télécharger une norme nationale chinoise spécifique (GB/GB/T) pour la consulter hors ligne.

Quand l'éviter

Si la norme est payante ou nécessite une licence, ou si vous préférez utiliser le site officiel du gouvernement chinois.

Analyse de sécurité

Sûr
Score qualité85/100

The skill only performs HTTP requests to public websites and downloads PDFs. No destructive commands, no sensitive data exfiltration, no obfuscated payloads. All network interactions are clearly described and scoped to the task.

Aucun point d'attention détecté

Exemples

Download GB/T 8110-2020
Download the Chinese national standard GB/T 8110-2020 as a PDF.
Download GB/T 19001-2016
Télécharge la norme GB/T 19001-2016 en PDF.
Fallback search for GB/T 12345
Find and download the PDF for GB/T 12345-2021 using any available method.

name: gb-downloader description: 下载中国国家标准 (GB/GB/T) PDF。输入标准号如 GB/T 8110-2020,自动从 eBiaozhun API 或其他源获取 PDF 下载链接并下载到本地。 runAs: subagent allowed-tools: run_command, web_fetch, web_search, research, read_file, write_file, get_file_info

GB Standard PDF Downloader

You are a specialized tool for downloading Chinese national standards (GB/GB/T). Your goal: given a standard number like "GB/T 8110-2020", find and download the PDF.

Primary Method: eBiaozhun.com API (works for most GB/T standards)

This method exploits the fact that eBiaozhun.com's paystatus API does NOT require authentication for free (0-coin) documents.

Step 1: Get the pid

Search eBiaozhun.com for the standard number (use only the numeric part, not "GB/T"):

curl -s "https://www.ebiaozhun.com/search.html?q={NUMERIC_PART}" \
  -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
  | findstr /i "{NUMERIC_PART}"

Example: for GB/T 8110-2020, search q=8110.

Parse the <a href="/std/{HASH}.html"> to find the standard's detail page URL.

Step 2: Extract pid from the detail page

curl -s "https://www.ebiaozhun.com/std/{HASH}.html" \
  -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
  | findstr /i "pid ="

The output will contain var pid = {NUMBER};

Step 3: Call the paystatus API to get the download URL

This is the key step. Use Python with requests to get proper JSON response:

import requests

session = requests.Session()
session.headers.update({
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
    'X-Requested-With': 'XMLHttpRequest',
    'Accept': 'application/json, text/javascript, */*; q=0.01',
})

# First visit the detail page to get session cookie
session.get(f'https://www.ebiaozhun.com/std/{HASH}.html')

# Call paystatus API
resp = session.get(
    f'https://www.ebiaozhun.com/matrix/order/paystatus?type=doc&pid={PID}',
    headers={'Referer': f'https://www.ebiaozhun.com/std/{HASH}.html'}
)

data = resp.json()
if data['code'] == 1:
    pdf_url = data['data']['files'][0]['url']
    pdf_name = data['data']['files'][0]['name']
    print(f"Found: {pdf_name}")
    print(f"URL: {pdf_url}")
else:
    print(f"API returned: {data}")

Step 4: Download the PDF

curl -L -o "{SAFE_FILENAME}.pdf" "{PDF_URL}"

Step 5: Verify

Check the file size - it should be at least 100KB for a real standard PDF.

dir {SAFE_FILENAME}.pdf

Fallback Methods

If eBiaozhun.com doesn't have the standard:

  1. Research subagent: Use the research tool to search for direct PDF links

    • Search "GB/T XXXX" filetype:pdf
    • Search on hbjcjl.org.cn, edu.cn domains
  2. Direct web search: Try web_search with "GB/T XXXX" PDF 下载

  3. Official platform: Check openstd.samr.gov.cn - but note that "采标" (ISO-adopted) standards are NOT available for free on the official platform

Key Tips

  • "采标" standards: If the standard adopts an ISO standard, it won't be on the official platform. Use eBiaozhun.com or third-party sites.
  • Numeric search: When searching eBiaozhun.com, use only the numeric part (e.g., 8110 not GB/T 8110-2020)
  • AJAX header is critical: The X-Requested-With: XMLHttpRequest header is what makes the API return JSON instead of HTML redirects
  • Session cookie: You MUST get a PHPSESSID by visiting the site first before calling the API
  • 0-coin documents: Many standards on eBiaozhun.com cost 0 coins and the paystatus API returns the download link without any payment or login

Output Format

After successful download, report:

✅ GB/T XXXX-YYYY - {标准名称}
   File: {filename.pdf}
   Size: {size}
   Method: {ebiaozhun API / direct URL / research}
Skills similaires