Skip to content

Instantly share code, notes, and snippets.

@strokirk
Last active November 4, 2020 02:46
Show Gist options
  • Select an option

  • Save strokirk/46ddf29286763d1240082dcaec417170 to your computer and use it in GitHub Desktop.

Select an option

Save strokirk/46ddf29286763d1240082dcaec417170 to your computer and use it in GitHub Desktop.
def pretty(html):
from bs4 import BeautifulSoup
print(BeautifulSoup(html).prettify())
def box(s):
print()
print()
print("┌" + ("─" * (len(s) + 2)) + "┐")
print("│ " + s + " │")
print("└" + ("─" * (len(s) + 2)) + "┘")
print()
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment