📜 ⬆️ ⬇️

PowerShell and Habrahabr API

Improved my PowerShell script, which works with HabraAPI. I decided to share with the subscribers of the blog, maybe someone will be interested in:

 [xml]$str = [System.Text.Encoding]::UTF8.GetString((new-object system.net.WebClient).DownloadData("http://habrahabr.ru/api/profile/XaocCPS")) Write-Host $str.habrauser.login '- :' $str.habrauser.karma ', :' $str.habrauser.rating 
[xml]$str = [System.Text.Encoding]::UTF8.GetString((new-object system.net.WebClient).DownloadData("http://habrahabr.ru/api/profile/XaocCPS")) Write-Host $str.habrauser.login '- :' $str.habrauser.karma ', :' $str.habrauser.rating

')

Source: https://habr.com/ru/post/76538/


All Articles