使用 python 监控我的下载使用情况
我想用 python 编写一个程序来监视我的浏览和下载数据,并显示我在一天(或在给定的时间间隔内)下载了多少数据。
我不想要我下载的内容,我只需要知道我下载和/或浏览了多少数据(数据量)。
为此我应该访问端口还是其他什么?
我应该如何进行?
编辑:我使用的是 Ubuntu 11.10。
I want to make a program in python which monitors my browsing and downloading data and shows me how much data I have downloaded in a day (or in a given time interval).
I don't want what I have downloaded, I just need to know how much data (the amount of data) that I have downloaded and/or browsed.
For that should I access the ports or something else?
How should I proceed ?
Edit: I am using Ubuntu 11.10.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对如何监控我的下载有了基本的了解。我基本上获取数据包的数据并将其相加,
这会打印源 ip、目标 ip、包的长度,直到提供 keybaordinterrupt。
I got a basic idea of how to monitor my downloads. I basically take the data of packets and add it up
This prints source ip, dest ip, length of package until keybaordinterrupt is provided.