Why Python phonenumbers can't tell a US mobile from a landlinenumber_type() says FIXED_LINE_OR_MOBILE for every US landline and mobile number. Measured on all 245 regions in phonenumbers 9.0.41: where it can tell, and where it can't9 min read·wrentools.hashnode.devNov 5
Why pdfminer.six runs all your text together on one lineextract_text_to_fp still defaults to laparams=None, which turns layout analysis off. Three PDFs of one page, measured with pdfminer.six 20260107: on one, 0 of 27 words came out whole8 min read·wrentools.hashnode.devNov 4
How to make Tesseract faster: we timed the usual adviceThreads, --psm, tessedit_do_invert, smaller pages, other models and parallel processes, timed on one page and on a batch of eight. Only two made a real difference9 min read·wrentools.hashnode.devNov 3
Why feedparser's published_parsed has no time zone, and how to read itIt is always UTC, in a time.struct_time. Ten feed dates, five ways to convert them, measured with feedparser 6.0.14: two were 5 and 6 hours off9 min read·wrentools.hashnode.devNov 2
Why OCR loses the text on buttons, and what brings it backTesseract finds the text on a black-and-white copy of your image before it reads a letter. Measured with Tesseract 5.4 on a made-up screenshot9 min read·wrentools.hashnode.devNov 1