jlj

python

Trump didn't tweet as much as I thought

I think it was someone else talking about Maddow, who referenced Trump tweeting 120 times on Mother's Day. This, as further evidence of the meltdown that was trending on Twitter. It's funny: as opposed to checking, I decided this would be my #Python project; to pull down statistics on Trump's tweets through Twitter's API.

Well, thanks to Andy Patel's blog post on F-Secure, I did get some code working that pulled down his total number of tweets, from over 4000 days ago until now: over 51000; that's an average of 12.65 per day! I wanted to break it down by, say, the last month, and then the last seven days, so I could alert on some sort of spike. I'm not sure the API is up to that; not easily, anyway. I think I'd need to be counting the tweets as they happen, making sure not to run up against the significant limits and throttling Twitter have put in place these days.

Every question about the Twitter API on Stack Overflow seems to be five to ten years old. Makes sense, if it's been pretty much locked down. Still, this was a fun project. Oh, and I did (finally) go to Trump Tweet Track — what a time-sink! — and, in terms of volume, apparently Mother's Day was just another day for him. (I won't comment on the content; need to go wipe my eyeballs now.)

End of Day 3

— jlj #100DaysToOffload

I'm writing this as part of the 100 Days To Offload project; join us at: https://100daystooffload.com/

Clarity would've helped

Just a short one today, to catch up after yesterday's permissions snafu. I'm not doing very well. Could not concentrate on my work for the life of me. At least I'm not one of the ones thrown to the wolves now. Next month holds many questions, though.

I helped a colleague out today. That's something. Pointed out a great find in the cron.weekly newsletter I just subscribed to: ncdu. A bloody godsend for tracking down disk space hogs. #linux

I hope I can get it together soon. I've booked an exam for Friday, in the hopes that it'll give me some focus. I'm a Hashicorp Vault Associate, going for their Terraform Associate certification now. Enjoying the Pluralsight offerings — well, normally, anyway — more than the material on Hashicorp's Learn pages. I'm signed up with them until the end of the month; hoping I'll get some time to pick up something else — #Python, maybe. We'll see.

Sorry, this wasn't any shorter than yesterday's, in the end. Trying to decide whether I should work tonight. Probably, but I'd already sacked it off before I finished that sentence. I'm reading The Lies We Were Told by Simon Wren-Lewis at the moment; it's based on what I understand was (and continues to be) a very successful blog, mainly macro. I'm not far in, and it's great. But I'm also wondering whether I'm a bit too raw for it right now. Every day brings new ways this government is letting us down; reading about how nothing's new under the sun feels, oh, so heavy.

End of Day 2

— jlj #100DaysToOffload

I'm writing this as part of the 100 Days To Offload project; join us at: https://100daystooffload.com/