{"id":4788,"date":"2016-12-13T16:54:41","date_gmt":"2016-12-13T08:54:41","guid":{"rendered":"https:\/\/www.hmouse.tk\/?p=4788"},"modified":"2016-12-13T16:54:41","modified_gmt":"2016-12-13T08:54:41","slug":"%e5%b9%bf%e5%8f%91%e7%9a%84easytrader%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.hmouse.cn\/?p=4788","title":{"rendered":"\u5e7f\u53d1\u7684easytrader\u4f7f\u7528"},"content":{"rendered":"<p>\u4e00\uff1a\u9996\u5148\u4f60\u9700\u8981\u5b89\u88c5easytrader\uff0c\u53ef\u4ee5\u53c2\u8003\uff1a<a title=\"https:\/\/github.com\/shidenggui\/easytrader\" href=\"https:\/\/github.com\/shidenggui\/easytrader\">https:\/\/github.com\/shidenggui\/easytrader<\/a><\/p>\n<p>\u6211\u5728\u5b89\u88c5\u7684\u65f6\u5019\u9047\u5230\u4e86\u51e0\u4e2a\u95ee\u9898\uff1a<\/p>\n<p>1\uff1a<\/p>\n<p><a href=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/NFEWREEIY7OJU_BH_O7.png\"><img loading=\"lazy\" decoding=\"async\" title=\"NFEW)]R(E`EIY7OJU_BH_O7\" style=\"border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline\" border=\"0\" alt=\"NFEW)]R(E`EIY7OJU_BH_O7\" src=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/NFEWREEIY7OJU_BH_O7_thumb.png\" width=\"244\" height=\"72\"><\/a> <\/p>\n<p>\u8fd9\u4e2a\u662f\u7f3a\u5c11tesseract\uff0c\u5b89\u88c5\u76f8\u5173\u7684tesseract\u8f6f\u4ef6\u5c31\u597d\u4e86\u3002 <\/p>\n<p>yum -y install tesseract <\/p>\n<p>\/root\/anaconda3\/bin\/pip install tesseract <\/p>\n<p>2:: <\/p>\n<p><a href=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/U1SEIY2KI3D6LCI7O.png\"><img loading=\"lazy\" decoding=\"async\" title=\"U{}1S%EIY`)2KI3}D6LCI7O\" style=\"border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline\" border=\"0\" alt=\"U{}1S%EIY`)2KI3}D6LCI7O\" src=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/U1SEIY2KI3D6LCI7O_thumb.png\" width=\"244\" height=\"64\"><\/a>  <\/p>\n<\/p>\n<p>\u8fd9\u4e2a\u62a5\u9519\u662fpython2.7\u7684\u65f6\u5019\u62a5\u7684\u9519\uff0c\u6362\u6210python3.5\u5c31\u597d\uff0c\u4e0d\u8fc7tesseract\u5b89\u88c5\u5b8c\u4e4b\u540e\uff0c\u6211\u53d1\u73b0python2.7\u5c31\u6ca1\u8fd9\u4e2a\u62a5\u9519\uff0c\u5e94\u8be5\u8ddf\u7248\u672c\u5173\u7cfb\u4e0d\u5927\u3002<\/p>\n<p>\u4e8c\uff1a\u83b7\u53d6\u5e7f\u53d1\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u3002\u9700\u8981\u4e2a\u53ef\u4ee5\u7528\u7684\u8001\u7684\u5e7f\u53d1web\u7684ur\uff1a<a title=\"https:\/\/gftrade.gf.com.cn\/\" href=\"https:\/\/gftrade.gf.com.cn\/\">https:\/\/gftrade.gf.com.cn\/<\/a> (\u4f30\u8ba1\u8fc7\u6bb5\u65f6\u95f4\u5c31\u4e0d\u884c\u4e86)<\/p>\n<p>\u901a\u8fc7firedebug\u6216\u8005\u5176\u4ed6\u8f6f\u4ef6\u6293\u53d6\u52a0\u5bc6\u540e\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u3002\u8fd9\u91cc\u6709\u4e2a\u8bc0\u7a8d\uff0c\u53ef\u4ee5\u8f93\u5165\u9519\u8bef\u7684\u9a8c\u8bc1\u7801\uff0c\u9632\u6b62\u8df3\u8f6c\u3002<\/p>\n<p><a href=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/image.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline\" border=\"0\" alt=\"image\" src=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/image_thumb.png\" width=\"244\" height=\"115\"><\/a> <\/p>\n<p>\u628a\u8fd9\u4e2a\u52a0\u5bc6\u540e\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u5199\u5165\u5230gf.json\u3002\u901a\u8fc7\u4e00\u4e0b\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/p>\n<p>import easytrader<\/p>\n<p>user = easytrader.use(&#8216;gf&#8217;) # \u5e7f\u53d1\u652f\u6301 [&#8216;gf&#8217;, &#8216;GF&#8217;, &#8216;\u5e7f\u53d1&#8217;]<\/p>\n<p>user.prepare(&#8216;\/path\/to\/your\/ht.json&#8217;) \/\/ \u6216\u8005 yh.json \u6216\u8005 yh_client.json \u7b49\u914d\u7f6e\u6587\u4ef6\u8def\u5f84<\/p>\n<p>\u540e\u7eed\u7684\u53ef\u4ee5\u53c2\u8003<a title=\"https:\/\/github.com\/shidenggui\/easytrader\" href=\"https:\/\/github.com\/shidenggui\/easytrader\">https:\/\/github.com\/shidenggui\/easytrader<\/a> \u7684\u8bf4\u660e\u6587\u6863\uff0c\u53bb\u7a0b\u5e8f\u5316\u4f7f\u7528\u8d26\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\uff1a\u9996\u5148\u4f60\u9700\u8981\u5b89\u88c5easytrader\uff0c\u53ef\u4ee5\u53c2\u8003\uff1a<a title=\"https:\/\/github.com\/shidenggui\/easytrader\" href=\"https:\/\/github.com\/shidenggui\/easytrader\">https:\/\/github.com\/shidenggui\/easytrader<\/a><\/p>\n<p>\u6211\u5728\u5b89\u88c5\u7684\u65f6\u5019\u9047\u5230\u4e86\u51e0\u4e2a\u95ee\u9898\uff1a<\/p>\n<p>1\uff1a<\/p>\n<p><a href=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/NFEWREEIY7OJU_BH_O7.png\"><img loading=\"lazy\" decoding=\"async\" title=\"NFEW)]R(E`EIY7OJU_BH_O7\" style=\"border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline\" border=\"0\" alt=\"NFEW)]R(E`EIY7OJU_BH_O7\" src=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/NFEWREEIY7OJU_BH_O7_thumb.png\" width=\"244\" height=\"72\"><\/a> <\/p>\n<p>\u8fd9\u4e2a\u662f\u7f3a\u5c11tesseract\uff0c\u5b89\u88c5\u76f8\u5173\u7684tesseract\u8f6f\u4ef6\u5c31\u597d\u4e86\u3002 <\/p>\n<p>yum -y install tesseract <\/p>\n<p>\/root\/anaconda3\/bin\/pip install tesseract <\/p>\n<p>2:: <\/p>\n<p><a href=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/U1SEIY2KI3D6LCI7O.png\"><img loading=\"lazy\" decoding=\"async\" title=\"U{}1S%EIY`)2KI3}D6LCI7O\" style=\"border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline\" border=\"0\" alt=\"U{}1S%EIY`)2KI3}D6LCI7O\" src=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/U1SEIY2KI3D6LCI7O_thumb.png\" width=\"244\" height=\"64\"><\/a>  <\/p>\n<\/p>\n<p>\u8fd9\u4e2a\u62a5\u9519\u662fpython2.7\u7684\u65f6\u5019\u62a5\u7684\u9519\uff0c\u6362\u6210python3.5\u5c31\u597d\uff0c\u4e0d\u8fc7tesseract\u5b89\u88c5\u5b8c\u4e4b\u540e\uff0c\u6211\u53d1\u73b0python2.7\u5c31\u6ca1\u8fd9\u4e2a\u62a5\u9519\uff0c\u5e94\u8be5\u8ddf\u7248\u672c\u5173\u7cfb\u4e0d\u5927\u3002<\/p>\n<p>\u4e8c\uff1a\u83b7\u53d6\u5e7f\u53d1\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u3002\u9700\u8981\u4e2a\u53ef\u4ee5\u7528\u7684\u8001\u7684\u5e7f\u53d1web\u7684ur\uff1a<a title=\"https:\/\/gftrade.gf.com.cn\/\" href=\"https:\/\/gftrade.gf.com.cn\/\">https:\/\/gftrade.gf.com.cn\/<\/a> (\u4f30\u8ba1\u8fc7\u6bb5\u65f6\u95f4\u5c31\u4e0d\u884c\u4e86)<\/p>\n<p>\u901a\u8fc7firedebug\u6216\u8005\u5176\u4ed6\u8f6f\u4ef6\u6293\u53d6\u52a0\u5bc6\u540e\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u3002\u8fd9\u91cc\u6709\u4e2a\u8bc0\u7a8d\uff0c\u53ef\u4ee5\u8f93\u5165\u9519\u8bef\u7684\u9a8c\u8bc1\u7801\uff0c\u9632\u6b62\u8df3\u8f6c\u3002<\/p>\n<p><a href=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/image.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline\" border=\"0\" alt=\"image\" src=\"https:\/\/www.hmouse.cn\/wp-content\/uploads\/2016\/12\/image_thumb.png\" width=\"244\" height=\"115\"><\/a> <\/p>\n<p>\u628a\u8fd9\u4e2a\u52a0\u5bc6\u540e\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u5199\u5165\u5230gf.json\u3002\u901a\u8fc7\u4e00\u4e0b\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/p>\n<p>import easytrader<\/p>\n<p>user = easytrader.use(&#8216;gf&#8217;) # \u5e7f\u53d1\u652f\u6301 [&#8216;gf&#8217;, &#8216;GF&#8217;, &#8216;\u5e7f\u53d1&#8217;]<\/p>\n<p>user.prepare(&#8216;\/path\/to\/your\/ht.json&#8217;) \/\/ \u6216\u8005 yh.json \u6216\u8005 yh_client.json \u7b49\u914d\u7f6e\u6587\u4ef6\u8def\u5f84<\/p>\n<p>\u540e\u7eed\u7684\u53ef\u4ee5\u53c2\u8003<a title=\"https:\/\/github.com\/shidenggui\/easytrader\" href=\"https:\/\/github.com\/shidenggui\/easytrader\">https:\/\/github.com\/shidenggui\/easytrader<\/a> \u7684\u8bf4\u660e\u6587\u6863\uff0c\u53bb\u7a0b\u5e8f\u5316\u4f7f\u7528\u8d26\u53f7\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[207,208],"class_list":["post-4788","post","type-post","status-publish","format-standard","hentry","category-5","tag-easytrader","tag-208","category-5-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4788"}],"version-history":[{"count":1,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4788\/revisions"}],"predecessor-version":[{"id":4789,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=\/wp\/v2\/posts\/4788\/revisions\/4789"}],"wp:attachment":[{"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hmouse.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}