drdrdrdrdr2
drdrdrdrdr2

Reputation: 159

How to open new tab in browser using python and send POST data?

I am using Python's webbrowser module and I think it only supports opening a new tab in my browser. I like to send data using POST request using python and open that in my browser. Is there any library for that?

Upvotes: 2

Views: 2258

Answers (1)

Yuval Keysar
Yuval Keysar

Reputation: 66

you can use

import os
url = "google.com"
os.system('start chrome ' + url)

for open new tab and you can use

import requests
request.post(url,json/data)

for post request

Upvotes: 1

Related Questions