如何在浏览器端爬取信息(只是配置的部分)----设置环境

前言:曾经在一个台湾讲师的指导下配置过,今天在配置下,这只是中间环节

  1 Microsoft Windows [版本 10.0.14393]
  2 (c) 2016 Microsoft Corporation。保留所有权利。
  3 
  4 C:\Users\Administrator>pip install requests
  5 Collecting requests
  6   Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
  7     100% |████████████████████████████████| 92kB 40kB/s
  8 Collecting urllib3<1.23,>=1.21.1 (from requests)
  9   Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
 10     100% |████████████████████████████████| 133kB 37kB/s
 11 Collecting idna<2.7,>=2.5 (from requests)
 12   Downloading idna-2.6-py2.py3-none-any.whl (56kB)
 13     100% |████████████████████████████████| 61kB 23kB/s
 14 Collecting certifi>=2017.4.17 (from requests)
 15   Downloading certifi-2017.11.5-py2.py3-none-any.whl (330kB)
 16     100% |████████████████████████████████| 337kB 83kB/s
 17 Collecting chardet<3.1.0,>=3.0.2 (from requests)
 18   Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)
 19     100% |████████████████████████████████| 143kB 77kB/s
 20 Installing collected packages: urllib3, idna, certifi, chardet, requests
 21 Successfully installed certifi-2017.11.5 chardet-3.0.4 idna-2.6 requests-2.18.4 urllib3-1.22
 22 
 23 C:\Users\Administrator>pip install Beautifulsoup4
 24 Collecting Beautifulsoup4
 25   Downloading beautifulsoup4-4.6.0-py3-none-any.whl (86kB)
 26     100% |████████████████████████████████| 92kB 204kB/s
 27 Installing collected packages: Beautifulsoup4
 28 Successfully installed Beautifulsoup4-4.6.0
 29 
 30 C:\Users\Administrator>pip   install   jupyter
 31 Collecting jupyter
 32   Downloading jupyter-1.0.0-py2.py3-none-any.whl
 33 Collecting ipykernel (from jupyter)
 34   Downloading ipykernel-4.6.1-py3-none-any.whl (104kB)
 35     100% |████████████████████████████████| 112kB 36kB/s
 36 Collecting nbconvert (from jupyter)
 37   Downloading nbconvert-5.3.1-py2.py3-none-any.whl (387kB)
 38     100% |████████████████████████████████| 389kB 17kB/s
 39 Collecting jupyter-console (from jupyter)
 40   Downloading jupyter_console-5.2.0-py2.py3-none-any.whl
 41 Collecting notebook (from jupyter)
 42   Downloading notebook-5.2.1-py2.py3-none-any.whl (8.0MB)
 43     100% |████████████████████████████████| 8.0MB 55kB/s
 44 Collecting qtconsole (from jupyter)
 45   Downloading qtconsole-4.3.1-py2.py3-none-any.whl (108kB)
 46     100% |████████████████████████████████| 112kB 83kB/s
 47 Collecting ipywidgets (from jupyter)
 48   Downloading ipywidgets-7.0.5-py2.py3-none-any.whl (68kB)
 49     100% |████████████████████████████████| 71kB 53kB/s
 50 Collecting traitlets>=4.1.0 (from ipykernel->jupyter)
 51   Downloading traitlets-4.3.2-py2.py3-none-any.whl (74kB)
 52     100% |████████████████████████████████| 81kB 42kB/s
 53 Collecting ipython>=4.0.0 (from ipykernel->jupyter)
 54   Downloading ipython-6.2.1-py3-none-any.whl (745kB)
 55     100% |████████████████████████████████| 747kB 63kB/s
 56 Collecting tornado>=4.0 (from ipykernel->jupyter)
 57   Downloading tornado-4.5.2-cp36-cp36m-win_amd64.whl (422kB)
 58     100% |████████████████████████████████| 430kB 48kB/s
 59 Collecting jupyter-client (from ipykernel->jupyter)
 60   Downloading jupyter_client-5.1.0-py2.py3-none-any.whl (84kB)
 61     100% |████████████████████████████████| 92kB 25kB/s
 62 Collecting nbformat>=4.4 (from nbconvert->jupyter)
 63   Downloading nbformat-4.4.0-py2.py3-none-any.whl (155kB)
 64     100% |████████████████████████████████| 163kB 29kB/s
 65 Collecting pygments (from nbconvert->jupyter)
 66   Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
 67     100% |████████████████████████████████| 849kB 64kB/s
 68 Collecting jupyter-core (from nbconvert->jupyter)
 69   Downloading jupyter_core-4.4.0-py2.py3-none-any.whl (126kB)
 70     100% |████████████████████████████████| 133kB 75kB/s
 71 Collecting bleach (from nbconvert->jupyter)
 72   Downloading bleach-2.1.1-py2.py3-none-any.whl
 73 Collecting jinja2 (from nbconvert->jupyter)
 74   Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)
 75     100% |████████████████████████████████| 133kB 30kB/s
 76 Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
 77   Downloading pandocfilters-1.4.2.tar.gz
 78 Collecting entrypoints>=0.2.2 (from nbconvert->jupyter)
 79   Downloading entrypoints-0.2.3-py2.py3-none-any.whl
 80 Collecting testpath (from nbconvert->jupyter)
 81   Downloading testpath-0.3.1-py2.py3-none-any.whl (161kB)
 82     100% |████████████████████████████████| 163kB 62kB/s
 83 Collecting mistune>=0.7.4 (from nbconvert->jupyter)
 84   Downloading mistune-0.8.1-py2.py3-none-any.whl
 85 Collecting prompt-toolkit<2.0.0,>=1.0.0 (from jupyter-console->jupyter)
 86   Downloading prompt_toolkit-1.0.15-py3-none-any.whl (247kB)
 87     100% |████████████████████████████████| 256kB 32kB/s
 88 Collecting ipython-genutils (from notebook->jupyter)
 89   Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl
 90 Collecting widgetsnbextension~=3.0.0 (from ipywidgets->jupyter)
 91   Downloading widgetsnbextension-3.0.8-py2.py3-none-any.whl (2.2MB)
 92     100% |████████████████████████████████| 2.2MB 43kB/s
 93 Collecting six (from traitlets>=4.1.0->ipykernel->jupyter)
 94   Downloading six-1.11.0-py2.py3-none-any.whl
 95 Collecting decorator (from traitlets>=4.1.0->ipykernel->jupyter)
 96   Downloading decorator-4.1.2-py2.py3-none-any.whl
 97 Collecting simplegeneric>0.8 (from ipython>=4.0.0->ipykernel->jupyter)
 98   Downloading simplegeneric-0.8.1.zip
 99 Collecting jedi>=0.10 (from ipython>=4.0.0->ipykernel->jupyter)
100   Downloading jedi-0.11.0-py2.py3-none-any.whl (146kB)
101     100% |████████████████████████████████| 153kB 83kB/s
102 Collecting colorama; sys_platform == "win32" (from ipython>=4.0.0->ipykernel->jupyter)
103   Downloading colorama-0.3.9-py2.py3-none-any.whl
104 Collecting pickleshare (from ipython>=4.0.0->ipykernel->jupyter)
105   Downloading pickleshare-0.7.4-py2.py3-none-any.whl
106 Requirement already satisfied: setuptools>=18.5 in d:\soft\study soft\python\python3.6\lib\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
107 Collecting pyzmq>=13 (from jupyter-client->ipykernel->jupyter)
108   Downloading pyzmq-16.0.3-cp36-cp36m-win_amd64.whl (930kB)
109     100% |████████████████████████████████| 931kB 124kB/s
110 Collecting python-dateutil>=2.1 (from jupyter-client->ipykernel->jupyter)
111   Downloading python_dateutil-2.6.1-py2.py3-none-any.whl (194kB)
112     100% |████████████████████████████████| 194kB 88kB/s
113 Collecting jsonschema!=2.5.0,>=2.4 (from nbformat>=4.4->nbconvert->jupyter)
114   Downloading jsonschema-2.6.0-py2.py3-none-any.whl
115 Collecting html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre (from bleach->nbconvert->jupyter)
116   Downloading html5lib-1.0b10-py2.py3-none-any.whl (112kB)
117     100% |████████████████████████████████| 112kB 85kB/s
118 Collecting MarkupSafe>=0.23 (from jinja2->nbconvert->jupyter)
119   Downloading MarkupSafe-1.0.tar.gz
120 Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter)
121   Downloading wcwidth-0.1.7-py2.py3-none-any.whl
122 Collecting parso==0.1.0 (from jedi>=0.10->ipython>=4.0.0->ipykernel->jupyter)
123   Downloading parso-0.1.0-py2.py3-none-any.whl (89kB)
124     100% |████████████████████████████████| 92kB 37kB/s
125 Collecting webencodings (from html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre->bleach->nbconvert->jupyter)
126   Downloading webencodings-0.5.1-py2.py3-none-any.whl
127 Installing collected packages: six, decorator, ipython-genutils, traitlets, simplegeneric, parso, jedi, colorama, pickleshare, pygments, wcwidth, prompt-toolkit, ipython, tornado, pyzmq, jupyter-core, python-dateutil, jupyter-client, ipykernel, jsonschema, nbformat, webencodings, html5lib, bleach, MarkupSafe, jinja2, pandocfilters, entrypoints, testpath, mistune, nbconvert, jupyter-console, notebook, qtconsole, widgetsnbextension, ipywidgets, jupyter
128   Running setup.py install for simplegeneric ... done
129   Running setup.py install for MarkupSafe ... done
130   Running setup.py install for pandocfilters ... done
131 Successfully installed MarkupSafe-1.0 bleach-2.1.1 colorama-0.3.9 decorator-4.1.2 entrypoints-0.2.3 html5lib-1.0b10 ipykernel-4.6.1 ipython-6.2.1 ipython-genutils-0.2.0 ipywidgets-7.0.5 jedi-0.11.0 jinja2-2.10 jsonschema-2.6.0 jupyter-1.0.0 jupyter-client-5.1.0 jupyter-console-5.2.0 jupyter-core-4.4.0 mistune-0.8.1 nbconvert-5.3.1 nbformat-4.4.0 notebook-5.2.1 pandocfilters-1.4.2 parso-0.1.0 pickleshare-0.7.4 prompt-toolkit-1.0.15 pygments-2.2.0 python-dateutil-2.6.1 pyzmq-16.0.3 qtconsole-4.3.1 simplegeneric-0.8.1 six-1.11.0 testpath-0.3.1 tornado-4.5.2 traitlets-4.3.2 wcwidth-0.1.7 webencodings-0.5.1 widgetsnbextension-3.0.8
132 
133 C:\Users\Administrator>jupyter  notebook
134 [I 02:23:10.375 NotebookApp] Writing notebook server cookie secret to C:\Users\Administrator\AppData\Roaming\jupyter\runtime\notebook_cookie_secret
135 [I 02:23:11.015 NotebookApp] Serving notebooks from local directory: C:\Users\Administrator
136 [I 02:23:11.015 NotebookApp] 0 active kernels
137 [I 02:23:11.019 NotebookApp] The Jupyter Notebook is running at:
138 [I 02:23:11.022 NotebookApp] http://localhost:8888/?token=9e1116b623f912eeaece5a56f5fb3d4a51bfeedd30a6a36a
139 [I 02:23:11.023 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
140 [C 02:23:11.026 NotebookApp]
141 
142     Copy/paste this URL into your browser when you connect for the first time,
143     to login with a token:
144         http://localhost:8888/?token=9e1116b623f912eeaece5a56f5fb3d4a51bfeedd30a6a36a
145 [I 02:23:11.662 NotebookApp] Accepting one-time-token-authenticated connection from ::1
146 [W 02:23:13.188 NotebookApp] 404 GET /static/components/moment/locale/zh-cn.js?v=20171119022310 (::1) 14.02ms referer=http://localhost:8888/tree
147 [W 02:23:13.194 NotebookApp] 404 GET /i18n/zh-CN/LC_MESSAGES/nbjs.json?v=20171119022310 (::1) 4.00ms referer=http://localhost:8888/tree

 

posted @ 2017-11-19 02:33  glacial_water  阅读(566)  评论(0编辑  收藏  举报
Document