Advertisement
0utsidethebox

Get all Telegram channel posts

Dec 16th, 2020
1,329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 950..955 | ForEach-Object {
  2.     $url = "https://t.me/sterkin_ru/$($_)"
  3.     $a = Invoke-WebRequest -Uri $url
  4.     # если не содержит ссылку...
  5.     if (!$a.links.href.Contains('https://t.me/winsiders'))
  6.     # ... записать URL в файл
  7.     {$url | Out-File -Append C:\temp\urls.txt}
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement