| from bs4 import BeautifulSoup
|
| import requests
|
| import re
|
|
|
| response = requests.get('https://www.arborstonestorageponcacity.com/blog')
|
| soup = BeautifulSoup(response.content, 'lxml')
|
| regex = re.compile(("([a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`"
|
| "{|}~-]+)*(@|\sat\s)(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(\.|"
|
| "\sdot\s))+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)"))
|
|
|
|
|
| for match in re.findall(regex, response.text):
|
| print(match)
|