Using namedtuple as a poorman's parser
I needed to parse the routing tables, therefore I needed to parse the command route which gives an output similar to something like this. Kernel IP routing tableDestination Gateway Genmask Flags Me...
I needed to parse the routing tables, therefore I needed to parse the command route which gives an output similar to something like this. Kernel IP routing tableDestination Gateway Genmask Flags Me...
I was wrapping a client rpc which was calling functions on a server rpc. The code looked like this. class RpcClient(object): def rpc_list_users(self,*args,**kwArgs): result = self.call("rpc_list_users&...
You’ll find this post in your _posts directory - edit this post and re-build (or run with the -w switch) to see your changes! To add new posts, simply add a file in the _posts directory that follows the convention: YY...
I recently had an extremely large web scraping gig where I required 4 VPS at once. The client wanted to use digitalocean since you pay for the VPS by the hour, instead of by the month. To make the job more difficult, ...
When scraping websites using a headless browser, if it is possible to call the XMLHttpRequest call using Selenium Requests which is an extension of Selenium-Requests. The Selenium Requests Library works by creating a ...
In the post I am going to talk about controlling docker container with the python module rpyc. The main reason you will want to do this is to control multiple processes each running in an isolated virtual machine. I w...
When python selenium communicates with the webbrowser it sends its requests through a bridge. For locating a single element in a page and getting its data or clicking on it, this will not be much of a problem. But if ...