User:Drinibot/WhatLinksHere

Quick script to convert a whatlinkshere html page into a txt file listing entries. self

import re t=file('test.html').read print "=========" p=re.compile("title=\"\">(.*?)") for entry in p.findall(t): a=entry.replace("Ã­","í") a=a.replace("Ã¡","á") a=a.replace("Ã©","é") a=a.replace("Ãº","ú") a=a.replace("Ã³","ó") a=a.replace("Ã±","ñ") #	a=a.replace("Ã","À") if " " in a:		if ("Category" not in a) and ("Wikipedia" not in a) and ("User" not in a): print ""+a+""