开发者

Is there a Python equivalent for the Perl module Term::VT102?

开发者 https://www.devze.com 2022-12-21 10:59 出处:网络
In Perl there is a very handy module, Term::VT102, which allows you to create a screen in memory. This is very handy for scraping purposes since you can keep track of all the change开发者_开发百科s to

In Perl there is a very handy module, Term::VT102, which allows you to create a screen in memory. This is very handy for scraping purposes since you can keep track of all the change开发者_开发百科s to portions of the screen and then export the screen as plain-text for processing. Is there an equivalent module in Python?

Followup Question: There are modules like Pexpect that allow you to screen scrape a VT100 screen, but how does VT100 differ from VT102?


See also ashttp built on top of Pexcept:

ashttp can serve any text application over http, like :

$ ashttp 8080 top
to serve a top on port 8080, or :

$ ashttp 8080 watch -n 1 ls -lah /tmp
to serve an actualized directory listing of /tmp

(Source: https://mdk.fr/blog/ashttp-vt100-screen-scraping-exported-over-http.html )


Pexpect, which has support for VT100, might be of help to you.

0

精彩评论

暂无评论...
验证码 换一张
取 消