Request ile login olmak

Merhaba arkadaslar instagrama login olmaya calıstım requests modulu ile ama olamıyorum beautifulsoup ile title cektim her iki titlede login yazısı goruyorum halen

import requests
from bs4 import BeautifulSoup

payload = {
‘username’: ‘username’,
‘password’: ‘password’
}
LOGIN_URL=“http://instagram.com/accounts/login
page=“https://www.instagram.com/accounts/edit/

with requests.Session() as s:
p = s.post(LOGIN_URL, data=payload)
source=BeautifulSoup(p.content,“html.parser”)
source=source.find_all(“title”)
print(source)
r = s.get(page)
source=BeautifulSoup(r.content,“html.parser”)
source=source.find_all(“title”)
print(source)