{"id":429225,"date":"2021-04-18T10:34:06","date_gmt":"2021-04-18T02:34:06","guid":{"rendered":"http:\/\/4563.org\/?p=429225"},"modified":"2021-04-18T10:34:06","modified_gmt":"2021-04-18T02:34:06","slug":"%e5%93%aa%e9%87%8c%e8%83%bd%e4%b8%8b%e8%bd%bd%e8%b6%8a%e5%8d%97%e8%af%ad-cp1258-%e7%9a%84%e7%bc%96%e7%a0%81%e9%9b%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=429225","title":{"rendered":"\u54ea\u91cc\u80fd\u4e0b\u8f7d\u8d8a\u5357\u8bed cp1258 \u7684\u7f16\u7801\u96c6"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u54ea\u91cc\u80fd\u4e0b\u8f7d\u8d8a\u5357\u8bed cp1258 \u7684\u7f16\u7801\u96c6               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Selenium39 <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        iconv \u6e90\u7801 http:\/\/www.gnu.org\/software\/libiconv\/      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5665813\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : koebehshian <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u521a\u4e0b\u4e0b\u6765\u770b\u4e86\u4e0b\uff0c\u8d8a\u5357\u8bed\u7684\u5728 lib\/cp1258.h \u5934\u6587\u4ef6\u4e2d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5665814\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : koebehshian <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5947\u602a\u7684\u9700\u6c42\u589e\u52a0\u4e86\u03a3( \u00b0 \u25b3 \u00b0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5665815\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dll30 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             )\ufe34                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5665816\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Selenium39 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             http:\/\/code.cside.com\/3rdpage\/us\/windows\/windows-1258.html<br \/>\u8fd9\u91cc\u80fd\u591f\u770b\u5230\u6240\u6709\u7f16\u7801.<\/p>\n<p>import requests<br \/>from bs4 import BeautifulSoup<\/p>\n<p>url = &#8220;http:\/\/code.cside.com\/3rdpage\/us\/windows\/windows-1258.html&#8221;<br \/>response = requests.request(method=&#8217;get&#8217;, url=url)<br \/>html_doc = response.text<br \/>soup = BeautifulSoup(html_doc, &#8216;html.parser&#8217;)<br \/>for input in soup.find_all(&#8216;input&#8217;, class_=&#8217;ix&#8217;):<br \/> with open(&#8220;label_viet.txt&#8221;, &#8220;a&#8221;) as f:<br \/> f.writelines(input.get(&#8216;value&#8217;)+&#8221;n&#8221;)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u54ea\u91cc\u80fd\u4e0b\u8f7d\u8d8a\u5357\u8bed cp1258 \u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/429225"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=429225"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/429225\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=429225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=429225"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=429225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}