{"id":108,"date":"2019-07-23T17:55:15","date_gmt":"2019-07-23T09:55:15","guid":{"rendered":"https:\/\/www.book11111.com\/?p=108"},"modified":"2019-07-27T21:27:01","modified_gmt":"2019-07-27T13:27:01","slug":"mac-%e5%ae%89%e8%a3%85scrapy","status":"publish","type":"post","link":"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/","title":{"rendered":"mac \u5b89\u88c5Scrapy"},"content":{"rendered":"<p>mac\u7cfb\u7edf\u81ea\u5e26python2.7\u7248\u672c\uff0c\u6240\u4ee5\u5728\u76f4\u63a5\u4f7f\u7528pip\u7684\u65f6\u5019\uff0c\u627e\u4e0d\u5230pip\uff0c\u6211\u4eec\u901a\u8fc7\u91cd\u65b0\u5b89\u88c5python\u66f4\u65b0pip\u7684\u7248\u672c\uff0c\u7136\u540e\u7528pip\u5b89\u88c5Scrapy<\/p>\n<p>1.brew install python \u901a\u8fc7\u5b89\u6392python\uff0c\u5347\u7ea7pip\u2013&gt;pip3<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ApplematoAir:~ apple$ brew install python\nUpdating Homebrew...\n...\n==&gt; python\nPython has been installed as\n  \/usr\/local\/bin\/python3\n\u00a0\nUnversioned symlinks `python`, `python-config`, `pip` etc. pointing to\n`python3`, `python3-config`, `pip3` etc., respectively, have been installed into\n  \/usr\/local\/opt\/python\/libexec\/bin\n\u00a0\nIf you need Homebrew's Python 2.7 run\n  brew install python@2\n\u00a0\nPip, setuptools, and wheel have been installed. To update them run\n  pip3 install --upgrade pip setuptools wheel\n\u00a0\nYou can install Python packages with\n  pip3 install \nThey will install into the site-package directory\n  \/usr\/local\/lib\/python3.7\/site-packages\n\u00a0\nSee: https:\/\/docs.brew.sh\/Homebrew-and-Python<\/pre>\n<p>2.pip\u56e0\u4e3apython\u7684\u5347\u7ea7\u53d8\u6210pip3\u4e86<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ApplematoAir:~ apple$ pip3 -V\npip 18.0 from \/usr\/local\/lib\/python3.7\/site-packages\/pip (python 3.7)<\/pre>\n<p>3.python2\u6253\u5f00\u65b9\u5f0f<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">python\nPython 2.7.10 (default, Oct  6 2017, 22:29:07) \n[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.<\/pre>\n<p>4.python3\u6253\u5f00\u65b9\u5f0f<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ApplematoAir:~ apple$ python3\nPython 3.7.0 (default, Aug 22 2018, 15:22:33) \n[Clang 9.1.0 (clang-902.0.39.2)] on darwin\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.<\/pre>\n<p>5.\u5b89\u88c5Scrapy<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pip3 install Scrapy\nCollecting Scrapy\n  Downloading https:\/\/files.pythonhosted.org\/packages\/5d\/12\/a6197eaf97385e96fd8ec56627749a6229a9b3178ad73866a0b1fb377379\/Scrapy-1.5.1-py2.py3-none-any.whl (249kB)\n...\nSuccessfully built Twisted PyDispatcher zope.interface pycparser\nInstalling collected packages: pyasn1, pyasn1-modules, attrs, asn1crypto, pycparser, cffi, idna, six, cryptography, pyOpenSSL, service-identity, lxml, zope.interface, constantly, incremental, Automat, hyperlink, PyHamcrest, Twisted, PyDispatcher, queuelib, cssselect, w3lib, parsel, Scrapy\nSuccessfully installed Automat-0.7.0 PyDispatcher-2.0.5 PyHamcrest-1.9.0 Scrapy-1.5.1 Twisted-18.7.0 asn1crypto-0.24.0 attrs-18.1.0 cffi-1.11.5 constantly-15.1.0 cryptography-2.3.1 cssselect-1.0.3 hyperlink-18.0.0 idna-2.7 incremental-17.5.0 lxml-4.2.4 parsel-1.5.0 pyOpenSSL-18.0.0 pyasn1-0.4.4 pyasn1-modules-0.2.2 pycparser-2.18 queuelib-1.5.0 service-identity-17.0.0 six-1.11.0 w3lib-1.19.0 zope.interface-4.5.0<\/pre>\n<p>6.\u6d4b\u8bd5\u8f6f\u4ef6\u662f\u5426\u5b89\u88c5\u6210\u529f<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">scrapy\nScrapy 1.5.1 - no active project\n\u00a0\nUsage:\n  scrapy [options] [args]\n\u00a0\nAvailable commands:\n  bench         Run quick benchmark test\n  fetch         Fetch a URL using the Scrapy downloader\n  genspider     Generate new spider using pre-defined templates\n  runspider     Run a self-contained spider (without creating a project)\n  settings      Get settings values\n  shell         Interactive scraping console\n  startproject  Create new project\n  version       Print Scrapy version\n  view          Open URL in browser, as seen by Scrapy\n\u00a0\n  [ more ]      More commands available when run from project directory\n\u00a0\nUse \"scrapy -h\" to see more info about a command<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>mac\u7cfb\u7edf\u81ea\u5e26python2.7\u7248\u672c\uff0c\u6240\u4ee5\u5728\u76f4\u63a5\u4f7f\u7528pip\u7684\u65f6\u5019\uff0c\u627e\u4e0d\u5230pip\uff0c\u6211\u4eec\u901a\u8fc7\u91cd\u65b0\u5b89\u88c5python\u66f4 [&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":[5],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-mac"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>mac \u5b89\u88c5Scrapy - \u6c88\u8d85\u7684\u535a\u5ba2<\/title>\n<meta name=\"description\" content=\"arm,dsp,pcb,fpga,zynq,\u5e38\u7528\u8f6f\u4ef6altium designed,\u7b97\u6cd5\" \/>\n<link rel=\"canonical\" href=\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-\u5b89\u88c5scrapy\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mac \u5b89\u88c5Scrapy - \u6c88\u8d85\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"arm,dsp,pcb,fpga,zynq,\u5e38\u7528\u8f6f\u4ef6altium designed,\u7b97\u6cd5\" \/>\n<meta property=\"og:url\" content=\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-\u5b89\u88c5scrapy\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6c88\u8d85\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-23T09:55:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-27T13:27:01+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\">\n\t<meta name=\"twitter:data1\" content=\"2 \u5206\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/116.62.123.213\/#website\",\"url\":\"http:\/\/116.62.123.213\/\",\"name\":\"\\u6c88\\u8d85\\u7684\\u535a\\u5ba2\",\"description\":\"arm,dsp,pcb,fpga,zynq,\\u5e38\\u7528\\u8f6f\\u4ef6altium designed,\\u7b97\\u6cd5\",\"publisher\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/116.62.123.213\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/#webpage\",\"url\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/\",\"name\":\"mac \\u5b89\\u88c5Scrapy - \\u6c88\\u8d85\\u7684\\u535a\\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/116.62.123.213\/#website\"},\"datePublished\":\"2019-07-23T09:55:15+00:00\",\"dateModified\":\"2019-07-27T13:27:01+00:00\",\"description\":\"arm,dsp,pcb,fpga,zynq,\\u5e38\\u7528\\u8f6f\\u4ef6altium designed,\\u7b97\\u6cd5\",\"breadcrumb\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/\",\"url\":\"http:\/\/116.62.123.213\/\",\"name\":\"\\u9996\\u9875\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/\",\"url\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/\",\"name\":\"mac \\u5b89\\u88c5Scrapy\"}}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/#webpage\"},\"author\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"headline\":\"mac \\u5b89\\u88c5Scrapy\",\"datePublished\":\"2019-07-23T09:55:15+00:00\",\"dateModified\":\"2019-07-27T13:27:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"keywords\":\"mac\",\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/116.62.123.213\/index.php\/2019\/07\/23\/mac-%e5%ae%89%e8%a3%85scrapy\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\",\"name\":\"\\u6c88\\u8d85\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/116.62.123.213\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/40261dfac05f2d465bb2abf96c1c4e8ceaf45876aec9d52e6b86ef40372d06f0?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/40261dfac05f2d465bb2abf96c1c4e8ceaf45876aec9d52e6b86ef40372d06f0?s=96&d=identicon&r=g\",\"caption\":\"\\u6c88\\u8d85\"},\"logo\":{\"@id\":\"http:\/\/116.62.123.213\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":1,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":109,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/108\/revisions\/109"}],"wp:attachment":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}