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

Unable to gunzip response #38

Closed
Leezj9671 opened this issue Mar 11, 2023 · 1 comment
Closed

Unable to gunzip response #38

Leezj9671 opened this issue Mar 11, 2023 · 1 comment

Comments

@Leezj9671
Copy link

I used python code like that from example:

from usp.tree import sitemap_tree_for_homepage

tree = sitemap_tree_for_homepage('https://www.nytimes.com/')
print(tree)

And it raised error:

2023-03-11 12:45:00,197 ERROR usp.helpers [26140/MainThread]: Unable to gunzip response <usp.web_client.requests_client.RequestsWebClientSuccessResponse object at 0x00000244E6BAF280>, maybe it's a non-gzipped sitemap: Unable to gunzip data: Not a gzipped file (b' <')
@Leezj9671
Copy link
Author

Oh I got it. It was checking URLs. :)

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

No branches or pull requests

1 participant