qrpa 1.0.61__py3-none-any.whl → 1.0.63__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_excel.py CHANGED
@@ -281,6 +281,12 @@ class SheinExcel:
281
281
  cache_file_excel = f'{self.config.auto_dir}/shein/cache/shein_return_order_list_excel_{start_date}_{end_date}.json'
282
282
  write_dict_to_file(cache_file_excel, excel_data)
283
283
 
284
+ sheet_name = '希音退货列表'
285
+ batch_excel_operations(self.config.excel_return_list, [
286
+ (sheet_name, 'write', excel_data, ['W', 'Z']),
287
+ (sheet_name, 'format', self.format_return_list)
288
+ ])
289
+
284
290
  excel_data = [header]
285
291
  cache_file = f'{self.config.auto_dir}/shein/cache/shein_return_order_list_{TimeUtils.today_date()}.json'
286
292
  dict = read_dict_from_file(cache_file)
qrpa/shein_lib.py CHANGED
@@ -91,10 +91,20 @@ class SheinLib:
91
91
  return
92
92
 
93
93
  log('商家后台不可见', web_page.title(), web_page.url, self.store_username, self.store_name)
94
- while 'https://sso.geiwohuo.com//#/auth/SSLS/aHR0cHM6Ly9zc28uZ2Vpd29odW8uY29tLyMvaG9tZS8=/CN' or '/CN' in web_page.url:
95
- web_page.goto('https://sso.geiwohuo.com/#/home')
94
+
95
+ while r'=/CN' in web_page.url:
96
+ web_page.goto('https://sso.geiwohuo.com')
96
97
  web_page.wait_for_load_state("load")
97
- web_page.wait_for_timeout(3000)
98
+ web_page.wait_for_timeout(5000)
99
+ if web_page.locator('//input[@name="username"]').is_visible():
100
+ log("用户名输入框可见 等待5秒点击'登录'按钮", self.store_username, self.store_name)
101
+ web_page.wait_for_timeout(5000)
102
+ log('点击"登录"', self.store_username, self.store_name)
103
+ web_page.locator('//button[contains(@class,"login_btn")]').click()
104
+
105
+ log('再延时5秒', self.store_username, self.store_name)
106
+ web_page.wait_for_timeout(5000)
107
+
98
108
  web_page.wait_for_load_state("load")
99
109
  web_page.wait_for_timeout(1000)
100
110
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qrpa
3
- Version: 1.0.61
3
+ Version: 1.0.63
4
4
  Summary: qsir's rpa library
5
5
  Author: QSir
6
6
  Author-email: QSir <1171725650@qq.com>
@@ -10,8 +10,8 @@ qrpa/fun_file.py,sha256=yzjDV16WL5vRys7J4uQcNzIFkX4D5MAlSCwxcD-mwQo,11966
10
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
- qrpa/shein_excel.py,sha256=F1tH0-GZgTAw8T-y0VUjovkJL_T7KFHAkOrQ1R51avY,124518
14
- qrpa/shein_lib.py,sha256=wx2ihe3M-v5Hn9XaEXJYNN2F1Ofj1J7Dc2y24RYEziw,119785
13
+ qrpa/shein_excel.py,sha256=FY9p-Y4QjmwDvJNjWWzGIhUFrFdMs9JuGMYF_uusCR8,124761
14
+ qrpa/shein_lib.py,sha256=dbYtD8okkbc5in6AhJ686blTaTJ5llEkB-48OCGNRLc,120308
15
15
  qrpa/shein_mysql.py,sha256=MGPJsz13evsLygZWhmitpPzUswiTKZ91VFvr8KA0M40,750
16
16
  qrpa/shein_sqlite.py,sha256=ZQwD0Gz81q9WY7tY2HMEYvSF9r3N_G_Aur3bYfST9WY,5707
17
17
  qrpa/shein_ziniao.py,sha256=kAOirjawPf-VxBxHFNpdDHCN2zL-O1U-2xybpmt34Xs,18692
@@ -23,7 +23,7 @@ qrpa/time_utils_example.py,sha256=shHOXKKF3QSzb0SHsNc34M61wEkkLuM30U9X1THKNS8,80
23
23
  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_return_order_model.py,sha256=Zt-bGOH_kCDbakW7uaTmqqo_qTT8v424yidcYSfWvWM,26562
26
- qrpa-1.0.61.dist-info/METADATA,sha256=yC2b0eUuqPes2tFyRyAOrDvxgVES8EMSG8MUjUiT49E,231
27
- qrpa-1.0.61.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- qrpa-1.0.61.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
29
- qrpa-1.0.61.dist-info/RECORD,,
26
+ qrpa-1.0.63.dist-info/METADATA,sha256=Hd2zYpaVu8MAcMjBgFwpBdbR-cJ-o7YaVLMCEoQH6KQ,231
27
+ qrpa-1.0.63.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ qrpa-1.0.63.dist-info/top_level.txt,sha256=F6T5igi0fhXDucPPUbmmSC0qFCDEsH5eVijfVF48OFU,5
29
+ qrpa-1.0.63.dist-info/RECORD,,
File without changes