How to solve TypeError: post() missing 1 required positional argument: 'url' -- requests

Solution

import requests

url = 'https://url.com'
myobj = {'somekey': 'somevalue'}

x = requests.post(url, data=myobj)

For more information:

Python Requests post Method - W3Schools