Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 changes 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?

like image 428
pokstad Avatar asked Feb 25 '10 16:02

pokstad


1 Answers

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 )

like image 54
Udi Avatar answered Nov 05 '22 10:11

Udi