Skip to content

Allow spider to specify custom callback #1

@seagatesoft

Description

@seagatesoft

Currently we can't specify callback for requests generated by HCF middleware. I am proposing new parameter on request.meta to allow the spider to specify the desired callback:

On the spider:
yield Request(url, meta={'use_hcf': True, 'hcf_params': {'qdata': {'callback': 'parse_item'}}})

This simple modification will implement that: seagatesoft@2adab90

I'll create the PR if this issue approved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions