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

Tumblr Extractor returns 401 due to lack of api_key check in _call #5994

Closed
drunk-moe opened this issue Aug 11, 2024 · 0 comments
Closed

Tumblr Extractor returns 401 due to lack of api_key check in _call #5994

drunk-moe opened this issue Aug 11, 2024 · 0 comments

Comments

@drunk-moe
Copy link

I was able to fix this by editing the extractor/tumblr.py and adding the same if self.api_key check that's in _pagination. Not sure if anything else needs to be changed so I don't want to open a PR :') but thought it might

    def _call(self, endpoint, params, **kwargs):
        url = self.ROOT + endpoint
        kwargs["params"] = params
        if self.api_key:
            params["api_key"] = self.api_key

Let me know if anything else is needed.

mikf added a commit that referenced this issue Aug 12, 2024
@mikf mikf closed this as completed Aug 12, 2024
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