Skip to content

Lack of ignore cookies option #64

@bfsoares

Description

@bfsoares

Hi! In a particular case of use of Selenium-Requests I realize that is impossible to ignore cookies when making a request, even using the kwarg cookies=[]. Looking in the code I saw that this option is not used as primary option, but only to give extra cookie(s) for those of the session, that are always used.
To solve my problem, I created the boolean kwarg "ignore_cookies", including the following code in line 209 of request.py file:

    if kwargs.get("ignore_cookies", False):
        del kwargs["ignore_cookies"]
        del kwargs["cookies"]

To make Selenium-Request more robust and useful to other users, I would like to suggest this change for this module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions