Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

爬取不同域名content_url_regexes怎么填写呢 #141

Open
ShareDo9 opened this issue Jun 20, 2019 · 0 comments
Open

爬取不同域名content_url_regexes怎么填写呢 #141

ShareDo9 opened this issue Jun 20, 2019 · 0 comments

Comments

@ShareDo9
Copy link

爬取不同域名这样写一直不走on_scan_page 和 on_list_page这两个方法,只走on_content_page

'domains' => array(
    'zhongshang114',
    'detail.zhongshang114.com'
),
'scan_urls' => array(
    'http://detail.zhongshang114.com/list.php?catid=91400'            
),
'list_url_regexes' => array(
    "http://detail.zhongshang114.com/list.php\?catid=91400\&page=\d+"         // 公司列表页
),
'content_url_regexes' => array(

// "http://detail.zhongshang114.com/list.php\?catid=91400\&page=\d+",
"http://.*?.zhongshang114.com/"
),

这个content_url_regexes该怎么写呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant