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

How to add a search extractor for a site (e.g. hentai.cafe) #1345

Closed
mo-han opened this issue Feb 26, 2021 · 1 comment
Closed

How to add a search extractor for a site (e.g. hentai.cafe) #1345

mo-han opened this issue Feb 26, 2021 · 1 comment

Comments

@mo-han
Copy link
Contributor

mo-han commented Feb 26, 2021

I need a search extractor for hentai.cafe which is not implemented yet. I'd like to try to do that by myself, but don't know the design protocol (e.g. how to guaratee that search extractor class is imported and called correctly).
Of course it would be very appreciated if you would implement it.

@mikf
Copy link
Owner

mikf commented Mar 4, 2021

You do yield Message.Queue, url, data with data being a dict that contains an "_extractor" field with the extractor class that should handle url as value. For example

data = {"_extractor": HentaicafeMangaExtractor}

yield Message.Queue, url, data

Of course it would be very appreciated if you would implement it.

f59e636

@mikf mikf closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants