A ROCK Blog

1

Open URL with proxy using Python requests

Dear Friends, I have given the code below to open any Url which is behind proxy. Most of the organizations are using proxy servers to act as a middle man during network traffic to observe the traffic and applying some filters. When this comes to Python Url activities, we have...

2

System notification of news feed using Python

Dear Friends, In this tutorial I am going to show you how to prepare a script for system notification of Times of India website’s top stories and latest news and this tutorial is for educational purpose. Because some website may consider the scraping of website data as illegal. Key Points:...

0

Login to remote systems using pxssh

Hi All, Who wants to login to remote server using ssh command with tiredness of entering password and IP for known systems repeatedly? I will get an answer of absolutely no. Good. How to overcome this cumbersomeness? The powerful programming language Python offers a module pexpect to do this. Why...

0

Finding AD user accounts expires in next N days using Powershell

Hi Friends, I am going to give you a Powershell snippet to find the AD user accounts which are going to expire in next N days. First let us see the script and then I will brief the flow. Script: Explanation: Search–ADAccount –AccountExpiring –TimeSpan (New–TimeSpan –Days $days)  is the line which gives us the expiring...

0

How to get O365 user licenses in CSV?

Dear Friends, I am going to share how to fetch O365 users in csv using Powershell. I am able to hear your voice about we have a cmdlet Get-MsOlUser -All. Then why are you blabbering about fetching the users in csv ? I accept your point. Yes, there is a...