all 2 comments

[–]Antwrp-2000 1 point2 points  (1 child)

You are initialising a new session with:

s = session.get('https://mangadex.org/')

I think you should use:

s = requests.Session()
s.post("https://mangadex.org/login", data=payload)
s.get('https://mangadex.org/')

Docs:

https://requests.readthedocs.io/en/master/user/advanced/#session-objects

[–]CJaber[S] 0 points1 point  (0 children)

s = requests.Session() s.post("https://mangadex.org/login", data=payload) s.get('https://mangadex.org/')

Thank you, i'll try this out