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 ability to customize cookie dir #128

Merged
merged 2 commits into from
Oct 24, 2020
Merged

Add ability to customize cookie dir #128

merged 2 commits into from
Oct 24, 2020

Conversation

tomquirk
Copy link
Owner

Add ability to customize cookie dir, and also default to something better: ~/.linkedin-api/.

Customize cookies with cookies_dir option.

Fixes #107

And, default to a directory that is outside the module
(~/.linkedin_api/)
@tomquirk tomquirk merged commit 97ba026 into master Oct 24, 2020
burakyilmaz321 added a commit to burakyilmaz321/linkedin-api that referenced this pull request Nov 1, 2020
tomquirk#128 adds the ability to customize cookie dir. But
it also allows passing `None` as an argument for `cookies_dir`, which
raises `TypeError` while calling `os.path.exists(self.cookie_dir)`.

Setting `cookies_dir`'s default value to `None` and handling `None`
while setting it to the `self` fixes this unexpected behavior.
@tomquirk tomquirk deleted the custom-cookie-dir branch August 31, 2024 11:43
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.

Package fails to authenticate on Microsoft Azure, can't write your cookie files to read-only file system
1 participant