Browse Source

Automatic Commit By liuyuqi

liuyuqi-dellpc 1 year ago
parent
commit
c434859da1
2 changed files with 22 additions and 1 deletions
  1. 5 1
      README.md
  2. 17 0
      crawl_subway/subway.py

+ 5 - 1
README.md

@@ -6,5 +6,9 @@
 ## Develop
 ## Develop
 
 
 
 
-## Licenses
+
+## License
+
+Licensed under the [Apache 2.0](LICENSE) © [liuyuqi.gov@msn.cn](https://github.com/jianboy)
+
 
 

+ 17 - 0
crawl_subway/subway.py

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