Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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 )

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top