I\'m trying to scrape META keywords and description tags from arbitrary websites. I obviusly have no control over said website, so have to take what I\'m given. They have a
You can use
doc.cssselect.xpath("//meta[translate(@name,
'ABCDEFGHJIKLMNOPQRSTUVWXYZ', 'abcdefghjiklmnopqrstuvwxyz')='description']")
It translates the value of "name" to lowercase and then matches.
See also: