owner888 / phpspider

《我用爬虫一天时间“偷了”知乎一百万用户,只为证明PHP是世界上最好的语言 》所使用的程序
3.49k stars 1.18k forks source link

正则匹配失效? #120

Open GENG824 opened 6 years ago

GENG824 commented 6 years ago

我已经切换成selector_type 切换为 regex 了,把demo里面的'selector' => "//*[@id='single-next-link']"改成了 'selector' => '/<div\sclass="content">(.|\s)+<\/div>/i',但是还是抓不到内容 wan是 ”Selector demo_content[/<div\sclass="content">(.|\s)+<\/div>/i] not found, It's a must“,why?