Use Python to Interact with Cisco Device Using Pyserial

For my latest project I wanted to communicate with a Cisco device over serial via the console port with my python program. It isn’t overly complicated, but it took me a bit to hack together something that worked properly and I thought I’d share it with everyone. ¬†Below is the code: The first line opens […]

Download Youtube Music Python 3

I’ve been looking for a clean and simple way to download youtube music in my progOverEmail program and stumbled across a module called pafy I wanted to share. You can download pafy here. It’s super simple to use. All you have to do is drop pafy.py into the same folder as your other python code […]

Replace All Spaces (or any other character) Between Quotes in Python

This is an oddly specific post, but I recently had this situation come up and solving it was actually not very straightforward. Specifically, I was writing a program to interpret commands and this program happened to split different arguments by spaces. So what if you have something like this: FTP CD “This is a file […]