mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
19 lines
363 B
Python
19 lines
363 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(
|
|
(
|
|
" ---> [%s] Retrieved %s bytes - %s %s"
|
|
% (str(end - start)[:4], len(content), req.status_code, req.reason)
|
|
)
|
|
)
|
|
time.sleep(5)
|