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.
 
 

26 line
516 B

  1. # -*- coding: utf-8 -*-
  2. import re
  3. anchor = '###'
  4. min_entries_per_section = 3
  5. auth_keys = ['apiKey', 'OAuth', 'X-Mashape-Key', 'User-Agent', 'No']
  6. punctuation = ['.', '?', '!']
  7. https_keys = ['Yes', 'No']
  8. cors_keys = ['Yes', 'No', 'Unknown']
  9. index_title = 0
  10. index_desc = 1
  11. index_auth = 2
  12. index_https = 3
  13. index_cors = 4
  14. index_link = 5
  15. num_segments = 5
  16. errors = []
  17. title_links = []
  18. anchor_re = re.compile(anchor + '\s(.+)')
  19. section_title_re = re.compile('\*\s\[(.*)\]')
  20. link_re = re.compile('\[(.+)\]\((http.*)\)')