I\'m trying to login a website for some scraping using Python and requests library, I am trying the following (which doesn\'t work):
import requests headers
Send a POST request with content type = 'form-data':
import requests files = { 'username': (None, 'myusername'), 'password': (None, 'mypassword'), } response = requests.post('https://example.com/abc', files=files)