-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtest.py
33 lines (26 loc) · 1.07 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from anti_useragent import UserAgent
import anti_useragent
# from fake_useragent import FakeUserAgent
if __name__ == '__main__':
# print(UserAgent(platform='mac').random)
# print(UserAgent()['firefox'])
# print(UserAgent(platform='windows', min_version=90, max_version=101).chrome)
print(UserAgent().chrome)
print(UserAgent(platform='windows').chrome)
print(UserAgent(platform='windows', versions=(100, 101)).chrome)
# print(UserAgent(platform='windows', versions=(90, 100)).chrome)
# # print(FakeUserAgent().chrome)
# import anti_useragent
# print(anti_useragent.VERSION)
# print(UserAgent()['chrome'])
# print(UserAgent()['firefox'])
# print(UserAgent()['opera'])
# print(UserAgent()['chrome_android'])
# print(UserAgent()['chrome_iphone'])
# print(UserAgent()['wechat_android'])
# print(UserAgent()['wechat_iphone'])
# print(UserAgent()['baidu_android'])
# print(UserAgent()['uc'])
# print(UserAgent()['baidu_iphone'])
# print(UserAgent().wechat)
# print(sslgen())