Skip to content

Instantly share code, notes, and snippets.

@todashuta
Created September 5, 2023 14:38
Show Gist options
  • Save todashuta/6450478c2fc87a859de14bdc5b1196bd to your computer and use it in GitHub Desktop.
Save todashuta/6450478c2fc87a859de14bdc5b1196bd to your computer and use it in GitHub Desktop.
from telnetlib import Telnet
with Telnet('koukoku.shadan.open.ad.jp', 23) as tn:
while (b := tn.read_some()) != b'':
print(b.decode('sjis'), end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment