Skip to content

Instantly share code, notes, and snippets.

@DrLulz
DrLulz / anki_html.py
Last active April 14, 2021 16:15
Grab Q/A from HTML source and create Anki Cards directly.
#!/usr/local/bin/python
import os
import sys
import csv
from operator import itemgetter
from bs4 import BeautifulSoup
from anki import Collection as aopen
usmle_rx = open("/Users/drlulz/Desktop/test.html",'r').read()