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

[Fantia] Keyword rewrite #4624

Closed
wants to merge 3 commits into from
Closed

[Fantia] Keyword rewrite #4624

wants to merge 3 commits into from

Conversation

shrublet
Copy link

@shrublet shrublet commented Oct 5, 2023

I wanted to rewrite a part of the extractor to include some useful keywords that weren't exposed before and also redo how they're named as to be more consistent with other extractors.

I don't know if the method is sound, but I build a template dictionary with keys that I want to have in keywords, then with _build_new_dict, it goes through the specified keys/subkeys from _template_post recursively and returns a newly-built dictionary. I did it this way as it seems for Fantia specifically, there's a lot of garbage in the response that the previous implementation got around by manually specifying what they wanted. While I could've also implemented the keywords like before manually, I thought this might be a little more flexible.

Apologies in advanced as I'm a very novice coder! Let me know if it looks okay.

@shrublet shrublet closed this Jan 21, 2024
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

Successfully merging this pull request may close these issues.

1 participant