We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4723fb1 commit 0e6462cCopy full SHA for 0e6462c
FakeWebsite.py
@@ -16,6 +16,11 @@
16
import requests
17
from bs4 import BeautifulSoup
18
19
+from urllib3.exceptions import InsecureRequestWarning
20
+
21
+# 移除不验证SSL的警告
22
+requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
23
24
headers = {
25
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
26
"Chrome/72.0.3626.109 Safari/537.36 "
@@ -196,5 +201,5 @@ def get_fake_name_generator_advanced(params=None):
196
201
197
202
198
203
if __name__ == '__main__':
199
- # print(get_fake_name_generator_index())
204
+ print(get_fake_name_generator_index())
200
205
print(get_fake_name_generator_advanced())
0 commit comments