第一种方法

var lst = db.visits_201501.find({
    "url":/http:\/\/m.baidu.com\/application/
    });
while(lst.hasNext())
{
    db.hyyy_2015.insert(lst.next());
    }

第二种

db.visits_201501.find({
        $or:[{"url":{$regex:/http:\/\/(www|m).baidu.com\/netshow\/(.*)\/news(.*).htm/}},
        {"url":{$regex:/http:\/\/www.baidu.com\/hot\/(.*)/}}]
        }).forEach(function(x){
    db.hyyy.insert(x);
    })

 

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-09-13
  • 2021-06-04
猜你喜欢
  • 2021-11-04
  • 2022-12-23
  • 2021-05-25
  • 2022-01-01
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
相关资源
相似解决方案