qrpa 1.0.79__py3-none-any.whl → 1.0.81__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 CHANGED
@@ -91,23 +91,23 @@ class SheinLib:
91
91
 
92
92
  log('商家后台不可见', web_page.title(), web_page.url, self.store_username, self.store_name)
93
93
  if 'https://sso.geiwohuo.com/#/home' in web_page.url:
94
- web_page.reload()
95
- web_page.wait_for_timeout(5000)
96
-
97
- while r'=/CN' in web_page.url:
98
- safe_goto(web_page, 'https://sso.geiwohuo.com/#/home?q=0')
99
-
100
94
  web_page.wait_for_timeout(5000)
101
- if web_page.locator('//input[@name="username"]').is_visible():
102
- log("用户名输入框可见 等待5秒点击'登录'按钮", self.store_username, self.store_name)
103
- web_page.wait_for_timeout(5000)
104
- log('点击"登录"', self.store_username, self.store_name)
105
- web_page.locator('//button[contains(@class,"login_btn")]').click()
106
-
107
- log('再延时5秒', self.store_username, self.store_name)
108
- web_page.wait_for_timeout(5000)
95
+ web_page.reload()
109
96
 
110
- web_page.wait_for_timeout(1000)
97
+ # while r'=/CN' in web_page.url:
98
+ # safe_goto(web_page, 'https://sso.geiwohuo.com/#/home?q=0')
99
+ #
100
+ # web_page.wait_for_timeout(5000)
101
+ # if web_page.locator('//input[@name="username"]').is_visible():
102
+ # log("用户名输入框可见 等待5秒点击'登录'按钮", self.store_username, self.store_name)
103
+ # web_page.wait_for_timeout(5000)
104
+ # log('点击"登录"', self.store_username, self.store_name)
105
+ # web_page.locator('//button[contains(@class,"login_btn")]').click()
106
+ #
107
+ # log('再延时5秒', self.store_username, self.store_name)
108
+ # web_page.wait_for_timeout(5000)
109
+
110
+ web_page.wait_for_timeout(3000)
111
111
 
112
112
  if 'https://sso.geiwohuo.com/#/home' in web_page.url:
113
113
 
@@ -135,7 +135,7 @@ class SheinLib:
135
135
  except Exception as e:
136
136
  log(f"错误发生: {e}, 重试中...({self.store_username}, {self.store_name})")
137
137
  log(traceback.format_exc())
138
- if 'crashed' in str(e) or 'https://sso.geiwohuo.com//#/auth/SSLS' in web_page.url:
138
+ if 'crashed' in str(e) and 'https://sso.geiwohuo.com//#/auth/SSLS' in web_page.url:
139
139
  safe_goto(web_page, 'https://sso.geiwohuo.com/#/home?q=3')
140
140
  web_page.wait_for_timeout(10000)
141
141
  retries += 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qrpa
3
- Version: 1.0.79
3
+ Version: 1.0.81
4
4
  Summary: qsir's rpa library
5
5
  Author: QSir
6
6
  Author-email: QSir <1171725650@qq.com>
@@ -11,7 +11,7 @@ qrpa/fun_web.py,sha256=Ep2ddMwJix_KNpCiHEjSo7tWu-g55Nlu1QtOXJf6iZw,6531
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=mBVCLNBmi3Sg7m_FIX-LGVFB5uOt2akJmCTXe1lPpOs,126306
14
+ qrpa/shein_lib.py,sha256=_HFWyBpqKKiL7Wm4FlQaJjWroRLb2veU0Ei3Z4uZw-g,126369
15
15
  qrpa/shein_mysql.py,sha256=SrgBYPNWaKHIpD5Q7hqz3GWvytXO8u9SPvKxJvLwYsI,2720
16
16
  qrpa/shein_sqlite.py,sha256=ZQwD0Gz81q9WY7tY2HMEYvSF9r3N_G_Aur3bYfST9WY,5707
17
17
  qrpa/shein_ziniao.py,sha256=3PvoRK-J81q5vhNXdhJ_OODExXPrPfJzTgYBH1S4rxM,18703
@@ -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.79.dist-info/METADATA,sha256=R_mYgCTepas6l7JwNUE1DbPzRQ1vx38I6QR4kv_D9uo,231
28
- qrpa-1.0.79.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
- qrpa-1.0.79.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
30
- qrpa-1.0.79.dist-info/RECORD,,
27
+ qrpa-1.0.81.dist-info/METADATA,sha256=PU6_lXcROdo-69M6A7LjDB5rD7taT_nsadKdmWT54Bk,231
28
+ qrpa-1.0.81.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
+ qrpa-1.0.81.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
30
+ qrpa-1.0.81.dist-info/RECORD,,
File without changes