scrapy custom_settings
生活随笔
收集整理的這篇文章主要介紹了
scrapy custom_settings
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
單獨爬蟲配置
custom_settings = {'SOME_SETTING': 'some value',}
不同爬蟲pipeline設置
custom_settings = {'ITEM_PIPELINES': {'video.pipelines.VideoPipeline': 301,}
}
cookie設置
custom_settings = {'COOKIES_ENABLED':True, # 在配置文件settings中可以設置成False, 在這個spider中這樣設置就可以開啟cookies了,其他的配置一樣適用}?
settings/在settings同目錄下新建custom_settings.py
?
在spider文件中引入custom_settings
?
?
總結
以上是生活随笔為你收集整理的scrapy custom_settings的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Echarts可视化 之custom自定
- 下一篇: CMake笔记:add_custom_c