/venus

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/venus/

« back to all changes in this revision

Viewing changes to filters/mememe.plugin

  • Committer: Sam Ruby
  • Date: 2008-05-22 01:53:36 UTC
  • Revision ID: rubys@intertwingly.net-20080522015336-gxcabbaetmxi01xx
Remove meme spam

Show diffs side-by-side

added added

removed removed

28
28
import feedparser
29
29
log = planet.logger
30
30
options = config.filter_options(sys.argv[0])
 
31
spam = options.get('spam', '').split()
31
32
 
32
33
MEMES_ATOM = os.path.join(config.output_dir(),'memes.atom')
33
34
 
375
376
from urllib import quote_plus
376
377
for i in range(0,len(weighted_links)):
377
378
  weight, link, updated = weighted_links[i]
 
379
  if link in spam: continue
378
380
 
379
381
  # ensure that somebody new points to this entry.  This guards against
380
382
  # groups of related links which several posts point to all.