Authenticate in site using python

0

I would like to login to a site, however using a python script. I used lib request

import requests
from bs4 import BeautifulSoup

dados = {'login':'XXX','password':'YYY'}
r = requests.post("http://123box.ru/blogs/nagdiel222/slayer-stain-of-mind-4-live-tracks/", data=dados)

print(r.text)

From what I've seen, it's not working. Still, I would use 'BeautifulSoup' to extract html data after authentication. I would like a force on this issue!

    
asked by anonymous 13.04.2018 / 19:25

0 answers