Advertisement
0utsidethebox

Get all Telegram channel posts v2

Dec 16th, 2020
1,370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 995..998 | ForEach-Object {
  2.     $url = "https://t.me/sterkin_ru/$($_)"
  3.     $c = Invoke-WebRequest -Uri $url
  4.     # если не содержит ссылку...
  5.     if ($c.links.href -notcontains '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