获取网页大小
sitesize的Python项目详细描述
站点大小
返回传递URL的网页大小
用法
importsitesize# get the size of webpage in bytessitesize.get_webpage_size('http://www.github.com/')# check if the url is valid or notsitesize.url_checker('http://www.github.com/')
安装
使用pip
pip install sitesize
无PIP
用于安装依赖项和保存包
python setup.py install
如果只想在不安装的情况下测试软件包
- 克隆存储库
git clone https://github.com/Mianto/sitesize.git
- 导航到包含main.py的sitesize文件夹
- 运行main.py作为
python main.py