{"id":1084420,"date":"2025-01-08T13:07:06","date_gmt":"2025-01-08T05:07:06","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1084420.html"},"modified":"2025-01-08T13:07:08","modified_gmt":"2025-01-08T05:07:08","slug":"python%e5%a6%82%e4%bd%95%e6%9c%8b%e5%8f%8b%e5%9c%88%e8%87%aa%e5%8a%a8%e7%82%b9%e8%b5%9e-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1084420.html","title":{"rendered":"python\u5982\u4f55\u670b\u53cb\u5708\u81ea\u52a8\u70b9\u8d5e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194807\/b0700c21-4d63-4d2e-aea8-bbcb66f5d495.webp\" alt=\"python\u5982\u4f55\u670b\u53cb\u5708\u81ea\u52a8\u70b9\u8d5e\" \/><\/p>\n<p><p> <strong>\u4e00\u3001Python\u5b9e\u73b0\u670b\u53cb\u5708\u81ea\u52a8\u70b9\u8d5e\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Python\u7684Selenium\u5e93\u6a21\u62df\u6d4f\u89c8\u5668\u64cd\u4f5c\u3001\u4f7f\u7528Appium\u8fdb\u884c\u79fb\u52a8\u7aef\u81ea\u52a8\u5316\u3001\u4f7f\u7528\u5fae\u4fe1\u7684Web API<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7684Selenium\u5e93\u6a21\u62df\u6d4f\u89c8\u5668\u64cd\u4f5c\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u8fd9\u4e2a\u5e93\u53ef\u4ee5\u63a7\u5236\u6d4f\u89c8\u5668\u6267\u884c\u5404\u79cd\u64cd\u4f5c\uff0c\u6bd4\u5982\u767b\u5f55\u5fae\u4fe1\u7f51\u9875\u7248\uff0c\u627e\u5230\u670b\u53cb\u5708\u7684\u70b9\u8d5e\u6309\u94ae\u5e76\u70b9\u51fb\u3002<strong>\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5b89\u88c5Selenium\u5e93\u3001\u914d\u7f6ewebdriver\u3001\u7f16\u5199\u811a\u672c\u5b9e\u73b0\u81ea\u52a8\u70b9\u8d5e\u3002<\/strong>\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u79cd\u65b9\u6cd5\u7684\u5b9e\u73b0\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b89\u88c5Selenium\u5e93\u548c\u914d\u7f6ewebdriver<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5Selenium\u5e93\uff0c\u8fd9\u662f\u4e00\u4e2a\u7528\u4e8eWeb\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u5de5\u5177\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install selenium<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u4e00\u4e2awebdriver\u6765\u63a7\u5236\u6d4f\u89c8\u5668\u3002\u6211\u4eec\u4ee5Chrome\u6d4f\u89c8\u5668\u4e3a\u4f8b\uff0c\u9700\u8981\u4e0b\u8f7dChromeDriver\uff0c\u5e76\u5c06\u5176\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684PATH\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u7f16\u5199\u81ea\u52a8\u70b9\u8d5e\u811a\u672c<\/h3>\n<\/p>\n<ol>\n<li><strong>\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\u548c\u521d\u59cb\u5316webdriver<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">from selenium import webdriver<\/p>\n<p>from selenium.webdriver.common.by import By<\/p>\n<p>from selenium.webdriver.common.keys import Keys<\/p>\n<p>import time<\/p>\n<h2><strong>\u521d\u59cb\u5316webdriver<\/strong><\/h2>\n<p>driver = webdriver.Chrome()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u767b\u5f55\u5fae\u4fe1\u7f51\u9875\u7248<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># \u6253\u5f00\u5fae\u4fe1\u7f51\u9875\u7248<\/p>\n<p>driver.get(&quot;https:\/\/wx.qq.com\/&quot;)<\/p>\n<h2><strong>\u7b49\u5f85\u7528\u6237\u626b\u7801\u767b\u5f55<\/strong><\/h2>\n<p>input(&quot;\u8bf7\u626b\u63cf\u4e8c\u7ef4\u7801\u767b\u5f55\u5fae\u4fe1\u540e\u6309\u56de\u8f66\u952e\u7ee7\u7eed...&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u8fdb\u5165\u670b\u53cb\u5708\u9875\u9762<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># \u6a21\u62df\u70b9\u51fb\u8fdb\u5165\u670b\u53cb\u5708<\/p>\n<h2><strong>\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u627e\u5230\u670b\u53cb\u5708\u7684\u5165\u53e3\u5143\u7d20<\/strong><\/h2>\n<p>friend_circle = driver.find_element(By.XPATH, &#39;\/\/*[@id=&quot;\u4e00\u4e9b\u5177\u4f53\u7684\u5143\u7d20\u8def\u5f84&quot;]&#39;)<\/p>\n<p>friend_circle.click()<\/p>\n<p>time.sleep(3)  # \u7b49\u5f85\u9875\u9762\u52a0\u8f7d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u627e\u5230\u5e76\u70b9\u51fb\u70b9\u8d5e\u6309\u94ae<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u6240\u6709\u670b\u53cb\u5708\u52a8\u6001<\/p>\n<p>posts = driver.find_elements(By.CSS_SELECTOR, &#39;.\u670b\u53cb\u5708\u52a8\u6001\u7684CSS\u9009\u62e9\u5668&#39;)<\/p>\n<p>for post in posts:<\/p>\n<p>    try:<\/p>\n<p>        # \u627e\u5230\u70b9\u8d5e\u6309\u94ae\u5e76\u70b9\u51fb<\/p>\n<p>        like_button = post.find_element(By.CSS_SELECTOR, &#39;.\u70b9\u8d5e\u6309\u94ae\u7684CSS\u9009\u62e9\u5668&#39;)<\/p>\n<p>        like_button.click()<\/p>\n<p>        time.sleep(1)  # \u4e3a\u4e86\u9632\u6b62\u64cd\u4f5c\u8fc7\u5feb\uff0c\u7a0d\u4f5c\u5ef6\u8fdf<\/p>\n<p>    except Exception as e:<\/p>\n<p>        print(f&quot;\u70b9\u8d5e\u5931\u8d25: {e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<ol>\n<li><strong>\u53cd\u722c\u866b\u673a\u5236<\/strong><\/li>\n<\/ol>\n<p><p>\u5fae\u4fe1\u7f51\u9875\u7248\u6709\u4e00\u5b9a\u7684\u53cd\u722c\u866b\u673a\u5236\uff0c\u9891\u7e41\u7684\u81ea\u52a8\u5316\u64cd\u4f5c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8d26\u6237\u88ab\u5c01\u7981\u3002\u56e0\u6b64\u5728\u5b9e\u73b0\u81ea\u52a8\u5316\u65f6\u9700\u8981\u6ce8\u610f\u64cd\u4f5c\u9891\u7387\uff0c\u5c3d\u91cf\u6a21\u62df\u4eba\u7c7b\u7684\u884c\u4e3a\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u9875\u9762\u5143\u7d20\u53d8\u5316<\/strong><\/li>\n<\/ol>\n<p><p>\u5fae\u4fe1\u7f51\u9875\u7248\u7684\u9875\u9762\u5143\u7d20\u53ef\u80fd\u4f1a\u4e0d\u5b9a\u671f\u53d8\u5316\uff0c\u4f7f\u7528XPath\u6216CSS Selector\u65f6\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f7f\u7528Appium\u8fdb\u884c\u79fb\u52a8\u7aef\u81ea\u52a8\u5316<\/strong><\/li>\n<\/ol>\n<p><p>\u9664\u4e86\u4f7f\u7528Selenium\u6a21\u62df\u6d4f\u89c8\u5668\u64cd\u4f5c\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528Appium\u8fdb\u884c\u79fb\u52a8\u7aef\u81ea\u52a8\u5316\u3002Appium\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5de5\u5177\uff0c\u652f\u6301iOS\u548cAndroid\u5e94\u7528\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u3002\u901a\u8fc7Appium\u53ef\u4ee5\u63a7\u5236\u624b\u673a\u5fae\u4fe1APP\u8fdb\u884c\u81ea\u52a8\u70b9\u8d5e\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528Appium\u8fdb\u884c\u79fb\u52a8\u7aef\u81ea\u52a8\u5316<\/h3>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5Appium<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u901a\u8fc7npm\u5b89\u88c5Appium\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">npm install -g appium<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u914d\u7f6eAppium<\/strong><\/li>\n<\/ol>\n<p><p>\u4e0b\u8f7d\u5e76\u5b89\u88c5Appium Desktop\uff0c\u5e76\u542f\u52a8Appium Server\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\n<p><strong>\u7f16\u5199\u81ea\u52a8\u70b9\u8d5e\u811a\u672c<\/strong><\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\u548c\u521d\u59cb\u5316Appium<\/strong><\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">from appium import webdriver<\/p>\n<p>import time<\/p>\n<p>desired_caps = {<\/p>\n<p>    &#39;platformName&#39;: &#39;Android&#39;,<\/p>\n<p>    &#39;platformVersion&#39;: &#39;\u4f60\u7684\u5b89\u5353\u7248\u672c&#39;,<\/p>\n<p>    &#39;deviceName&#39;: &#39;\u4f60\u7684\u8bbe\u5907\u540d\u79f0&#39;,<\/p>\n<p>    &#39;appPackage&#39;: &#39;com.tencent.mm&#39;,<\/p>\n<p>    &#39;appActivity&#39;: &#39;.ui.LauncherUI&#39;,<\/p>\n<p>    &#39;noReset&#39;: True<\/p>\n<p>}<\/p>\n<h2><strong>\u521d\u59cb\u5316Appium<\/strong><\/h2>\n<p>driver = webdriver.Remote(&#39;http:\/\/localhost:4723\/wd\/hub&#39;, desired_caps)<\/p>\n<p>time.sleep(10)  # \u7b49\u5f85\u5fae\u4fe1\u542f\u52a8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8fdb\u5165\u670b\u53cb\u5708\u9875\u9762<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># \u6a21\u62df\u70b9\u51fb\u8fdb\u5165\u670b\u53cb\u5708<\/p>\n<h2><strong>\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u627e\u5230\u670b\u53cb\u5708\u7684\u5165\u53e3\u5143\u7d20<\/strong><\/h2>\n<p>friend_circle = driver.find_element_by_xpath(&#39;\/\/*[@id=&quot;\u4e00\u4e9b\u5177\u4f53\u7684\u5143\u7d20\u8def\u5f84&quot;]&#39;)<\/p>\n<p>friend_circle.click()<\/p>\n<p>time.sleep(3)  # \u7b49\u5f85\u9875\u9762\u52a0\u8f7d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u627e\u5230\u5e76\u70b9\u51fb\u70b9\u8d5e\u6309\u94ae<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u6240\u6709\u670b\u53cb\u5708\u52a8\u6001<\/p>\n<p>posts = driver.find_elements_by_xpath(&#39;\/\/*[@id=&quot;\u670b\u53cb\u5708\u52a8\u6001\u7684\u5143\u7d20\u8def\u5f84&quot;]&#39;)<\/p>\n<p>for post in posts:<\/p>\n<p>    try:<\/p>\n<p>        # \u627e\u5230\u70b9\u8d5e\u6309\u94ae\u5e76\u70b9\u51fb<\/p>\n<p>        like_button = post.find_element_by_xpath(&#39;\/\/*[@id=&quot;\u70b9\u8d5e\u6309\u94ae\u7684\u5143\u7d20\u8def\u5f84&quot;]&#39;)<\/p>\n<p>        like_button.click()<\/p>\n<p>        time.sleep(1)  # \u4e3a\u4e86\u9632\u6b62\u64cd\u4f5c\u8fc7\u5feb\uff0c\u7a0d\u4f5c\u5ef6\u8fdf<\/p>\n<p>    except Exception as e:<\/p>\n<p>        print(f&quot;\u70b9\u8d5e\u5931\u8d25: {e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528\u5fae\u4fe1\u7684Web API<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4ee5\u4e0a\u4e24\u79cd\u65b9\u6cd5\uff0c\u8fd8\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u5fae\u4fe1\u7684Web API\u8fdb\u884c\u81ea\u52a8\u70b9\u8d5e\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u53ef\u80fd\u6d89\u53ca\u5230\u53cd\u5411\u5de5\u7a0b\u548c\u534f\u8bae\u5206\u6790\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u6280\u672f\u6311\u6218\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u83b7\u53d6\u5fae\u4fe1Web API\u7684\u8bf7\u6c42\u53c2\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u6293\u5305\u5de5\u5177\uff08\u5982Fiddler\u3001Charles\u7b49\uff09\u5206\u6790\u5fae\u4fe1\u7f51\u9875\u7248\u7684\u8bf7\u6c42\uff0c\u627e\u5230\u70b9\u8d5e\u64cd\u4f5c\u7684API\u63a5\u53e3\u53ca\u5176\u8bf7\u6c42\u53c2\u6570\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528Python\u53d1\u9001API\u8bf7\u6c42<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528Python\u7684requests\u5e93\u53d1\u9001API\u8bf7\u6c42\uff0c\u5b9e\u73b0\u81ea\u52a8\u70b9\u8d5e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>url = &#39;\u5fae\u4fe1\u70b9\u8d5eAPI\u7684URL&#39;<\/p>\n<p>headers = {<\/p>\n<p>    &#39;User-Agent&#39;: &#39;\u4f60\u7684User-Agent&#39;,<\/p>\n<p>    &#39;Cookie&#39;: &#39;\u4f60\u7684Cookie&#39;<\/p>\n<p>}<\/p>\n<p>data = {<\/p>\n<p>    &#39;\u53c2\u65701&#39;: &#39;\u503c1&#39;,<\/p>\n<p>    &#39;\u53c2\u65702&#39;: &#39;\u503c2&#39;,<\/p>\n<p>    # \u6839\u636e\u5b9e\u9645\u60c5\u51b5\u586b\u5199\u8bf7\u6c42\u53c2\u6570<\/p>\n<p>}<\/p>\n<p>response = requests.post(url, headers=headers, data=data)<\/p>\n<p>if response.status_code == 200:<\/p>\n<p>    print(&quot;\u70b9\u8d5e\u6210\u529f&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(f&quot;\u70b9\u8d5e\u5931\u8d25: {response.status_code}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u4f7f\u7528Python\u5bf9\u5fae\u4fe1\u670b\u53cb\u5708\u8fdb\u884c\u81ea\u52a8\u70b9\u8d5e\u64cd\u4f5c\u3002<strong>\u4f7f\u7528Selenium\u6a21\u62df\u6d4f\u89c8\u5668\u64cd\u4f5c\u3001\u4f7f\u7528Appium\u8fdb\u884c\u79fb\u52a8\u7aef\u81ea\u52a8\u5316\u3001\u4f7f\u7528\u5fae\u4fe1\u7684Web API<\/strong>\u90fd\u662f\u53ef\u884c\u7684\u65b9\u6cd5\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u81ea\u52a8\u5316\u64cd\u4f5c\u5b58\u5728\u4e00\u5b9a\u98ce\u9669\uff0c\u53ef\u80fd\u4f1a\u8fdd\u53cd\u5fae\u4fe1\u7684\u4f7f\u7528\u6761\u6b3e\uff0c\u56e0\u6b64\u5728\u5b9e\u65bd\u65f6\u9700\u8c28\u614e\u64cd\u4f5c\uff0c\u907f\u514d\u9891\u7e41\u64cd\u4f5c\u5bfc\u81f4\u8d26\u6237\u88ab\u5c01\u7981\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u6210\u529f\u5b9e\u73b0\u81ea\u52a8\u70b9\u8d5e\u529f\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u81ea\u52a8\u70b9\u8d5e\u670b\u53cb\u5708\u7684\u5e16\u5b50\uff1f<\/strong><br \/>\u8981\u4f7f\u7528Python\u5b9e\u73b0\u81ea\u52a8\u70b9\u8d5e\u670b\u53cb\u5708\u7684\u529f\u80fd\uff0c\u901a\u5e38\u9700\u8981\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\u548c\u63a5\u53e3\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u50cf<code>Selenium<\/code>\u8fd9\u6837\u7684\u5e93\u6765\u6a21\u62df\u6d4f\u89c8\u5668\u884c\u4e3a\uff0c\u81ea\u52a8\u767b\u5f55\u5e76\u70b9\u8d5e\u3002\u4e0d\u8fc7\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u79cd\u505a\u6cd5\u53ef\u80fd\u8fdd\u53cd\u793e\u4ea4\u5e73\u53f0\u7684\u4f7f\u7528\u6761\u6b3e\uff0c\u4f7f\u7528\u65f6\u9700\u8c28\u614e\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u81ea\u52a8\u70b9\u8d5e\u9700\u8981\u54ea\u4e9b\u5de5\u5177\u548c\u5e93\uff1f<\/strong><br \/>\u5b9e\u73b0\u81ea\u52a8\u70b9\u8d5e\u529f\u80fd\u901a\u5e38\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5e93\uff0c\u6bd4\u5982<code>Selenium<\/code>\u7528\u4e8e\u6d4f\u89c8\u5668\u81ea\u52a8\u5316\uff0c<code>requests<\/code>\u7528\u4e8e\u4e0eAPI\u8fdb\u884c\u4ea4\u4e92\u3002\u5982\u679c\u9700\u8981\u5904\u7406\u56fe\u50cf\u9a8c\u8bc1\u7801\uff0c\u53ef\u80fd\u8fd8\u9700\u8981\u56fe\u50cf\u5904\u7406\u5e93\u5982<code>Pillow<\/code>\u3002\u786e\u4fdd\u5728\u4f60\u7684\u73af\u5883\u4e2d\u6b63\u786e\u5b89\u88c5\u8fd9\u4e9b\u5e93\u3002<\/p>\n<p><strong>\u81ea\u52a8\u70b9\u8d5e\u7684\u8fc7\u7a0b\u662f\u5426\u4f1a\u5bf9\u8d26\u53f7\u5b89\u5168\u9020\u6210\u98ce\u9669\uff1f<\/strong><br \/>\u81ea\u52a8\u70b9\u8d5e\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8d26\u53f7\u88ab\u5c01\u7981\u6216\u9650\u5236\uff0c\u56e0\u4e3a\u8bb8\u591a\u793e\u4ea4\u5e73\u53f0\u4f1a\u76d1\u63a7\u5f02\u5e38\u6d3b\u52a8\u3002\u4e3a\u4e86\u964d\u4f4e\u98ce\u9669\uff0c\u5efa\u8bae\u63a7\u5236\u70b9\u8d5e\u7684\u9891\u7387\uff0c\u5e76\u907f\u514d\u5927\u89c4\u6a21\u64cd\u4f5c\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u4e2a\u4eba\u8d26\u53f7\u8fdb\u884c\u6b64\u7c7b\u64cd\u4f5c\u4e5f\u53ef\u80fd\u4f1a\u5f71\u54cd\u4e2a\u4eba\u9690\u79c1\u548c\u5b89\u5168\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e00\u3001Python\u5b9e\u73b0\u670b\u53cb\u5708\u81ea\u52a8\u70b9\u8d5e\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528Python\u7684Selenium\u5e93\u6a21\u62df\u6d4f\u89c8\u5668\u64cd\u4f5c\u3001\u4f7f\u7528Appi [&hellip;]","protected":false},"author":3,"featured_media":1084426,"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\/1084420"}],"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=1084420"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1084420\/revisions"}],"predecessor-version":[{"id":1084430,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1084420\/revisions\/1084430"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1084426"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1084420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1084420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1084420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}