Generates a host list of first-party trackers for ad-blocking.
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.

28 lines
565B

  1. #!/usr/bin/env python3
  2. import markdown2
  3. extras = [
  4. "header-ids"
  5. ]
  6. with open('dist/README.md', 'r') as fdesc:
  7. body = markdown2.markdown(fdesc.read(), extras=extras)
  8. output = f"""<!DOCTYPE html>
  9. <html lang="en">
  10. <head>
  11. <title>Geoffrey Frogeye's block list of first-party trackers</title>
  12. <meta charset="utf-8">
  13. <meta name="author" content="Geoffrey 'Frogeye' Preud'homme" />
  14. <link rel="stylesheet" type="text/css" href="markdown7.min.css">
  15. </head>
  16. <body>
  17. {body}
  18. </body>
  19. </html>
  20. """
  21. with open('dist/index.html', 'w') as fdesc:
  22. fdesc.write(output)