7 lines
149 B
Python
7 lines
149 B
Python
import requests
|
|
|
|
def count_words_at_url(url):
|
|
resp = requests.get(url)
|
|
nwords = len(resp.text.split())
|
|
print ( nwords )
|
|
return nwords |