Nov-01-2016, 03:59 PM
Here is a email scraper:
Could some who know what they are doing read the commits and let me know if I am right or wrong.
Thank You
#Ok, I know what line 0ne does: import re #Line 2 I know what is does: import urllib2 #Line 3 res is a var = to urllib2.urlopen function res=urllib2.urlopen('http://www.networksecuritybybluedog.com') #line 4 a var text= res.read function this read the var res load it in to the var text I think. txt = res.read() #line 5 a var named email + re.findall function what it is looking for, in this case it is emails address. emails=re.findall(r'[\w\.-]+@[\w\.-]+',txt) #line 6 a for loop going through all the email it findes for email in emails: #line 7 this prints out the email address print "email"I put commits in the code above of what I think each line of script does.
Could some who know what they are doing read the commits and let me know if I am right or wrong.
Thank You