Skip to content

Commit

Permalink
session example on all reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
pim97 committed Jun 22, 2023
1 parent 6eca35a commit 9906685
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scrappeycom/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ def run_test():
# }

get_request_result = scrappey.get({
'session': session['session'],
'url': 'https://httpbin.rs/get',
'session': session['session'],
})
print('GET Request Result:', get_request_result)

post_request_result = scrappey.post({
"url": "https://httpbin.rs/post",
"postData": "test=test&test2=test2"
"postData": "test=test&test2=test2",
'session': session['session'],
})
print('POST Request Result:', post_request_result)

Expand All @@ -39,7 +40,8 @@ def run_test():
"postData": "{\"email\":\"email\",\"password\":\"password\"}",
"customHeaders": {
"content-type": "application/json"
}
},
'session': session['session'],
})
print('POST Request Result:', post_request_result_json)

Expand Down

0 comments on commit 9906685

Please sign in to comment.