From: Brian Foley Date: Sat, 2 Jan 2016 19:49:59 +0000 (+0000) Subject: [utils] Add extract_attributes for extracting html tag attributes X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=8bb56eeeea8154f811076c0a9093203fab224003;hp=8bb56eeeea8154f811076c0a9093203fab224003;p=youtube-dl [utils] Add extract_attributes for extracting html tag attributes This is much more robust than just using regexps, and handles all the common scenarios, such as empty/no values, repeated attributes, entity decoding, mixed case names, and the different possible value quoting schemes. ---