由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
_Python版 - 用python怎么获取当前在线用户信息?
相关主题
Re: mitbbs 封 bij 在 ChinaNews 版 (转载)" class="news">回信给作者] [如何在网页上加google搜索
求教 php中的js语句不work三峡大坝到底是不是南方干旱的祸首?
新手请教Re: WPF 封 cayi1 在 Military 版 (转载)" class="news">回信给作者] [问个入门级的 html 问题Re: TempBM 解封 cayi1 在 Military 版 (转载)" class="news">回信给作者] [关于php的问题Re: TempBM 解封 cayil 在 Military 版 (转载)" class="news">回信给作者] [Re: cynic 封 tatausa00004 在 Military 版 (转载)" class="news">回信给作者] [急速搅拌乡村歌曲King of the Road
Re: crashinfo 封 benchmark 在 Returnee 版 (转载)" class="news">回信给作者] [请教发帖问题
Re: cynic 封 cayi 在 Military 版 (转载)" class="news">回信给作者] [嗯,奔首乡村吧
相关话题的讨论汇总
话题: td话题: width话题: userxxx话题: web话题: terminal
1 (共1页)












【在 i*****f 的大作中提到】
: this is the page(s) that lists the online bbs users:
: http://www.mitbbs.com/mitbbs_bbsuser.php
: let's drag it down:
: import urllib
: f = urllib.urlopen("http://www.mitbbs.com/mitbbs_bbsuser.php")
: buf = f.read()
: # you can also print it to verify:
: print buf
: By examining the html file, you could see there's a very clear structure
: of how the users are listed:

s***l
发帖数: 129
1
比如mitbbs下?
i*****f
发帖数: 578
2
web or terminal?
web should be trivial, just with some url lib.
terminal: might be able to fork a terminal (e.g. with pexpect), control the
terminal to navigate to online user
But, I think this is more suitable for a term (cterm/fterm) to accomplish
this job with their scripting interface.

【在 s***l 的大作中提到】
: 比如mitbbs下?
s***l
发帖数: 129
3
Can you show me some sample code for the task?
If web is easier, you can give me an example for web. Thanks!

the

【在 i*****f 的大作中提到】
: web or terminal?
: web should be trivial, just with some url lib.
: terminal: might be able to fork a terminal (e.g. with pexpect), control the
: terminal to navigate to online user
: But, I think this is more suitable for a term (cterm/fterm) to accomplish
: this job with their scripting interface.

j*a
发帖数: 14423
4
让老刑开放api

the

【在 i*****f 的大作中提到】
: web or terminal?
: web should be trivial, just with some url lib.
: terminal: might be able to fork a terminal (e.g. with pexpect), control the
: terminal to navigate to online user
: But, I think this is more suitable for a term (cterm/fterm) to accomplish
: this job with their scripting interface.

i*****f
发帖数: 578
5
this is the page(s) that lists the online bbs users:
http://www.mitbbs.com/mitbbs_bbsuser.php
let's drag it down:
import urllib
f = urllib.urlopen("http://www.mitbbs.com/mitbbs_bbsuser.php")
buf = f.read()
# you can also print it to verify:
print buf
By examining the html file, you could see there's a very clear structure
of how the users are listed:
3
: Can you show me some sample code for the task?
: If web is easier, you can give me an example for web. Thanks!
:
: the

i*****f
发帖数: 578
6
强烈要求!

【在 j*a 的大作中提到】
: 让老刑开放api
:
: the

j*a
发帖数: 14423
7
python3有啥好用的snmp库?
还有画图的库,比如graphviz之类的?

【在 i*****f 的大作中提到】
: this is the page(s) that lists the online bbs users:
: http://www.mitbbs.com/mitbbs_bbsuser.php
: let's drag it down:
: import urllib
: f = urllib.urlopen("http://www.mitbbs.com/mitbbs_bbsuser.php")
: buf = f.read()
: # you can also print it to verify:
: print buf
: By examining the html file, you could see there's a very clear structure
: of how the users are listed:

i*****f
发帖数: 578
8
there's a package called pysnmp. it rands highest in cheeze shop. I haven
't tried it though.
graphviz has several python bindings. I haven't used them either :)

【在 j*a 的大作中提到】
: python3有啥好用的snmp库?
: 还有画图的库,比如graphviz之类的?

s***l
发帖数: 129
9
假定我就是要匹配USERXXX, THE_IP_ADDRESS, 是否"Web浏览"
regular express 怎么写?
另外yahoo stock, amazon也是类似的parse么?
3 USERXXX
USERXXX
THE_IP_ADDRESS Web浏览 31
1 (共1页)
相关主题
嗯,奔首乡村吧关于php的问题
头次奔,奔个summertimeRe: cynic 封 tatausa00004 在 Military 版 (转载)" class="news">回信给作者] [google search 代码是怎么样的呢?Re: crashinfo 封 benchmark 在 Returnee 版 (转载)" class="news">回信给作者] [问个入门级的 html 问题Re: cynic 封 cayi 在 Military 版 (转载)" class="news">回信给作者] [Re: mitbbs 封 bij 在 ChinaNews 版 (转载)" class="news">回信给作者] [如何在网页上加google搜索
求教 php中的js语句不work三峡大坝到底是不是南方干旱的祸首?
新手请教Re: WPF 封 cayi1 在 Military 版 (转载)" class="news">回信给作者] [问个入门级的 html 问题Re: TempBM 解封 cayi1 在 Military 版 (转载)" class="news">回信给作者] [
相关话题的讨论汇总
话题: td话题: width话题: userxxx话题: web话题: terminal