Advertisement
MeKLiN2

Untitled

Jan 29th, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. if cookie_jar:
  2. session.cookies.update(cookie_jar)
  3.  
  4. # Get session cookies and CSRF token
  5. csrf_token, csrf_cookie, session_cookie = login()
  6.  
  7. # Save cookies to the jar
  8. cookie_jar.set('_csrf', csrf_cookie)
  9. cookie_jar.set('StumbleChatV2', session_cookie)
  10. session.cookies.update(cookie_jar)
  11.  
  12. # Headers for getting WebSocket endpoint
  13. headers = {
  14. 'content-type': 'application/json;charset=UTF-8',
  15. 'cookie': f'_csrf={csrf_cookie}; StumbleChatV2={session_cookie}',
  16. 'csrf-token': csrf_token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement