reparse.py 216 B

1234567891011
  1. #!/usr/bin/env python3
  2. from db import db
  3. d=db()
  4. kw=d.get_keywords(0)
  5. arts=d.filter_articles({"kw.0":{"$exists":False}},limit=8000)
  6. #print(arts)
  7. print(len(arts["articles"]))
  8. d.reparse_articles(arts["articles"],kw)