摘要:
response.xpath('/html').extract() [u'...'] response.xpath('/html/body/div/h1').extract() [u'Example Domain'] response.xpath('/html/body/div/p').extract() [u'This domain… permission.', u'More inform...
阅读全文
posted @ 2017-06-22 15:14
jzfan
阅读(159)
推荐(0)
摘要:
1. command 2. open the py file, modify the start_url and parse function 3. save the result 4. multiple items from a page 5. get the nex page url 6. sc
阅读全文
posted @ 2017-06-05 10:25
jzfan
阅读(1480)
推荐(0)
摘要:
1. in acconda prompt, run shell 2. test response 3. css selector 4. get html by css selector 5. get text, it returns a array 6. get single text, it re
阅读全文
posted @ 2017-06-05 10:05
jzfan
阅读(200)
推荐(0)
摘要:
修改webpack.config.js,添加host,disableHostCheck选项
阅读全文
posted @ 2017-05-26 10:36
jzfan
阅读(4864)
推荐(0)
摘要:
upstream project { server 22.22.22.2:3000; server 22.22.22.3:3000; server 22.22.22.5:3000; } server { listen 80; location / { proxy_pass http://project; } location ~* \.(css|js|...
阅读全文
posted @ 2017-05-13 11:22
jzfan
阅读(207)
推荐(0)
摘要:
sudo usermod -d /path/to/new/home -m username sudo mv /old/home /new/home
阅读全文
posted @ 2017-05-05 10:20
jzfan
阅读(10218)
推荐(0)
posted @ 2017-04-20 15:28
jzfan
阅读(428)
推荐(0)
摘要:
apt install nodejs apt install npm npm install -g n n latest ---- or --- n stablenpm install -g npm
阅读全文
posted @ 2017-04-12 13:40
jzfan
阅读(138)
推荐(0)
posted @ 2017-04-10 10:33
jzfan
阅读(483)
推荐(0)
摘要:
SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install node-sass --save-dev
阅读全文
posted @ 2017-04-01 16:43
jzfan
阅读(182)
推荐(0)