用scrapy写了个爬虫,用casperjs写了个模拟登陆的文件,要在scrapy的爬虫文件中调用casperjs的执行,怎么写?
python2.7 python-爬虫 scrapy
这个文件是可执行的么?如.bat或.sh。
如果是的话,那就有好多方法。
import os import commands os.system('./xxx.sh') status, output = commands.getstatusoutput('./xxx.sh') os.popen('./xxx.sh')
手机码的,还未验证。
scrapy抓取的GBK编码的网页,怎么转为utf-8?
python的编码问题,一个小例子让人很困惑
scrapy爬虫,其中一个页面带有ajax请求和另外一个链接,这两个分支应该怎么处理?
scrapy:TypeError: expected string or buffer
scrapy自动翻页采集,第二页跳转后,爬虫自动结束
windows下python控制台输出中文乱码问题?