Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. '''
  2. Zbiór maili z arkusza excel został przefiltrowany.
  3. Usuniete zostały wszystkie puste komórki.
  4. Maile zostały przekopiowane do pliku emails.txt
  5. '''
  6.  
  7. import urllib.request
  8.  
  9. path ="C:/Users/Adam/Desktop/DBMS/emails.txt"
  10. #print(path)
  11.  
  12. file = open(path , 'r')
  13.  
  14. for line in file:
  15.     where_at = line.find('@')
  16.     website = line[where_at+1:]
  17.     print('http://'+website)
  18.     #urllib.request.urlopen('http://'+website)
  19. #print (list_of_emails)
  20.  
  21.  
  22. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement