mirror of
				https://github.com/samuelclay/NewsBlur.git
				synced 2025-10-31 08:41:36 +00:00 
			
		
		
		
	
		
			
	
	
		
			14 lines
		
	
	
	
		
			305 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
	
		
			305 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|   | import time | ||
|  | import requests | ||
|  | url = "http://www.newsblur.com" | ||
|  | 
 | ||
|  | 
 | ||
|  | while True: | ||
|  |     start = time.time() | ||
|  |     req = requests.get(url) | ||
|  |     content = req.content | ||
|  |     end = time.time() | ||
|  |     print " ---> [%.4ss] Retrieved %s bytes - %s %s" % (end - start, len(content), req.status_code, req.reason) | ||
|  |     time.sleep(5) | ||
|  | 
 |