Skip to content

Commit 0e6462c

Browse files
committed
update
1 parent 4723fb1 commit 0e6462c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

FakeWebsite.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
import requests
1717
from bs4 import BeautifulSoup
1818

19+
from urllib3.exceptions import InsecureRequestWarning
20+
21+
# 移除不验证SSL的警告
22+
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
23+
1924
headers = {
2025
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
2126
"Chrome/72.0.3626.109 Safari/537.36 "
@@ -196,5 +201,5 @@ def get_fake_name_generator_advanced(params=None):
196201

197202

198203
if __name__ == '__main__':
199-
# print(get_fake_name_generator_index())
204+
print(get_fake_name_generator_index())
200205
print(get_fake_name_generator_advanced())

0 commit comments

Comments
 (0)