I've started double mining Ethereum and PascalCoin using Claymore's Double Miner. I'm part of the Ethereum ethermine pool, and the PascalCoin nanopool.
With my GTX 1060, I've made a little ETH and PASC, but I want to upscale. I'm currently making an investment proposal to my mother, and hopefully it should let me build a mining rig of my own.
But enough of that - that's a bit far off. Let's talk about a small project I just began working on.
There's an API provided with ethermine and nanopool, accessible by sending HTTP requests. I thought, 'Why not code a small program that would check my hashrates, and tell me how much ETH I have?' That's when I turned to my good ol' friend Python, and found out about the urllib module.
Here's come code:
I used ast.literal_eval, which I thought to be a good idea at the time, as it appeared all of the info was in a bunch of nested arrays. However, I've just realised that it was indeed a JSON file, and I could use inbuilt methods to parse the file. Oops.