pyspider +mongodb 多个爬虫 result 如何指定 collection 名称
过去多啦不再A梦
过去多啦不再A梦 2017-04-28 09:05:44
0
1
883

如题,我现在需要爬取多个网站的内容,但是结果结构是一样的。现在的配置resultdb 是一个db,每个爬虫的结果分别是不同的集合。而我想把这些结果保存到指定db下的指定集合,这个如何设置。请大侠帮我解答下。

过去多啦不再A梦
过去多啦不再A梦

reply all (1)
刘奇

The built-in resultdb is only used to display preview results. If you change the structure, this function will be invalid. So after you get the results, you need to build your own database and handle how to store them.

http://docs.pyspider.org/en/latest/Working-with-Results/

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!