Answer the question
In order to leave comments, you need to log in
How to parse mail using BeautifulSoup in Python 3.6?
Hello.
I need to pull mail from https://temp-mail.org.
This is how the code of the element containing the mail looks like:
I wrote a small codec:
import requests
from bs4 import BeautifulSoup
url = 'https://temp-mail.org'
page = requests.get(url).text
soup = BeautifulSoup(page)
mail = soup.find('div', {'class': 'yourmail'})
print(mail)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question