Skip to content

Commit 523a5ce

Browse files
author
bajins
committed
update
1 parent e67dfdf commit 523a5ce

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pyutils/HttpUtil.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ def selenium_driver(url):
155155
:param url:
156156
:return:
157157
"""
158+
if sys.platform == "win32":
159+
path = "./chromedriver.exe"
160+
else:
161+
path = "./chromedriver"
162+
163+
if not os.path.exists(path):
164+
download_taobao_chromedriver()
158165

159166
# chrome选项
160167
options = webdriver.ChromeOptions()

pyutils/Mail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def lin_shi_you_xiang_suffix():
7070
"@bestsoundeffects.com",
7171
"@vradportal.com",
7272
"@a4papersize.net"]
73-
a = random.randint(1, 11)
74-
return suffix_array[a[0]]
73+
a = random.randint(0, 10)
74+
return suffix_array[a]
7575

7676

7777
def lin_shi_you_xiang_apply(prefix):

0 commit comments

Comments
 (0)