Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #! -*- coding: utf-8 -*-
- import urllib,time,re
- topla = 0
- for i in range(0,10):
- timee = time.time()
- url = "http://www.oynaburada.com"
- a = urllib.urlopen(url)
- kaynak_kodlar = a.read()
- cek = re.findall('<title>(.*?)</title>',kaynak_kodlar)
- print cek[0]
- sonuc = time.time() - timee
- print sonuc
- topla +=sonuc
- print topla
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement