Advertisement
dereksir

Untitled

Aug 10th, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import requests
  2.  
  3. url = "http://localhost:8191/v1"
  4. headers = {"Content-Type": "application/json"}
  5.  
  6. data = {
  7.     "cmd": "sessions.create",
  8.     "session": "session_ID",
  9.     "url": "https://www.google.com/",
  10.     "maxTimeout": 60000
  11. }
  12.  
  13. response = requests.post(url, headers=headers, json=data)
  14.  
  15. print(response.content)
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement