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

A solution to the challenge error when deploying to a server #289

Open
wants to merge 82 commits into
base: master
Choose a base branch
from

Conversation

farhankhot
Copy link

First of all, thank you for this amazing API! I have tried to solve the challenge error with the help of one's own cookies (you can get it from your LinkedIn homepage). I modified the set_session_cookies to accept cookies and converted them into a CookieJar object. This bypasses the challenge error that may arise due to a difference in IP address. All the functions then work as normal. Getting one's cookies from a valid LinkedIn login session is left up to the user (this is easier to do if you are using it in a chrome extension like I am).

@chrishubert
Copy link

Thanks for the pull request,
To ease the review, would you mind minimizing the changes in the file?
You added several print, modified the headers, it makes it difficult to follow your logic.
I'd recommend only editing the bare minimum 🙏

@farhankhot
Copy link
Author

Hi! Thanks for the comment. Should I send a new pull request? I am unsure of how to proceed.

@chrishubert
Copy link

@farhankhot, you should the same pull request, your new commits will be added automatically

@Sorrycion
Copy link

@farhankhot how are you getting the cookies? You said that you are using an extension? Which one?

Is there anything else to setup besides the extension?

@farhankhot
Copy link
Author

@farhankhot how are you getting the cookies? You said that you are using an extension? Which one?

Is there anything else to setup besides the extension?

You can create a simple extension that just reads the cookies that are stored in the browser. Let me know if you need some more guidance!

@Sorrycion
Copy link

@farhankhot how are you getting the cookies? You said that you are using an extension? Which one?
Is there anything else to setup besides the extension?

You can create a simple extension that just reads the cookies that are stored in the browser. Let me know if you need some more guidance!

Thank you, I was able to do a Chrome extension and get the cookies from there.

I also noticed that with the extension you can get the API calls and responses from Network. So you don't need to call the API again, and reduces the risk of being blocked because of too many calls.

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

3 participants