cd /usr/local/anaconda3/lib/python3.6/site-packages/pyspider/webui
find ./ -type f |xargs grep cdn|grep -Po "path=\'([\s\S]+?)\'"|while read i; do urls=`echo $i|sed -e "s/path=//g" -e "s#'##g"`; curl -o ./static/ajax/libs/$urls --create-dirs ;do
配置 nginx
location ~ /ajax {
root /usr/local/anaconda3/lib/python3.6/site-packages/pyspider/webui/static/;
autoindex on;
}
修改run.py
313 @click.option('--cdn', default='//cdnjs.cloudflare.com/ajax/libs/',
修改成自己的地址就可以
阅读(2437) | 评论(0) | 转发(0) |