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

add optional argument to requests web client, to ignore SSL checking #37

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

japherwocky
Copy link

Hello -

This adds a very simple verify argument to the requests based web client. You can use it pretty easily for issues like #33 by doing something like:

        from usp.tree import sitemap_tree_for_homepage
        from usp.web_client.requests_client import RequestsWebClient

        client = RequestsWebClient(verify=False)  # this PR adds the verify kwarg, which defaults to True
        client.__USER_AGENT = 'Friendly Spider /{}'

        tree = sitemap_tree_for_homepage('https://nytimes.com', client)

antonialoytorrens-ikaue added a commit to antonialoytorrens-ikaue/ultimate-sitemap-parser that referenced this pull request Jan 9, 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.

None yet

1 participant