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?
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 )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With