{"id":897,"date":"2020-06-14T07:34:12","date_gmt":"2020-06-13T22:34:12","guid":{"rendered":"https:\/\/t-office.blue\/?p=897"},"modified":"2020-06-14T07:34:17","modified_gmt":"2020-06-13T22:34:17","slug":"post-897","status":"publish","type":"post","link":"https:\/\/wp.t-office.blue\/?p=897","title":{"rendered":"Scrapy\u3067\u30af\u30ed\u30fc\u30ea\u30f3\u30b0\u3068\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3057\u3088\u3046\u3068\u3057\u305f\u3089Openssl\u3067\u5f15\u3063\u304b\u304b\u3063\u305f\u8a71"},"content":{"rendered":"\n\u3000MacBook2015\u3092\u4f7f\u3063\u3066\u3066\u6700\u8fd1\u9045\u3044\u306a\u3068\u601d\u3044\u3064\u3064\u3001\u8cb7\u3044\u63db\u3048\u308b\u91d1\u3082\u306a\u3044\u3057\u3061\u3087\u3063\u3068\u3057\u305f\u3053\u3068\u306a\u3089\u5341\u5206\u3053\u306a\u305b\u308b\u306e\u3067\u307b\u3063\u305f\u3089\u304b\u3057\u3066\u3044\u308b\u3093\u3067\u3059\u304c\u3001\u307e\u3041\u307e\u3041\u306e\u30c7\u30fc\u30bf\u3092Web\u304b\u3089\u53ce\u96c6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u3001python\u3092\u4f7f\u3063\u3066Web\u30af\u30ed\u30fc\u30ea\u30f3\u30b0\u3055\u305b\u3088\u3046\u3068\u601d\u3063\u3066\u624b\u5143\u306b\u3042\u308b\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u306e\u672c\u3092\u53c2\u8003\u306bscrapy \u3092\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u3002\n\n\n\n\u3000\u300cPython \u30af\u30ed\u30fc\u30ea\u30f3\u30b0&amp;\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3000\u30c7\u30fc\u30bf\u53ce\u96c6\u30fb\u89e3\u6790\u306e\u305f\u3081\u306e\u5b9f\u8df5\u958b\u767a\u30ac\u30a4\u30c9\u300d\n\n\n\n\u3000\u3053\u306e\u672c\u3067\u306fscrapy\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u300c1.1.0\u300d\u30022020\u5e746\u6708\u306b\u666e\u901a\u306bpip3 install scrapy\u3067\u5165\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u300c2.1.0\u300d\u5168\u7136\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3046\u3002\u666e\u901a\u306b\u5b9f\u884c\u3067\u304d\u306a\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u8272\u3005\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>$ scrapy crawl &#91;\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d]\nTraceback (most recent call last):\n  File \"\/usr\/local\/bin\/scrapy\", line 6, in &lt;module>\n    from scrapy.cmdline import execute\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/scrapy\/cmdline.py\", line 9, in &lt;module>\n    from scrapy.crawler import CrawlerProcess\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/scrapy\/crawler.py\", line 18, in &lt;module>\n    from scrapy.core.engine import ExecutionEngine\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/scrapy\/core\/engine.py\", line 14, in &lt;module>\n    from scrapy.core.scraper import Scraper\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/scrapy\/core\/scraper.py\", line 13, in &lt;module>\n    from scrapy.utils.log import logformatter_adapter, failure_to_exc_info\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/scrapy\/utils\/log.py\", line 14, in &lt;module>\n    from scrapy.utils.versions import scrapy_components_versions\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/scrapy\/utils\/versions.py\", line 12, in &lt;module>\n    from scrapy.utils.ssl import get_openssl_version\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/scrapy\/utils\/ssl.py\", line 3, in &lt;module>\n    import OpenSSL\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/OpenSSL\/__init__.py\", line 8, in &lt;module>\n    from OpenSSL import crypto, SSL\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/OpenSSL\/crypto.py\", line 15, in &lt;module>\n    from OpenSSL._util import (\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/OpenSSL\/_util.py\", line 6, in &lt;module>\n    from cryptography.hazmat.bindings.openssl.binding import Binding\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/cryptography\/hazmat\/bindings\/openssl\/binding.py\", line 203, in &lt;module>\n    Binding.init_static_locks()\n  File \"\/usr\/local\/lib\/python3.7\/site-packages\/cryptography\/hazmat\/bindings\/openssl\/binding.py\", line 143, in init_static_locks\n    __import__(\"_ssl\")\nImportError: dlopen(\/usr\/local\/Cellar\/python\/3.7.3\/Frameworks\/Python.framework\/Versions\/3.7\/lib\/python3.7\/lib-dynload\/_ssl.cpython-37m-darwin.so, 2): Library not loaded: \/usr\/local\/opt\/openssl\/lib\/libssl.1.0.0.dylib\n  Referenced from: \/usr\/local\/Cellar\/python\/3.7.3\/Frameworks\/Python.framework\/Versions\/3.7\/lib\/python3.7\/lib-dynload\/_ssl.cpython-37m-darwin.so\n  Reason: image not found<\/code><\/pre>\n\n\n\n\n\u3000OpenSSL\u3067\u3064\u307e\u305a\u3044\u3066\u3044\u308b\u3088\u3046\u3002\u3068\u308a\u3042\u3048\u305a\u3002\u66f4\u65b0\u3057\u3088\u3046\u3068\u8a00\u3046\u3053\u3068\u3067\u3001\u3001\u3001\n\n\n\n\n<pre class=\"wp-block-code\"><code>brew install openssl<\/code><\/pre>\n\n\n\n\nscrapy\u3092\u518d\u5b9f\u884c\u3057\u3066\u3082\u7d50\u679c\u306f\u5909\u308f\u3089\u305a\u3002<br>\u305d\u3053\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fOpenssl\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8abf\u3079\u3066\u4f7f\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u5909\u66f4\u3059\u308c\u3070\u306a\u3093\u3068\u304b\u306a\u308b\u304b\u306a\u3068\u601d\u3044\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002\n\n\n\n\n<pre class=\"wp-block-code\"><code>$ openssl version\nOpenSSL 1.1.1g  21 Apr 2020\n$ brew switch openssl 1.1.1g\nError: openssl does not have a version \"1.1.1g\" in the Cellar.\nopenssl's installed versions: 1.0.2r\n$ brew switch openssl 1.0.2r\nCleaning \/usr\/local\/Cellar\/openssl\/1.0.2r\nOpt link created for \/usr\/local\/Cellar\/openssl\/1.0.2r<\/code><\/pre>\n\n\n\n\n\u6700\u521d\u306bopenssl\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d1.1.1g\u3068\u3044\u3046\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u3067brew\u3092\u4f7f\u3063\u30661.1.1g\u3092\u4f7f\u3046\u3088\u3046\u306bswitch\u3057\u3088\u3046\u3068\u3059\u308b\u30681.0.2r\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3068\u306e\u3053\u3068(\u306a\u3093\u3067\u3084\u306d\u3093\uff01\uff09<br>\u4ed5\u65b9\u306a\u3044\u306e\u3067\u8a00\u308f\u308c\u308b\u304c\u307e\u307e1.0.2r\u306bswitch\u3002<br>\u306a\u3093\u304b\u30b9\u30b3\u30c3\u3068\u884c\u3051\u305f\u307f\u305f\u3044\u3002<br><br>scrapy\u306ecrawl\u30b3\u30de\u30f3\u30c9\u4f7f\u3046\u3068\u666e\u901a\u306b\n\n\n\n<span style=\"color: #ff0000\" class=\"text-color\"><span style=\"font-size: 18px\" class=\"font-size\">\u901a\u3063\u305f\uff01\uff01<\/span><\/span>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u3000MacBook2015\u3092\u4f7f\u3063\u3066\u3066\u6700\u8fd1\u9045\u3044\u306a\u3068\u601d\u3044\u3064\u3064\u3001\u8cb7\u3044\u63db\u3048\u308b\u91d1\u3082\u306a\u3044\u3057\u3061\u3087\u3063\u3068\u3057\u305f\u3053\u3068\u306a\u3089\u5341\u5206\u3053\u306a\u305b\u308b\u306e\u3067\u307b\u3063\u305f\u3089\u304b\u3057\u3066\u3044\u308b\u3093\u3067\u3059\u304c\u3001\u307e\u3041\u307e\u3041\u306e\u30c7\u30fc\u30bf\u3092Web\u304b\u3089\u53ce\u96c6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u3001python\u3092\u4f7f\u3063 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-897","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=897"}],"version-history":[{"count":1,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/897\/revisions"}],"predecessor-version":[{"id":899,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/897\/revisions\/899"}],"wp:attachment":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}