Browse Source

Automatic Commit By liuyuqi

liuyuqi-dellpc 1 year ago
parent
commit
c471ee01cb
4 changed files with 41 additions and 0 deletions
  1. 6 0
      README.md
  2. 0 0
      crawl_font/__init__.py
  3. 21 0
      crawl_font/font.py
  4. 14 0
      main.py

+ 6 - 0
README.md

@@ -1,2 +1,8 @@
 # crawl_font
 
+font download tool
+
+## License
+
+Licensed under the [Apache 2.0](LICENSE) © [liuyuqi.gov@msn.cn](https://github.com/jianboy)
+

+ 0 - 0
crawl_font/__init__.py


+ 21 - 0
crawl_font/font.py

@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+'''
+@Contact :   liuyuqi.gov@msn.cn
+@Time    :   2024/07/30 19:02:15
+@License :   Copyright © 2017-2022 liuyuqi. All Rights Reserved.
+@Desc    :   
+'''
+import requests
+
+class Font(object):
+    """docstring for Font"""
+    header = {
+        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36'
+    }
+    def __init__(self):
+        self.sess = requests.Session()
+        self.sess.update_headers(self.header)
+        
+    def run(self):
+        pass

+ 14 - 0
main.py

@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+'''
+@Contact :   liuyuqi.gov@msn.cn
+@Time    :   2024/07/30 19:01:50
+@License :   Copyright © 2017-2022 liuyuqi. All Rights Reserved.
+@Desc    :   enter point
+'''
+
+from crawl_font.font import Font
+
+if __name__=='__main__':
+    font = Font()
+    font.run()