S
Size: a a a
S
S
M
M
S
AI
import urllib.request
from urllib.request import urlopen
from urllib import request
ahref = driver.find("//*[@class='but123']/div/div/div/a").get_attribute("href")
url = ahref
u = urllib.request.urlopen(url)
meta = u.info()
file_size = int(meta.getheaders("Content-Length")[0])
file_content_type = int(meta.getheaders("Content-Type")[0])
print("Content {} bytes {}".format(file_content_type,file_size))
СС
import urllib.request
from urllib.request import urlopen
from urllib import request
ahref = driver.find("//*[@class='but123']/div/div/div/a").get_attribute("href")
url = ahref
u = urllib.request.urlopen(url)
meta = u.info()
file_size = int(meta.getheaders("Content-Length")[0])
file_content_type = int(meta.getheaders("Content-Type")[0])
print("Content {} bytes {}".format(file_content_type,file_size))
AI
S
СС
AI
ahref = driver.find("//*[@class='but123']/div/div/div/a").get_attribute("href")
url = ahref
u = requests.get(ahref, verify=False)
try:
u = requests.get(ap)
except requests.exceptions.ConnectionError:
r.status_code = "Connection refused"
#time.sleep(10)
meta = u.info()
file_size = int(meta.getheaders("Content-Length")[0])
file_content_type = int(meta.getheaders("Content-Type")[0])
print("Content {} bytes {}".format(file_content_type,file_size))
S
AI
S
СС
AI
ahref = driver.find("//*[@class='but123']/div/div/div/a").get_attribute("href")
url = ahref
u = requests.get(ahref, verify=False)
try:
u = requests.get(ap)
except requests.exceptions.ConnectionError:
r.status_code = "Connection refused"
#time.sleep(10)
meta = u.info()
file_size = int(meta.getheaders("Content-Length")[0])
file_content_type = int(meta.getheaders("Content-Type")[0])
print("Content {} bytes {}".format(file_content_type,file_size))
СС
AI
СС
СС