mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
commit
2b9b2b0e07
1 changed files with 5 additions and 4 deletions
|
@ -2,8 +2,9 @@
|
|||
let baseurl = 'https://www.schiit.co.uk/'
|
||||
let pages = [headphone-amps dacs schiit-gaming-products power-amplifiers preamps upgrades accessories-cables schiit%20graded%20stock]
|
||||
$pages|each {
|
||||
let product = $it
|
||||
fetch (build-string $baseurl $product)|selector 'div.caption' -a|each {
|
||||
echo [[($it|selector 'h5'|str trim)]; [(echo $it|selector 'p.stock')]]|pivot $product availability
|
||||
fetch (build-string $baseurl $it)|selector 'div.caption' -a|each {
|
||||
echo ($it|selector 'p.stock') (echo $it|selector 'h5'|str trim)|
|
||||
rotate name availability|
|
||||
reject Column2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue