feat: B站爬虫签名实现

This commit is contained in:
Relakkes
2023-12-03 00:30:10 +08:00
parent 5c920da288
commit 5aeee93fc5
8 changed files with 345 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ import time
def get_current_timestamp() -> int:
"""
获取当前的时间戳1701493264496
获取当前的时间戳(13 位)1701493264496
:return:
"""
return int(time.time() * 1000)
@@ -65,3 +65,7 @@ def get_unix_time_from_time_str(time_str):
except Exception as e:
return 0
pass
def get_unix_timestamp():
return int(time.time())