콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

Hi

I try to simulate the functionallity which happens while exporting a record. This url is used:
web/export/csv

I analysed whats happening and if I set the session_id and token manually it's working fine. Now what I try to do is to get the session_id in my script but I have no success so far.


session = requests.Session()
session_id = session.get('http://url').cookies.get_dict()["session_id"]


I get a session_id with the code above but I guess it's not from a authenticated user.

So my question is how do I get a session_id from a authenticated user? I can login with xmlrpc interface just fine, but I didn't find any information how to get to the session_id.

Thank you for your help

아바타
취소
작성자 베스트 답변

The solution [1] was to make a request to web/session/authenticate to get the session_id of a authenticated user.

[1] http://www.vernichon.fr/?p=1179


아바타
취소
관련 게시물 답글 화면 활동
0
11월 15
5775
1
11월 22
3873
0
12월 21
3067
1
11월 16
9092
2
11월 22
6451