9 lines
411 B
PowerShell
9 lines
411 B
PowerShell
$queries = @('feishu', 'lark', 'larksuite')
|
|
foreach ($q in $queries) {
|
|
Write-Output "===== query: $q ====="
|
|
$r = Invoke-RestMethod -Uri "https://crates.io/api/v1/crates?q=$q&per_page=20" -Headers @{ 'User-Agent' = 'devflow-research' }
|
|
$r.crates | ForEach-Object {
|
|
"{0,-22} v{1,-10} dl={2,-8} upd={3} repo={4}" -f $_.id, $_.max_version, $_.downloads, ($_.updated_at -split 'T')[0], $_.repository
|
|
}
|
|
}
|