{"id":18451,"date":"2025-01-15T12:18:39","date_gmt":"2025-01-15T04:18:39","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=18451"},"modified":"2025-01-15T12:18:39","modified_gmt":"2025-01-15T04:18:39","slug":"automouser","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/pt\/automouser\/","title":{"rendered":"AutoMouser\uff1a\u751f\u6210\u6d4f\u89c8\u5668\u81ea\u52a8\u5316\u4ee3\u7801\uff0c\u5c06\u9f20\u6807\u64cd\u4f5c\u901a\u8fc7AI\u8f6c\u4e3aSelenium Python\u811a\u672c"},"content":{"rendered":"<p>AutoMouser \u662f\u4e00\u4e2a Chrome \u6269\u5c55\u7a0b\u5e8f\uff0c\u80fd\u591f\u667a\u80fd\u5730\u8ddf\u8e2a\u7528\u6237\u4ea4\u4e92\uff0c\u5e76\u4f7f\u7528 OpenAI \u7684 GPT \u6a21\u578b\u81ea\u52a8\u751f\u6210 Selenium \u6d4b\u8bd5\u4ee3\u7801\u3002\u5b83\u901a\u8fc7\u8bb0\u5f55\u7528\u6237\u7684\u6d4f\u89c8\u5668\u64cd\u4f5c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u7a33\u5065\u3001\u53ef\u7ef4\u62a4\u7684 Python Selenium \u811a\u672c\uff0c\u7b80\u5316\u4e86\u521b\u5efa\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u8fc7\u7a0b\u3002AutoMouser \u65e8\u5728\u6355\u6349\u6bcf\u4e00\u6b21\u70b9\u51fb\u3001\u62d6\u52a8\u548c\u60ac\u505c\u64cd\u4f5c\uff0c\u4ece\u800c\u4f18\u5316\u5de5\u4f5c\u6d41\u7a0b\u5e76\u6784\u5efa\u53ef\u9760\u7684\u3001\u53ef\u91cd\u590d\u7684\u6d4b\u8bd5\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li>\u5b9e\u65f6\u4ea4\u4e92\u8ddf\u8e2a\uff08\u70b9\u51fb\u3001\u8f93\u5165\u3001\u6eda\u52a8\uff09<\/li>\n<li>\u81ea\u52a8\u751f\u6210 Selenium Python \u4ee3\u7801<\/li>\n<li>\u667a\u80fd\u8f93\u5165\u5408\u5e76<\/li>\n<li>\u7a97\u53e3\u5927\u5c0f\u8c03\u6574\u68c0\u6d4b<\/li>\n<li>JSON \u64cd\u4f5c\u65e5\u5fd7\u5bfc\u51fa<\/li>\n<li>\u591a\u79cd XPath \u751f\u6210\u7b56\u7565<\/li>\n<li>\u5e72\u51c0\u3001\u7ed3\u6784\u826f\u597d\u7684\u4ee3\u7801\u8f93\u51fa<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<ol>\n<li>\u514b\u9686\u6b64\u5b58\u50a8\u5e93\u6216\u4e0b\u8f7d\u6e90\u4ee3\u7801\u3002<\/li>\n<li>\u5728\u6839\u76ee\u5f55\u521b\u5efa\u4e00\u4e2a .env \u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u4f60\u7684 OpenAI API \u5bc6\u94a5\uff1a<code>OPENAI_API_KEY=your_openai_api_key<\/code>\u3002<\/li>\n<li>\u5982\u679c\u9700\u8981\uff0c\u66ff\u6362 background.js \u4e2d\u7684 SELENIUM_PROMPT \u4e3a\u4f60\u60f3\u8981\u7684\u63d0\u793a\u6a21\u677f\u3002<\/li>\n<li>\u6253\u5f00 Chrome \u5e76\u5bfc\u822a\u5230 <code>chrome:\/\/extensions\/<\/code>\u3002<\/li>\n<li>\u5728\u53f3\u4e0a\u89d2\u542f\u7528\u201c\u5f00\u53d1\u8005\u6a21\u5f0f\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u52a0\u8f7d\u5df2\u89e3\u538b\u7684\u6269\u5c55\u7a0b\u5e8f\u201d\uff0c\u5e76\u9009\u62e9\u6269\u5c55\u7a0b\u5e8f\u76ee\u5f55\u3002<\/li>\n<\/ol>\n<h3>\u4f7f\u7528\u6d41\u7a0b<\/h3>\n<ol>\n<li>\u70b9\u51fb Chrome \u5de5\u5177\u680f\u4e2d\u7684 AutoMouser \u56fe\u6807\u5f00\u59cb\u5f55\u5236\u3002<\/li>\n<li>\u6267\u884c\u4f60\u60f3\u8981\u81ea\u52a8\u5316\u7684\u64cd\u4f5c\u3002<\/li>\n<li>\u518d\u6b21\u70b9\u51fb\u56fe\u6807\u505c\u6b62\u5f55\u5236\u5e76\u751f\u6210\u4ee3\u7801\u3002<\/li>\n<li>\u4e24\u4e2a\u6587\u4ef6\u5c06\u88ab\u4e0b\u8f7d\uff1a\n<ul>\n<li><code>tracking_log.json<\/code>\uff1a\u539f\u59cb\u4ea4\u4e92\u6570\u636e<\/li>\n<li><code>selenium_test.py<\/code>\uff1a\u751f\u6210\u7684 Selenium \u6d4b\u8bd5\u811a\u672c<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u8fd0\u884c\u751f\u6210\u7684 Selenium \u4ee3\u7801<\/h3>\n<ol>\n<li>\u5728\u4f60\u7684 Python \u73af\u5883\u4e2d\u68c0\u67e5\u5e76\u8fd0\u884c\u751f\u6210\u7684 Selenium \u4ee3\u7801\u3002<\/li>\n<li>\u786e\u4fdd\u5b89\u88c5\u4e86\u5fc5\u8981\u7684 Python \u5305\uff0c\u5982 <code>selenium<\/code> \u548c <code>openai<\/code>\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>AutoMouser \u662f\u4e00\u4e2a Chrome \u6269\u5c55\u7a0b\u5e8f\uff0c\u80fd\u591f\u667a\u80fd\u5730\u8ddf\u8e2a\u7528\u6237\u4ea4\u4e92\uff0c\u5e76\u4f7f\u7528 OpenAI \u7684 GPT \u6a21\u578b\u81ea\u52a8\u751f\u6210 Selenium \u6d4b\u8bd5\u4ee3\u7801\u3002\u5b83\u901a\u8fc7\u8bb0\u5f55\u7528\u6237\u7684\u6d4f\u89c8\u5668\u64cd\u4f5c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u7a33\u5065\u3001\u53ef\u7ef4\u62a4\u7684 Python Selenium &#8230;<\/p>\n","protected":false},"author":1,"featured_media":61631,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,373],"class_list":["post-18451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-zhuomianzidonghuazhian"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/18451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/comments?post=18451"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/18451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media\/61631"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media?parent=18451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/categories?post=18451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/tags?post=18451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}