More saine version. Better at extractiong text, less hardcoding, tighter try/except blocks. Working locally.