{"id":1119124,"date":"2025-01-08T18:41:49","date_gmt":"2025-01-08T10:41:49","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1119124.html"},"modified":"2025-01-08T18:41:51","modified_gmt":"2025-01-08T10:41:51","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8python%e7%88%ac%e5%8f%96qq%e7%a9%ba%e9%97%b4%e7%9a%84%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1119124.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528python\u722c\u53d6qq\u7a7a\u95f4\u7684\u5185\u5bb9"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082340\/126cd1a8-4c9a-49c5-a7e5-9b9ec376842c.webp\" alt=\"\u5982\u4f55\u4f7f\u7528python\u722c\u53d6qq\u7a7a\u95f4\u7684\u5185\u5bb9\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u4f7f\u7528Python\u722c\u53d6QQ\u7a7a\u95f4\u7684\u5185\u5bb9\uff1f<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528Python\u722c\u53d6QQ\u7a7a\u95f4\u5185\u5bb9\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u767b\u5f55\u8ba4\u8bc1\u3001\u53d1\u9001\u8bf7\u6c42\u3001\u89e3\u6790\u9875\u9762\u3001\u5904\u7406\u9a8c\u8bc1\u7801\u3001\u4fdd\u5b58\u6570\u636e\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u5904\u7406\u9a8c\u8bc1\u7801<\/strong>\u662f\u4e00\u4e2a\u590d\u6742\u7684\u6b65\u9aa4\uff0c\u901a\u5e38\u9700\u8981\u7ed3\u5408\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u6216\u4eba\u5de5\u8f93\u5165\u6765\u5b8c\u6210\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u767b\u5f55\u8ba4\u8bc1<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u722c\u53d6QQ\u7a7a\u95f4\u5185\u5bb9\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u8fdb\u884c\u767b\u5f55\u8ba4\u8bc1\u3002QQ\u7a7a\u95f4\u7684\u767b\u5f55\u8ba4\u8bc1\u8fc7\u7a0b\u8f83\u4e3a\u590d\u6742\uff0c\u6d89\u53ca\u5230\u7528\u6237\u540d\u3001\u5bc6\u7801\u7684\u63d0\u4ea4\uff0c\u4ee5\u53ca\u9a8c\u8bc1\u7801\u7684\u5904\u7406\u3002\u4e3a\u4e86\u4fdd\u8bc1\u767b\u5f55\u8ba4\u8bc1\u7684\u6210\u529f\u7387\uff0c\u53ef\u4ee5\u4f7f\u7528Selenium\u5e93\u6765\u6a21\u62df\u6d4f\u89c8\u5668\u64cd\u4f5c\uff0c\u8fd9\u6837\u53ef\u4ee5\u66f4\u597d\u5730\u5904\u7406\u52a8\u6001\u5185\u5bb9\u548c\u9a8c\u8bc1\u7801\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528Selenium\u5e93\u8fdb\u884c\u767b\u5f55<\/h4>\n<\/p>\n<p><p>Selenium\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6d4f\u89c8\u5668\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u6a21\u62df\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e0a\u7684\u64cd\u4f5c\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Selenium\u5e93\u548c\u6d4f\u89c8\u5668\u9a71\u52a8\uff0c\u4f8b\u5982ChromeDriver\u3002\u7136\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u6a21\u62df\u767b\u5f55\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from selenium import webdriver<\/p>\n<p>from selenium.webdriver.common.keys import Keys<\/p>\n<p>import time<\/p>\n<h2><strong>\u521d\u59cb\u5316\u6d4f\u89c8\u5668<\/strong><\/h2>\n<p>driver = webdriver.Chrome(executable_path=&#39;path\/to\/chromedriver&#39;)<\/p>\n<h2><strong>\u6253\u5f00QQ\u7a7a\u95f4\u767b\u5f55\u9875\u9762<\/strong><\/h2>\n<p>driver.get(&#39;https:\/\/qzone.qq.com\/&#39;)<\/p>\n<h2><strong>\u5207\u6362\u5230\u767b\u5f55\u6846\u67b6<\/strong><\/h2>\n<p>driver.switch_to.frame(&#39;login_frame&#39;)<\/p>\n<h2><strong>\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801<\/strong><\/h2>\n<p>driver.find_element_by_id(&#39;u&#39;).send_keys(&#39;your_username&#39;)<\/p>\n<p>driver.find_element_by_id(&#39;p&#39;).send_keys(&#39;your_password&#39;)<\/p>\n<h2><strong>\u70b9\u51fb\u767b\u5f55\u6309\u94ae<\/strong><\/h2>\n<p>driver.find_element_by_id(&#39;login_button&#39;).click()<\/p>\n<h2><strong>\u7b49\u5f85\u9a8c\u8bc1\u7801\u5904\u7406<\/strong><\/h2>\n<p>time.sleep(10)<\/p>\n<h2><strong>\u767b\u5f55\u6210\u529f\u540e\uff0c\u5207\u6362\u56de\u4e3b\u9875\u9762<\/strong><\/h2>\n<p>driver.switch_to.default_content()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u53d1\u9001\u8bf7\u6c42<\/h3>\n<\/p>\n<p><p>\u6210\u529f\u767b\u5f55\u540e\uff0c\u53ef\u4ee5\u5f00\u59cb\u53d1\u9001\u8bf7\u6c42\u6765\u83b7\u53d6QQ\u7a7a\u95f4\u7684\u5185\u5bb9\u3002QQ\u7a7a\u95f4\u7684\u5185\u5bb9\u662f\u901a\u8fc7Ajax\u8bf7\u6c42\u52a0\u8f7d\u7684\uff0c\u56e0\u6b64\u9700\u8981\u5206\u6790\u8bf7\u6c42\u7684URL\u548c\u53c2\u6570\uff0c\u4ee5\u4fbf\u6b63\u786e\u5730\u53d1\u9001\u8bf7\u6c42\u3002<\/p>\n<\/p>\n<p><h4>1. \u5206\u6790\u8bf7\u6c42URL\u548c\u53c2\u6570<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\u6765\u5206\u6790QQ\u7a7a\u95f4\u52a0\u8f7d\u5185\u5bb9\u65f6\u53d1\u9001\u7684\u8bf7\u6c42\u3002\u627e\u5230\u6b63\u786e\u7684\u8bf7\u6c42URL\u548c\u53c2\u6570\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528requests\u5e93\u6765\u53d1\u9001\u8bf7\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>from selenium import webdriver<\/p>\n<p>from selenium.webdriver.common.keys import Keys<\/p>\n<p>import time<\/p>\n<h2><strong>\u521d\u59cb\u5316\u6d4f\u89c8\u5668<\/strong><\/h2>\n<p>driver = webdriver.Chrome(executable_path=&#39;path\/to\/chromedriver&#39;)<\/p>\n<h2><strong>\u6253\u5f00QQ\u7a7a\u95f4\u767b\u5f55\u9875\u9762<\/strong><\/h2>\n<p>driver.get(&#39;https:\/\/qzone.qq.com\/&#39;)<\/p>\n<h2><strong>\u5207\u6362\u5230\u767b\u5f55\u6846\u67b6<\/strong><\/h2>\n<p>driver.switch_to.frame(&#39;login_frame&#39;)<\/p>\n<h2><strong>\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801<\/strong><\/h2>\n<p>driver.find_element_by_id(&#39;u&#39;).send_keys(&#39;your_username&#39;)<\/p>\n<p>driver.find_element_by_id(&#39;p&#39;).send_keys(&#39;your_password&#39;)<\/p>\n<h2><strong>\u70b9\u51fb\u767b\u5f55\u6309\u94ae<\/strong><\/h2>\n<p>driver.find_element_by_id(&#39;login_button&#39;).click()<\/p>\n<h2><strong>\u7b49\u5f85\u9a8c\u8bc1\u7801\u5904\u7406<\/strong><\/h2>\n<p>time.sleep(10)<\/p>\n<h2><strong>\u767b\u5f55\u6210\u529f\u540e\uff0c\u83b7\u53d6cookie<\/strong><\/h2>\n<p>cookies = driver.get_cookies()<\/p>\n<p>cookie_dict = {cookie[&#39;name&#39;]: cookie[&#39;value&#39;] for cookie in cookies}<\/p>\n<h2><strong>\u53d1\u9001\u8bf7\u6c42\u83b7\u53d6QQ\u7a7a\u95f4\u5185\u5bb9<\/strong><\/h2>\n<p>url = &#39;https:\/\/user.qzone.qq.com\/proxy\/dom<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n\/taotao.qq.com\/cgi-bin\/emotion_cgi_msglist_v6&#39;<\/p>\n<p>params = {<\/p>\n<p>    &#39;uin&#39;: &#39;your_qq_number&#39;,<\/p>\n<p>    &#39;ftype&#39;: &#39;0&#39;,<\/p>\n<p>    &#39;sort&#39;: &#39;0&#39;,<\/p>\n<p>    &#39;pos&#39;: &#39;0&#39;,<\/p>\n<p>    &#39;num&#39;: &#39;20&#39;,<\/p>\n<p>    &#39;replynum&#39;: &#39;100&#39;,<\/p>\n<p>    &#39;callback&#39;: &#39;_preloadCallback&#39;,<\/p>\n<p>    &#39;code_version&#39;: &#39;1&#39;,<\/p>\n<p>    &#39;format&#39;: &#39;jsonp&#39;,<\/p>\n<p>    &#39;need_private_comment&#39;: &#39;1&#39;,<\/p>\n<p>    &#39;g_tk&#39;: &#39;your_g_tk&#39;,<\/p>\n<p>    &#39;qzonetoken&#39;: &#39;your_qzonetoken&#39;<\/p>\n<p>}<\/p>\n<p>headers = {<\/p>\n<p>    &#39;cookie&#39;: &#39;; &#39;.join([f&#39;{key}={value}&#39; for key, value in cookie_dict.items()]),<\/p>\n<p>    &#39;user-agent&#39;: &#39;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/91.0.4472.124 Safari\/537.36&#39;<\/p>\n<p>}<\/p>\n<p>response = requests.get(url, params=params, headers=headers)<\/p>\n<p>print(response.text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u89e3\u6790\u9875\u9762<\/h3>\n<\/p>\n<p><p>\u83b7\u53d6\u5230QQ\u7a7a\u95f4\u5185\u5bb9\u7684\u54cd\u5e94\u540e\uff0c\u9700\u8981\u5bf9\u54cd\u5e94\u5185\u5bb9\u8fdb\u884c\u89e3\u6790\u3002\u7531\u4e8eQQ\u7a7a\u95f4\u8fd4\u56de\u7684\u6570\u636e\u901a\u5e38\u662fJSON\u683c\u5f0f\u7684\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528json\u5e93\u6765\u89e3\u6790\u54cd\u5e94\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><h4>1. \u89e3\u6790JSON\u54cd\u5e94<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import json<\/p>\n<h2><strong>\u89e3\u6790JSON\u54cd\u5e94<\/strong><\/h2>\n<p>data = response.text<\/p>\n<p>json_data = json.loads(data[data.find(&#39;(&#39;)+1:data.rfind(&#39;)&#39;)])<\/p>\n<h2><strong>\u63d0\u53d6QQ\u7a7a\u95f4\u5185\u5bb9<\/strong><\/h2>\n<p>msg_list = json_data[&#39;msglist&#39;]<\/p>\n<p>for msg in msg_list:<\/p>\n<p>    print(msg[&#39;content&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u9a8c\u8bc1\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u767b\u5f55\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u9a8c\u8bc1\u7801\u7684\u5904\u7406\u95ee\u9898\u3002\u9a8c\u8bc1\u7801\u901a\u5e38\u662f\u4e00\u4e2a\u56fe\u7247\uff0c\u9700\u8981\u7528\u6237\u624b\u52a8\u8f93\u5165\u9a8c\u8bc1\u7801\u5185\u5bb9\u3002\u53ef\u4ee5\u7ed3\u5408\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u6765\u81ea\u52a8\u5904\u7406\u9a8c\u8bc1\u7801\uff0c\u6216\u8005\u4f7f\u7528Selenium\u5e93\u624b\u52a8\u8f93\u5165\u9a8c\u8bc1\u7801\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u56fe\u50cf\u8bc6\u522b\u6280\u672f\u5904\u7406\u9a8c\u8bc1\u7801<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528OCR\uff08\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff09\u6280\u672f\u6765\u81ea\u52a8\u8bc6\u522b\u9a8c\u8bc1\u7801\u5185\u5bb9\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528Tesseract\u5e93\u6765\u8fdb\u884cOCR\u8bc6\u522b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<p>import pytesseract<\/p>\n<h2><strong>\u622a\u53d6\u9a8c\u8bc1\u7801\u56fe\u7247<\/strong><\/h2>\n<p>captcha_element = driver.find_element_by_id(&#39;captcha_img&#39;)<\/p>\n<p>captcha_element.screenshot(&#39;captcha.png&#39;)<\/p>\n<h2><strong>\u4f7f\u7528OCR\u8bc6\u522b\u9a8c\u8bc1\u7801\u5185\u5bb9<\/strong><\/h2>\n<p>captcha_image = Image.open(&#39;captcha.png&#39;)<\/p>\n<p>captcha_text = pytesseract.image_to_string(captcha_image)<\/p>\n<h2><strong>\u8f93\u5165\u9a8c\u8bc1\u7801\u5185\u5bb9<\/strong><\/h2>\n<p>driver.find_element_by_id(&#39;captcha_input&#39;).send_keys(captcha_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4fdd\u5b58\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u89e3\u6790\u5e76\u63d0\u53d6QQ\u7a7a\u95f4\u5185\u5bb9\u540e\uff0c\u53ef\u4ee5\u5c06\u6570\u636e\u4fdd\u5b58\u5230\u672c\u5730\u6587\u4ef6\u4e2d\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u6570\u636e\u4fdd\u5b58\u4e3aCSV\u6587\u4ef6\u6216JSON\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>1. \u4fdd\u5b58\u6570\u636e\u5230CSV\u6587\u4ef6<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<h2><strong>\u4fdd\u5b58\u6570\u636e\u5230CSV\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;qzone_content.csv&#39;, &#39;w&#39;, newline=&#39;&#39;, encoding=&#39;utf-8&#39;) as csvfile:<\/p>\n<p>    fieldnames = [&#39;content&#39;]<\/p>\n<p>    writer = csv.DictWriter(csvfile, fieldnames=fieldnames)<\/p>\n<p>    writer.writeheader()<\/p>\n<p>    for msg in msg_list:<\/p>\n<p>        writer.writerow({&#39;content&#39;: msg[&#39;content&#39;]})<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4fdd\u5b58\u6570\u636e\u5230JSON\u6587\u4ef6<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import json<\/p>\n<h2><strong>\u4fdd\u5b58\u6570\u636e\u5230JSON\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;qzone_content.json&#39;, &#39;w&#39;, encoding=&#39;utf-8&#39;) as jsonfile:<\/p>\n<p>    json.dump(msg_list, jsonfile, ensure_ascii=False, indent=4)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u722c\u53d6QQ\u7a7a\u95f4\u7684\u5185\u5bb9\u3002\u9996\u5148\uff0c\u901a\u8fc7Selenium\u5e93\u8fdb\u884c\u767b\u5f55\u8ba4\u8bc1\uff0c\u5e76\u5904\u7406\u9a8c\u8bc1\u7801\u3002\u7136\u540e\uff0c\u53d1\u9001\u8bf7\u6c42\u83b7\u53d6QQ\u7a7a\u95f4\u5185\u5bb9\uff0c\u5e76\u89e3\u6790\u54cd\u5e94\u6570\u636e\u3002\u6700\u540e\uff0c\u5c06\u6570\u636e\u4fdd\u5b58\u5230\u672c\u5730\u6587\u4ef6\u4e2d\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u722c\u53d6QQ\u7a7a\u95f4\u5185\u5bb9\u65f6\u8981\u9075\u5b88\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\u548c\u7f51\u7ad9\u7684\u722c\u866b\u534f\u8bae\uff0c\u907f\u514d\u5bf9\u7f51\u7ad9\u9020\u6210\u4e0d\u5fc5\u8981\u7684\u8d1f\u62c5\u548c\u5e72\u6270\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5f00\u59cb\u4f7f\u7528Python\u8fdb\u884cQQ\u7a7a\u95f4\u5185\u5bb9\u7684\u722c\u53d6\uff1f<\/strong><br \/>\u8981\u5f00\u59cb\u4f7f\u7528Python\u722c\u53d6QQ\u7a7a\u95f4\u7684\u5185\u5bb9\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3\u57fa\u672c\u7684\u7f51\u7edc\u8bf7\u6c42\u548cHTML\u89e3\u6790\u3002\u53ef\u4ee5\u4f7f\u7528<code>requests<\/code>\u5e93\u83b7\u53d6\u7f51\u9875\u5185\u5bb9\uff0c\u968f\u540e\u4f7f\u7528<code>BeautifulSoup<\/code>\u6216<code>lxml<\/code>\u7b49\u5e93\u89e3\u6790HTML\u6587\u6863\u3002\u6b64\u5916\uff0c\u719f\u6089QQ\u7a7a\u95f4\u7684\u7f51\u9875\u7ed3\u6784\u548c\u5185\u5bb9\u5c55\u793a\u65b9\u5f0f\uff0c\u4e5f\u80fd\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u63d0\u53d6\u6240\u9700\u4fe1\u606f\u3002<\/p>\n<p><strong>\u5728\u722c\u53d6QQ\u7a7a\u95f4\u5185\u5bb9\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u6cd5\u5f8b\u548c\u9053\u5fb7\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u4efb\u4f55\u722c\u866b\u6d3b\u52a8\u65f6\uff0c\u9075\u5b88\u6cd5\u5f8b\u6cd5\u89c4\u548c\u7f51\u7ad9\u7684\u4f7f\u7528\u6761\u6b3e\u975e\u5e38\u91cd\u8981\u3002\u722c\u53d6QQ\u7a7a\u95f4\u5185\u5bb9\u53ef\u80fd\u6d89\u53ca\u5230\u7528\u6237\u9690\u79c1\u548c\u7248\u6743\u95ee\u9898\uff0c\u56e0\u6b64\u5728\u6536\u96c6\u6570\u636e\u524d\uff0c\u786e\u4fdd\u81ea\u5df1\u4e86\u89e3\u5e76\u9075\u5faa\u76f8\u5173\u7684\u6cd5\u5f8b\u6cd5\u89c4\u3002\u540c\u65f6\uff0c\u5c3d\u91cf\u907f\u514d\u5bf9\u7f51\u7ad9\u9020\u6210\u8d1f\u62c5\uff0c\u4e0d\u8981\u9891\u7e41\u8bf7\u6c42\u540c\u4e00\u9875\u9762\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u722c\u866b\u65f6\u5982\u4f55\u5904\u7406\u7f51\u7ad9\u53cd\u722c\u866b\u673a\u5236\uff1f<\/strong><br \/>\u8bb8\u591a\u7f51\u7ad9\u4f1a\u91c7\u53d6\u53cd\u722c\u866b\u63aa\u65bd\u6765\u4fdd\u62a4\u5185\u5bb9\uff0cQQ\u7a7a\u95f4\u4e5f\u4e0d\u4f8b\u5916\u3002\u4e3a\u4e86\u7ed5\u8fc7\u8fd9\u4e9b\u673a\u5236\uff0c\u53ef\u4ee5\u91c7\u53d6\u4e00\u4e9b\u7b56\u7565\uff0c\u6bd4\u5982\uff1a\u8bbe\u7f6e\u5408\u7406\u7684\u8bf7\u6c42\u95f4\u9694\u3001\u4f7f\u7528\u4ee3\u7406IP\u3001\u4f2a\u88c5\u8bf7\u6c42\u5934\u4fe1\u606f\u7b49\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u6a21\u62df\u767b\u5f55\u7684\u65b9\u5f0f\u83b7\u53d6\u66f4\u6df1\u5c42\u6b21\u7684\u6570\u636e\uff0c\u8fd9\u901a\u5e38\u9700\u8981\u5904\u7406Cookies\u548cSession\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u4f7f\u7528Python\u722c\u53d6QQ\u7a7a\u95f4\u7684\u5185\u5bb9\uff1f \u4f7f\u7528Python\u722c\u53d6QQ\u7a7a\u95f4\u5185\u5bb9\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u767b\u5f55\u8ba4\u8bc1\u3001\u53d1\u9001\u8bf7\u6c42\u3001\u89e3\u6790 [&hellip;]","protected":false},"author":3,"featured_media":1119131,"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\/1119124"}],"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=1119124"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1119124\/revisions"}],"predecessor-version":[{"id":1119133,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1119124\/revisions\/1119133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1119131"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1119124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1119124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1119124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}