ninja_settings.py 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. # -*- coding: utf-8 -*-
  2. # Author : Charley
  3. # Python : 3.10.8
  4. # Date : 2025/9/8 11:59
  5. category_list = [
  6. # {
  7. # "category_name": "baseball",
  8. # "category_url": "https://www.breakninja.com/baseball_box_break_group_checklists.html"
  9. # },
  10. {
  11. "category_name": "basketball",
  12. "category_url": "https://www.breakninja.com/basketball_box_break_group_checklists.html"
  13. },
  14. {
  15. "category_name": "football",
  16. "category_url": "https://www.breakninja.com/football_box_break_group_checklists.html"
  17. },
  18. {
  19. "category_name": "hockey",
  20. "category_url": "https://www.breakninja.com/hockey_box_break_group_checklists.html"
  21. }
  22. ]
  23. base_url = 'https://www.breakninja.com/'
  24. headers = {
  25. "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
  26. "Referer": "https://www.breakninja.com/sports.html",
  27. "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36"
  28. }
  29. exclusion_words = ["Main Page", "Breaks", "First Page", "Advanced Ebay", "Ending Soon No Bids", "Best Contenders", "List Page"]