因为 pyspider 框架前后端不分离, 返回的页面是用的cdn 里面的js包, cdn被墙
了,
解决: 将 https://cdnjs.cloudflare.com/xxx
做如下替换 https://cdn.bootcdn.net/xxx
即: 将 cdnjs.cloudflare.com
转换为 cdn.bootcdn.net
**
- grep ‘cloudflare’ /usr/local/lib/python3.6/site-packages/pyspider -r 搜到文件
/usr/local/lib/python3.6/site-packages/pyspider/run.py
- 将域名做替换: sed -i ‘s/cdnjs.cloudflare.com/cdn.bootcdn.net/g’ /usr/local/lib/python3.6/site-packages/pyspider/run.py
最后!!! 重启pyspider, 完美解决, skr~~~