Open nup002 opened 6 years ago
bumping
I think I have found a workaround. It simply requires all requests to be done with a Session object. You would first create a Session object, login to the website with the Session using a tool such as Selenium, and then pass the Session object to Newspaper to be used in all future requests.
Changes needed: In: configuration.py
In: network.py
When you have logged into your Session object with Selenium, you set the session parameter in Configuration.py to be this object.
@nup002, what about a website that uses logins and cookies?
I would also like to know any good practice to use newspaper for website with login, especially oauth2 authentication
In case anyone finds this via Google, check out #668 as well, has some helpful suggestions.
@nup002, could you post an example of the way you can stay log in and bypass cookies
This is not so much an issue as a suggestion/request. This suggestion came up as I needed to pull articles from a website with a paywall. I have a user, but could not for the life of me figure out how get a logged in session going in Newspaper.
If the solution is simple and I am just too daft to understand it, feel free to come with suggestions.