Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

scrape email in a list from website python

#email regex found on stackoverflow
email_regex= "([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+)"
#to put all mails in a list from a string that refers to an html text code 
import re
import request
url = requests.get("PUT URL HERE")
html_text = url.text
emails = re.findall(email_regex, html_text)
Comment

PREVIOUS NEXT
Code Example
Python :: How to import HTML code into python with selenium webdriver 
Python :: how to change the disabled color in tkinter 
Python :: python show map with coordinates 
Python :: pyton count number of character in a word 
Python :: python *args 
Python :: bitwise and python image 
Python :: Python program to count Even and Odd numbers using lambda 
Python :: python crash course 
Python :: string in list py 
Python :: correlation between categorical and continuous variables 
Python :: how to make a dice program in python 
Python :: pandas dataframe to excel hyperlink length limit 
Python :: python prime number sum 
Python :: weighted average in python pandas 
Python :: django model remove duplicates 
Python :: pip install pandas Getting requirements to build wheel 
Python :: find prime in python list 
Python :: uses specific version python venv 
Python :: python convert string to list of dictionaries 
Python :: message handler python telegram bot example 
Python :: pandas dataframe map 
Python :: create virtualenv python3 
Python :: python returned non-zero exit status 1. 
Python :: python map() 
Python :: pass arguments with apply 
Python :: python code to demonstrate inheritance 
Python :: sum of multiples of 3 or 5 python 
Python :: most repeated character in a string python 
Python :: python import colors 
Python :: django forms error customize 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =