Advertisement
dereksir

Untitled

Aug 10th, 2023 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 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.     "url": "https://www.google.com/",
  9.     "maxTimeout": 60000
  10. }
  11.  
  12. response = requests.post(url, headers=headers, json=data)
  13.  
  14. print(response.content)
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement