Dec-29-2019, 11:33 AM
Remove
But looking at site so will this not work.
This is from data send:
I think using selenium will be easier here,then should not need to find these values.
How setup for Requests would look.
.text
end of line 12.But looking at site so will this not work.
This is from data send:
email: [email protected] ba1aadd6: 4xxxx _nnc: 3:15xxxxxxxx submit: SubmitSo need to parse out this values or it will not work.
I think using selenium will be easier here,then should not need to find these values.
How setup for Requests would look.
import requests from bs4 import BeautifulSoup headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36' } # Need to first find ba1aadd6 and _nnc vaules first params = { email: [email protected] ba1aadd6: 4xxxx _nnc: 3:15xxxxxxxx submit: Submit } with requests.Session() as s: s.post('https://www.etsy.com/forgot_password?email=', headers=headers, params=params) # logged in! session cookies saved for future requests response = s.get('https://www.etsy.com/forgot_password?email=') # cookies sent automatically! # Example send to BS soup = BeautifulSoup(response.content, 'lxml') #welcome = soup.find('title').text #print(welcome)