You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

query.py 329B

12345678910111213141516
  1. #!/usr/bin/env python3
  2. import datetime
  3. import json
  4. import searchlib
  5. if __name__ == '__main__':
  6. today = datetime.datetime.now()
  7. tendays = datetime.timedelta(days=18)
  8. startday = today - tendays
  9. searchlib.prep_nltk()
  10. res_tbl = searchlib.query_range(startday, 10)
  11. print(json.dumps(res_tbl, indent=' '))