Ignore license links for purposes of meme tracking

This commit is contained in:
Sam Ruby 2007-10-06 13:48:17 -04:00
parent 484d3c7d7a
commit 1e830f9101

View File

@ -126,7 +126,7 @@ for name in glob.glob(os.path.join(cache, '*')):
# identify the unique links
entry_links = []
for node in doc.xpathEval("//*[@href and not(@rel='source')]"):
for node in doc.xpathEval("//*[@href and not(@rel='source') and not(@rel='license')]"):
parent = node.parent
while parent:
if parent.name == 'source': break