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

Provide more examples / detailed docs on custom request header override per spider #176

Open
DaniruKun opened this issue Mar 10, 2021 · 3 comments
Labels
docs good first issue Good for newcomers

Comments

@DaniruKun
Copy link

I have a situation where I need to supply a custom consent cookie to a specific spider. While it is described how to do it for the middleware, it is not very clear still how to pass e.g. custom headers to the init/1 callback of Crawly.Spider.

Even a small example or such will help and can help with writing a good example in docs, thanks!

@darkslategrey
Copy link
Contributor

Why not use start_requests: ?

def init() do

@Ziinc
Copy link
Collaborator

Ziinc commented Nov 26, 2022

@Ziinc Ziinc closed this as completed Nov 26, 2022
@Ziinc Ziinc reopened this Nov 26, 2022
@Ziinc
Copy link
Collaborator

Ziinc commented Nov 26, 2022

@Ziinc Ziinc added good first issue Good for newcomers docs labels Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants