{"id":1168954,"date":"2025-01-15T16:04:37","date_gmt":"2025-01-15T08:04:37","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1168954.html"},"modified":"2025-01-15T16:04:39","modified_gmt":"2025-01-15T08:04:39","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8python%e4%b8%8b%e8%bd%bd%e6%96%87%e7%8c%ae","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1168954.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528python\u4e0b\u8f7d\u6587\u732e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26070048\/97d163d9-6d90-4958-a73d-b85e96f85889.webp\" alt=\"\u5982\u4f55\u4f7f\u7528python\u4e0b\u8f7d\u6587\u732e\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u4e0b\u8f7d\u6587\u732e\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5305\u62ec\u4f7f\u7528\u722c\u866b\u6280\u672f\u3001API\u63a5\u53e3\u3001\u4ee5\u53ca\u7b2c\u4e09\u65b9\u5e93\u3002<\/strong>\u5176\u4e2d\uff0c\u5229\u7528\u722c\u866b\u6280\u672f\u53ef\u4ee5\u81ea\u7531\u5730\u4ece\u5404\u79cd\u6587\u732e\u7f51\u7ad9\u6293\u53d6\u6570\u636e\uff0c\u4f7f\u7528API\u63a5\u53e3\u53ef\u4ee5\u66f4\u9ad8\u6548\u548c\u89c4\u8303\u5730\u83b7\u53d6\u6570\u636e\uff0c\u800c\u7b2c\u4e09\u65b9\u5e93\u5219\u80fd\u7b80\u5316\u64cd\u4f5c\u8fc7\u7a0b\u3002<strong>\u5728\u5b9e\u9645\u64cd\u4f5c\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u76ee\u6807\u7f51\u7ad9\u7684\u8bbf\u95ee\u89c4\u5219\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u901a\u8fc7\u722c\u866b\u6280\u672f\uff0c\u9996\u5148\u9700\u8981\u89e3\u6790\u76ee\u6807\u7f51\u9875\u7684\u7ed3\u6784\uff0c\u627e\u5230\u6587\u732e\u4e0b\u8f7d\u94fe\u63a5\uff0c\u7136\u540e\u7f16\u5199\u722c\u866b\u7a0b\u5e8f\u8fdb\u884c\u6293\u53d6\u3002\u4f7f\u7528API\u63a5\u53e3\u5219\u9700\u8981\u6ce8\u518c\u83b7\u53d6API\u5bc6\u94a5\uff0c\u5e76\u6309\u7167API\u6587\u6863\u8fdb\u884c\u8c03\u7528\u3002\u7b2c\u4e09\u65b9\u5e93\u5982<code>scholarly<\/code>\u53ef\u4ee5\u7b80\u5316\u8fd9\u4e9b\u64cd\u4f5c\uff0c\u76f4\u63a5\u63d0\u4f9b\u6587\u732e\u641c\u7d22\u548c\u4e0b\u8f7d\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u5c55\u5f00\u5982\u4f55\u901a\u8fc7API\u63a5\u53e3\u83b7\u53d6\u6587\u732e\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001API\u63a5\u53e3\u83b7\u53d6\u6587\u732e<\/h3>\n<\/p>\n<p><p>\u8bb8\u591a\u5b66\u672f\u6570\u636e\u5e93\u548c\u6587\u732e\u7ba1\u7406\u5e73\u53f0\u90fd\u63d0\u4f9b\u4e86API\u63a5\u53e3\uff0c\u4f8b\u5982PubMed\u3001ArXiv\u3001IEEE Xplore\u7b49\u3002\u901a\u8fc7API\u63a5\u53e3\u83b7\u53d6\u6587\u732e\u6570\u636e\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u63d0\u9ad8\u6548\u7387\uff0c\u8fd8\u80fd\u786e\u4fdd\u6570\u636e\u7684\u51c6\u786e\u6027\u548c\u5408\u6cd5\u6027\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u6ce8\u518c\u83b7\u53d6API\u5bc6\u94a5<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9009\u62e9\u4e00\u4e2a\u63d0\u4f9bAPI\u63a5\u53e3\u7684\u5b66\u672f\u6570\u636e\u5e93\uff0c\u6ce8\u518c\u5e76\u83b7\u53d6API\u5bc6\u94a5\u3002\u4ee5PubMed\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u901a\u8fc7\u5176\u5b98\u65b9\u7f51\u7ad9\u8fdb\u884c\u6ce8\u518c\u5e76\u7533\u8bf7API\u5bc6\u94a5\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u7406\u89e3API\u6587\u6863<\/h4>\n<\/p>\n<p><p>\u6bcf\u4e2aAPI\u63a5\u53e3\u90fd\u6709\u8be6\u7ec6\u7684\u6587\u6863\uff0c\u4ecb\u7ecd\u4e86\u5982\u4f55\u8fdb\u884c\u8bf7\u6c42\u3001\u8fd4\u56de\u7684\u6570\u636e\u683c\u5f0f\u3001\u53ef\u7528\u7684\u53c2\u6570\u7b49\u3002\u9605\u8bfb\u8fd9\u4e9b\u6587\u6863\u662f\u4f7f\u7528API\u7684\u5173\u952e\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u7f16\u5199Python\u4ee3\u7801\u8fdb\u884cAPI\u8c03\u7528<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528PubMed API\u8fdb\u884c\u6587\u732e\u641c\u7d22\u548c\u4e0b\u8f7d\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>def search_pubmed(query, max_results=10):<\/p>\n<p>    base_url = &quot;https:\/\/api.ncbi.nlm.nih.gov\/lit\/ctxp\/v1\/pubmed\/&quot;<\/p>\n<p>    params = {<\/p>\n<p>        &quot;term&quot;: query,<\/p>\n<p>        &quot;retmax&quot;: max_results,<\/p>\n<p>        &quot;api_key&quot;: &quot;YOUR_API_KEY&quot;<\/p>\n<p>    }<\/p>\n<p>    response = requests.get(base_url, params=params)<\/p>\n<p>    if response.status_code == 200:<\/p>\n<p>        data = response.json()<\/p>\n<p>        return data<\/p>\n<p>    else:<\/p>\n<p>        print(f&quot;Error: {response.status_code}&quot;)<\/p>\n<p>        return None<\/p>\n<p>def download_pubmed_article(pmid):<\/p>\n<p>    base_url = f&quot;https:\/\/api.ncbi.nlm.nih.gov\/lit\/ctxp\/v1\/pubmed\/{pmid}\/fulltext&quot;<\/p>\n<p>    response = requests.get(base_url)<\/p>\n<p>    if response.status_code == 200:<\/p>\n<p>        with open(f&quot;{pmid}.pdf&quot;, &quot;wb&quot;) as file:<\/p>\n<p>            file.write(response.content)<\/p>\n<p>        print(f&quot;Article {pmid} downloaded successfully.&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(f&quot;Error: {response.status_code}&quot;)<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>query = &quot;machine learning&quot;<\/p>\n<p>results = search_pubmed(query)<\/p>\n<p>if results:<\/p>\n<p>    for article in results[&quot;articles&quot;]:<\/p>\n<p>        pmid = article[&quot;pmid&quot;]<\/p>\n<p>        download_pubmed_article(pmid)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u722c\u866b\u6280\u672f\u83b7\u53d6\u6587\u732e<\/h3>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u60c5\u51b5\u4e0b\uff0c\u76ee\u6807\u7f51\u7ad9\u6ca1\u6709\u63d0\u4f9bAPI\u63a5\u53e3\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u722c\u866b\u6280\u672f\u76f4\u63a5\u6293\u53d6\u7f51\u9875\u5185\u5bb9\u3002\u722c\u866b\u6280\u672f\u6d89\u53ca\u5230\u7f51\u9875\u89e3\u6790\u3001\u8bf7\u6c42\u5904\u7406\u548c\u6570\u636e\u5b58\u50a8\u7b49\u591a\u4e2a\u65b9\u9762\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u89e3\u6790\u7f51\u9875\u7ed3\u6784<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\u67e5\u770b\u76ee\u6807\u7f51\u9875\u7684\u7ed3\u6784\uff0c\u627e\u5230\u6587\u732e\u7684\u4e0b\u8f7d\u94fe\u63a5\u6216\u76f8\u5173\u4fe1\u606f\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u7f16\u5199\u722c\u866b\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7684<code>requests<\/code>\u5e93\u8fdb\u884c\u7f51\u9875\u8bf7\u6c42\uff0c\u4f7f\u7528<code>BeautifulSoup<\/code>\u8fdb\u884cHTML\u89e3\u6790\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u722c\u866b\u793a\u4f8b\uff0c\u6293\u53d6\u67d0\u5b66\u672f\u7f51\u7ad9\u7684\u6587\u732e\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>from bs4 import BeautifulSoup<\/p>\n<p>def get_article_links(query, max_results=10):<\/p>\n<p>    base_url = &quot;https:\/\/example.com\/search&quot;<\/p>\n<p>    params = {<\/p>\n<p>        &quot;q&quot;: query,<\/p>\n<p>        &quot;num&quot;: max_results<\/p>\n<p>    }<\/p>\n<p>    response = requests.get(base_url, params=params)<\/p>\n<p>    if response.status_code == 200:<\/p>\n<p>        soup = BeautifulSoup(response.content, &quot;html.parser&quot;)<\/p>\n<p>        links = [a[&quot;href&quot;] for a in soup.select(&quot;a.article-link&quot;)]<\/p>\n<p>        return links<\/p>\n<p>    else:<\/p>\n<p>        print(f&quot;Error: {response.status_code}&quot;)<\/p>\n<p>        return None<\/p>\n<p>def download_article(url):<\/p>\n<p>    response = requests.get(url)<\/p>\n<p>    if response.status_code == 200:<\/p>\n<p>        with open(&quot;article.pdf&quot;, &quot;wb&quot;) as file:<\/p>\n<p>            file.write(response.content)<\/p>\n<p>        print(&quot;Article downloaded successfully.&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(f&quot;Error: {response.status_code}&quot;)<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>query = &quot;machine learning&quot;<\/p>\n<p>article_links = get_article_links(query)<\/p>\n<p>if article_links:<\/p>\n<p>    for link in article_links:<\/p>\n<p>        download_article(link)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/h3>\n<\/p>\n<p><p>\u7b2c\u4e09\u65b9\u5e93\u5982<code>scholarly<\/code>\u3001<code>Pybliometrics<\/code>\u7b49\uff0c\u53ef\u4ee5\u7b80\u5316\u83b7\u53d6\u6587\u732e\u7684\u8fc7\u7a0b\u3002\u8fd9\u4e9b\u5e93\u5c01\u88c5\u4e86\u5e38\u7528\u7684\u64cd\u4f5c\uff0c\u7528\u6237\u53ea\u9700\u8981\u8c03\u7528\u76f8\u5e94\u7684\u65b9\u6cd5\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><h4>1\u3001<code>scholarly<\/code>\u5e93<\/h4>\n<\/p>\n<p><p><code>scholarly<\/code>\u662f\u4e00\u4e2a\u7528\u4e8e\u4eceGoogle Scholar\u83b7\u53d6\u5b66\u672f\u6587\u732e\u7684\u5e93\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528<code>scholarly<\/code>\u641c\u7d22\u6587\u732e\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from scholarly import scholarly<\/p>\n<p>def search_scholarly(query, max_results=10):<\/p>\n<p>    search_query = scholarly.search_pubs(query)<\/p>\n<p>    results = []<\/p>\n<p>    for i in range(max_results):<\/p>\n<p>        try:<\/p>\n<p>            pub = next(search_query)<\/p>\n<p>            results.append(pub)<\/p>\n<p>        except StopIteration:<\/p>\n<p>            break<\/p>\n<p>    return results<\/p>\n<p>def download_scholarly_article(pub):<\/p>\n<p>    # \u6b64\u5904\u5047\u8bbe\u6587\u732e\u6709\u53ef\u4e0b\u8f7d\u7684PDF\u94fe\u63a5<\/p>\n<p>    pdf_url = pub.get(&#39;eprint_url&#39;, None)<\/p>\n<p>    if pdf_url:<\/p>\n<p>        response = requests.get(pdf_url)<\/p>\n<p>        if response.status_code == 200:<\/p>\n<p>            with open(f&quot;{pub[&#39;title&#39;]}.pdf&quot;, &quot;wb&quot;) as file:<\/p>\n<p>                file.write(response.content)<\/p>\n<p>            print(f&quot;Article &#39;{pub[&#39;title&#39;]}&#39; downloaded successfully.&quot;)<\/p>\n<p>        else:<\/p>\n<p>            print(f&quot;Error: {response.status_code}&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;No downloadable PDF found.&quot;)<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>query = &quot;machine learning&quot;<\/p>\n<p>results = search_scholarly(query)<\/p>\n<p>for pub in results:<\/p>\n<p>    download_scholarly_article(pub)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001<code>Pybliometrics<\/code>\u5e93<\/h4>\n<\/p>\n<p><p><code>Pybliometrics<\/code>\u662f\u4e00\u4e2a\u7528\u4e8e\u4eceScopus\u83b7\u53d6\u6587\u732e\u6570\u636e\u7684\u5e93\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528<code>Pybliometrics<\/code>\u641c\u7d22\u6587\u732e\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pybliometrics.scopus import ScopusSearch<\/p>\n<p>def search_scopus(query, max_results=10):<\/p>\n<p>    s = ScopusSearch(query, count=max_results)<\/p>\n<p>    return s.results<\/p>\n<p>def download_scopus_article(eid):<\/p>\n<p>    # Scopus API\u4e0d\u63d0\u4f9b\u76f4\u63a5\u4e0b\u8f7dPDF\u7684\u529f\u80fd\uff0c\u9700\u8981\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u83b7\u53d6\u6587\u732e\u5168\u6587<\/p>\n<p>    pass<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>query = &quot;machine learning&quot;<\/p>\n<p>results = search_scopus(query)<\/p>\n<p>for result in results:<\/p>\n<p>    print(result)<\/p>\n<p>    # download_scopus_article(result.eid)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>\u4f7f\u7528Python\u4e0b\u8f7d\u6587\u732e\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u6548\u7387\u548c\u51c6\u786e\u6027\u3002<\/strong>\u901a\u8fc7API\u63a5\u53e3\u83b7\u53d6\u6587\u732e\u6570\u636e\u662f\u4e00\u4e2a\u9ad8\u6548\u4e14\u89c4\u8303\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u6709API\u652f\u6301\u7684\u5b66\u672f\u6570\u636e\u5e93\u3002\u722c\u866b\u6280\u672f\u5219\u53ef\u4ee5\u7528\u4e8e\u6ca1\u6709API\u652f\u6301\u7684\u7f51\u7ad9\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u9075\u5b88\u76ee\u6807\u7f51\u7ad9\u7684\u4f7f\u7528\u6761\u6b3e\u3002\u7b2c\u4e09\u65b9\u5e93\u5982<code>scholarly<\/code>\u548c<code>Pybliometrics<\/code>\u5219\u7b80\u5316\u4e86\u64cd\u4f5c\u8fc7\u7a0b\uff0c\u9002\u5408\u5feb\u901f\u83b7\u53d6\u6587\u732e\u6570\u636e\u3002\u65e0\u8bba\u4f7f\u7528\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u9700\u8981\u638c\u63e1\u57fa\u672c\u7684Python\u7f16\u7a0b\u548c\u7f51\u7edc\u8bf7\u6c42\u6280\u672f\uff0c\u4ee5\u4fbf\u80fd\u591f\u7075\u6d3b\u5e94\u5bf9\u4e0d\u540c\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u4e0b\u8f7d\u6587\u732e\u7684\u57fa\u672c\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u8981\u4f7f\u7528Python\u4e0b\u8f7d\u6587\u732e\uff0c\u9996\u5148\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u4f8b\u5982requests\u6216BeautifulSoup\uff0c\u6765\u8fdb\u884c\u7f51\u7edc\u8bf7\u6c42\u548c\u6570\u636e\u89e3\u6790\u3002\u63a5\u7740\uff0c\u786e\u5b9a\u76ee\u6807\u6587\u732e\u7684URL\uff0c\u5e76\u4f7f\u7528requests\u5e93\u53d1\u9001\u8bf7\u6c42\u83b7\u53d6\u6587\u732e\u7684HTML\u5185\u5bb9\u3002\u968f\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7BeautifulSoup\u89e3\u6790HTML\uff0c\u63d0\u53d6\u51fa\u9700\u8981\u7684\u6587\u732e\u94fe\u63a5\u3002\u6700\u540e\uff0c\u4f7f\u7528requests\u5e93\u4e0b\u8f7d\u6587\u732e\u5e76\u4fdd\u5b58\u5230\u672c\u5730\u3002<\/p>\n<p><strong>\u5728\u4f7f\u7528Python\u4e0b\u8f7d\u6587\u732e\u65f6\uff0c\u5982\u4f55\u5904\u7406\u53cd\u722c\u866b\u673a\u5236\uff1f<\/strong><br \/>\u53cd\u722c\u866b\u673a\u5236\u5e38\u5e38\u4f1a\u963b\u6b62\u81ea\u52a8\u5316\u4e0b\u8f7d\u3002\u4e3a\u4e86\u5e94\u5bf9\u8fd9\u4e00\u6311\u6218\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u6a21\u62df\u4eba\u7c7b\u7528\u6237\u7684\u884c\u4e3a\uff0c\u6bd4\u5982\u8bbe\u7f6e\u8bf7\u6c42\u5934\uff08User-Agent\uff09\uff0c\u4f7f\u7528\u968f\u673a\u7684\u65f6\u95f4\u95f4\u9694\u8bf7\u6c42\uff0c\u6216\u8005\u91c7\u7528\u4ee3\u7406IP\u6765\u9690\u85cf\u771f\u5b9e\u7684\u8bf7\u6c42\u6765\u6e90\u3002\u6b64\u5916\uff0c\u9002\u5f53\u63a7\u5236\u8bf7\u6c42\u9891\u7387\uff0c\u907f\u514d\u5bf9\u76ee\u6807\u7f51\u7ad9\u9020\u6210\u8fc7\u5927\u538b\u529b\uff0c\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u73b0\u6210\u7684Python\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u4e0b\u8f7d\u6587\u732e\uff1f<\/strong><br \/>\u6709\u4e00\u4e9b\u4e13\u95e8\u7528\u4e8e\u6587\u732e\u4e0b\u8f7d\u7684Python\u5e93\u53ef\u4ee5\u7b80\u5316\u8fd9\u4e00\u8fc7\u7a0b\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>scholarly<\/code>\u5e93\u53ef\u4ee5\u76f4\u63a5\u4eceGoogle Scholar\u83b7\u53d6\u5b66\u672f\u6587\u732e\uff0c<code>PyPDF2<\/code>\u5e93\u53ef\u4ee5\u7528\u6765\u5904\u7406PDF\u6587\u4ef6\u3002\u6b64\u5916\uff0c<code>arxiv<\/code>\u5e93\u63d0\u4f9b\u4e86\u4ecearXiv\u5e73\u53f0\u4e0b\u8f7d\u8bba\u6587\u7684\u529f\u80fd\u3002\u5229\u7528\u8fd9\u4e9b\u5e93\uff0c\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u5b8c\u6210\u6587\u732e\u4e0b\u8f7d\u4efb\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u4e0b\u8f7d\u6587\u732e\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5305\u62ec\u4f7f\u7528\u722c\u866b\u6280\u672f\u3001API\u63a5\u53e3\u3001\u4ee5\u53ca\u7b2c\u4e09\u65b9\u5e93\u3002\u5176\u4e2d\uff0c\u5229\u7528\u722c\u866b\u6280\u672f\u53ef\u4ee5\u81ea\u7531\u5730 [&hellip;]","protected":false},"author":3,"featured_media":1168961,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1168954"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1168954"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1168954\/revisions"}],"predecessor-version":[{"id":1168963,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1168954\/revisions\/1168963"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1168961"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1168954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1168954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1168954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}