qrpa 1.0.74__py3-none-any.whl → 1.0.76__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of qrpa might be problematic. Click here for more details.
- qrpa/shein_lib.py +8 -16
- qrpa/shein_ziniao.py +0 -1
- {qrpa-1.0.74.dist-info → qrpa-1.0.76.dist-info}/METADATA +1 -1
- {qrpa-1.0.74.dist-info → qrpa-1.0.76.dist-info}/RECORD +6 -6
- {qrpa-1.0.74.dist-info → qrpa-1.0.76.dist-info}/WHEEL +0 -0
- {qrpa-1.0.74.dist-info → qrpa-1.0.76.dist-info}/top_level.txt +0 -0
qrpa/shein_lib.py
CHANGED
|
@@ -50,8 +50,7 @@ class SheinLib:
|
|
|
50
50
|
if 'https://sso.geiwohuo.com/#/home' not in web_page.url:
|
|
51
51
|
log("鉴权确定按钮可见 点击'确定'按钮", web_page.title(), web_page.url, self.store_username, self.store_name)
|
|
52
52
|
web_page.locator('xpath=//div[@id="container" and @alita-name="gmpsso"]//button[@type="button" and @id]').nth(0).click()
|
|
53
|
-
web_page.
|
|
54
|
-
web_page.wait_for_timeout(1000)
|
|
53
|
+
web_page.wait_for_timeout(5000)
|
|
55
54
|
|
|
56
55
|
while web_page.locator('//div[text()="验证码"]').is_visible():
|
|
57
56
|
log(f'等待输入验证码: {wait_count}', self.store_username, self.store_name)
|
|
@@ -92,13 +91,11 @@ class SheinLib:
|
|
|
92
91
|
|
|
93
92
|
log('商家后台不可见', web_page.title(), web_page.url, self.store_username, self.store_name)
|
|
94
93
|
if 'https://sso.geiwohuo.com/#/home' in web_page.url:
|
|
95
|
-
web_page.wait_for_timeout(3000)
|
|
96
94
|
web_page.reload()
|
|
97
|
-
web_page.
|
|
95
|
+
web_page.wait_for_timeout(5000)
|
|
98
96
|
|
|
99
97
|
while r'=/CN' in web_page.url:
|
|
100
98
|
web_page.goto('https://sso.geiwohuo.com')
|
|
101
|
-
web_page.wait_for_load_state("load")
|
|
102
99
|
web_page.wait_for_timeout(5000)
|
|
103
100
|
if web_page.locator('//input[@name="username"]').is_visible():
|
|
104
101
|
log("用户名输入框可见 等待5秒点击'登录'按钮", self.store_username, self.store_name)
|
|
@@ -115,27 +112,23 @@ class SheinLib:
|
|
|
115
112
|
|
|
116
113
|
if 'SHEIN全球商家中心' in web_page.title() or '后台首页' in web_page.title() or '商家后台' in web_page.title():
|
|
117
114
|
log(web_page.title(), '中断循环', self.store_username, self.store_name)
|
|
118
|
-
web_page.
|
|
119
|
-
web_page.wait_for_timeout(2000)
|
|
115
|
+
web_page.wait_for_timeout(5000)
|
|
120
116
|
break
|
|
121
117
|
|
|
122
118
|
if 'mrs.biz.sheincorp.cn' in web_page.url and '商家后台' in web_page.title():
|
|
123
119
|
web_page.goto('https://sso.geiwohuo.com/#/home')
|
|
124
|
-
web_page.
|
|
125
|
-
web_page.wait_for_timeout(3000)
|
|
120
|
+
web_page.wait_for_timeout(5000)
|
|
126
121
|
|
|
127
122
|
if web_page.locator('//h1[contains(text(),"鉴权")]').is_visible():
|
|
128
123
|
log('检测到鉴权 刷新页面', self.store_username, self.store_name)
|
|
129
124
|
web_page.reload()
|
|
130
|
-
web_page.
|
|
131
|
-
web_page.wait_for_timeout(3000)
|
|
125
|
+
web_page.wait_for_timeout(5000)
|
|
132
126
|
web_page.reload()
|
|
133
|
-
web_page.wait_for_timeout(
|
|
127
|
+
web_page.wait_for_timeout(5000)
|
|
134
128
|
|
|
135
129
|
if web_page.title() == 'SHEIN':
|
|
136
130
|
web_page.goto('https://sso.geiwohuo.com/#/home')
|
|
137
|
-
web_page.
|
|
138
|
-
web_page.wait_for_timeout(3000)
|
|
131
|
+
web_page.wait_for_timeout(5000)
|
|
139
132
|
|
|
140
133
|
break
|
|
141
134
|
except Exception as e:
|
|
@@ -143,7 +136,6 @@ class SheinLib:
|
|
|
143
136
|
log(traceback.format_exc())
|
|
144
137
|
if 'crashed' in str(e) or 'https://sso.geiwohuo.com//#/auth/SSLS' in web_page.url:
|
|
145
138
|
web_page.goto('https://sso.geiwohuo.com')
|
|
146
|
-
web_page.wait_for_load_state('load')
|
|
147
139
|
web_page.wait_for_timeout(10000)
|
|
148
140
|
retries += 1
|
|
149
141
|
if retries >= MAX_RETRIES:
|
|
@@ -277,13 +269,13 @@ class SheinLib:
|
|
|
277
269
|
|
|
278
270
|
item['return_box_detail'] = []
|
|
279
271
|
|
|
280
|
-
all_list_item.append(item)
|
|
281
272
|
has_valid_package = item.get('hasPackage') == 1
|
|
282
273
|
if has_valid_package:
|
|
283
274
|
return_box_detail = self.get_return_order_box_detail(returnOrderId)
|
|
284
275
|
if len(return_box_detail) > 0:
|
|
285
276
|
item['return_box_detail'] = return_box_detail
|
|
286
277
|
|
|
278
|
+
all_list_item.append(item)
|
|
287
279
|
is_valid_yesterday = TimeUtils.is_yesterday(item['completeTime'], None) if item.get('completeTime') else False
|
|
288
280
|
if is_valid_yesterday:
|
|
289
281
|
today_list_item.append(item)
|
qrpa/shein_ziniao.py
CHANGED
|
@@ -11,10 +11,10 @@ qrpa/fun_web.py,sha256=F6cxwwOxB8twg2XK73oAvKla0FqpwDYJiM37CWmFwXo,6322
|
|
|
11
11
|
qrpa/fun_win.py,sha256=-LnTeocdTt72NVH6VgLdpAT9_C5oV9okeudXG6CftMA,8034
|
|
12
12
|
qrpa/shein_daily_report_model.py,sha256=H8oZmIN5Pyqe306W1_xuz87lOqLQ_LI5RjXbaxDkIzE,12589
|
|
13
13
|
qrpa/shein_excel.py,sha256=1F9QMMsaihDfwr0ajSSQdXksBCjuKSPwMynfP7Jlkso,124825
|
|
14
|
-
qrpa/shein_lib.py,sha256=
|
|
14
|
+
qrpa/shein_lib.py,sha256=BOXJ0bGMVSl8Lx3G-ZX6I90wdDySu-9Rc5UoA-J4hq8,126239
|
|
15
15
|
qrpa/shein_mysql.py,sha256=SrgBYPNWaKHIpD5Q7hqz3GWvytXO8u9SPvKxJvLwYsI,2720
|
|
16
16
|
qrpa/shein_sqlite.py,sha256=ZQwD0Gz81q9WY7tY2HMEYvSF9r3N_G_Aur3bYfST9WY,5707
|
|
17
|
-
qrpa/shein_ziniao.py,sha256=
|
|
17
|
+
qrpa/shein_ziniao.py,sha256=3PvoRK-J81q5vhNXdhJ_OODExXPrPfJzTgYBH1S4rxM,18703
|
|
18
18
|
qrpa/temu_chrome.py,sha256=CbtFy1QPan9xJdJcNZj-EsVGhUvv3ZTEPVDEA4-im40,2803
|
|
19
19
|
qrpa/temu_excel.py,sha256=2hGw76YWzkTZGyFCuuUAab4oHptYX9a6U6yjpNsL7FE,6990
|
|
20
20
|
qrpa/temu_lib.py,sha256=hYB59zsLS3m3NTic_duTwPMOTSxlHyQVa8OhHnHm-1g,7199
|
|
@@ -24,7 +24,7 @@ qrpa/wxwork.py,sha256=gIytG19DZ5g7Tsl0-W3EbjfSnpIqZw-ua24gcB78YEg,11264
|
|
|
24
24
|
qrpa/mysql_module/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
qrpa/mysql_module/shein_product_model.py,sha256=qViI_Ik3SkXXxqJ1nXjimvfB_a5uiwW9RXL0fOreBao,18880
|
|
26
26
|
qrpa/mysql_module/shein_return_order_model.py,sha256=Zt-bGOH_kCDbakW7uaTmqqo_qTT8v424yidcYSfWvWM,26562
|
|
27
|
-
qrpa-1.0.
|
|
28
|
-
qrpa-1.0.
|
|
29
|
-
qrpa-1.0.
|
|
30
|
-
qrpa-1.0.
|
|
27
|
+
qrpa-1.0.76.dist-info/METADATA,sha256=cZQywRWNgN0lyn9C3SyEdCbD2Kh1iZgyAk2pYu1Oxf0,231
|
|
28
|
+
qrpa-1.0.76.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
29
|
+
qrpa-1.0.76.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
|
|
30
|
+
qrpa-1.0.76.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|