Skip to content

Trim, remove new line,remove consecutive whites#2

Merged
avan06 merged 1 commit intoavan06:mainfrom
Mirochiu:feat_removeWhitesInResult
Aug 16, 2023
Merged

Trim, remove new line,remove consecutive whites#2
avan06 merged 1 commit intoavan06:mainfrom
Mirochiu:feat_removeWhitesInResult

Conversation

@Mirochiu
Copy link
Copy Markdown
Contributor

Trim, remove new line, and remove consecutive whites

Expected

Make the output more compact for further process.

Original output in v1.0.5

./htmlq -u https://raw.githubusercontent.com/Mirochiu/execute-daily/main/nt66-20230713.html -a -q '.ca_select option[value]:not([disabled])'

- - 請選擇商品 - - ★搭機套餐價熱賣中★
AMD R5 5500 ★6核.12緒/3.6GHz(Turbo 4.2GHz)/L3 Cache 16M/TDP 65W/無內顯/含Wraith Stealth風扇/支援PCIe 3.0 x16 ~ 
																	$3200
															
【代理商貨】Intel i7-12700 ★12核.20緒/2.1GHz(Turbo 4.8GHz)/25M快取/TDP 65W/含RM1風扇 ~ 
																	$9999
															
技嘉 B760M H DDR4 + I3-13100 4核8緒 ~ 
																	$7160
															
技嘉 B760M H DDR4 + I5-13400 10核16緒 ~ 
																	$9890
															
技嘉 B760M H DDR4 + I7-13700 16核24緒 ~ 
																	$15390

New output in this PR

./htmlq -u https://raw.githubusercontent.com/Mirochiu/execute-daily/main/nt66-20230713.html -a --RemoveConsecutiveWhiteChars --Trim -q '.ca_select option[value]:not([disabled])'

- - 請選擇商品 - - ★搭機套餐價熱賣中★
AMD R5 5500 ★6核.12緒/3.6GHz(Turbo 4.2GHz)/L3 Cache 16M/TDP 65W/無內顯/含Wraith Stealth風扇/支援PCIe 3.0 x16 ~ $3200
【代理商貨】Intel i7-12700 ★12核.20緒/2.1GHz(Turbo 4.8GHz)/25M快取/TDP 65W/含RM1風扇 ~ $9999
技嘉 B760M H DDR4 + I3-13100 4核8緒 ~ $7160
技嘉 B760M H DDR4 + I5-13400 10核16緒 ~ $9890
技嘉 B760M H DDR4 + I7-13700 16核24緒 ~ $15390

New args

  1. --Trim
  2. --RemoveNewLine
  3. --RemoveConsecutiveWhiteChars

Usage:
./htmlq -u https://raw.githubusercontent.com/Mirochiu/execute-daily/main/nt66-20230713.html -a --RemoveConsecutiveWhiteChars --Trim -q '.ca_select option[value]:not([disabled])'

@avan06
Copy link
Copy Markdown
Owner

avan06 commented Aug 16, 2023

Everything seems fine.
Thanks for the PR!

@avan06 avan06 merged commit c469e85 into avan06:main Aug 16, 2023
@Mirochiu Mirochiu deleted the feat_removeWhitesInResult branch August 16, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants