Tagged: Code

1

Counting Blog Posts using xidel

I wanted to write 100 posts in 2021, and I am nowhere close to that. I tried to look at the posts by year and see how I have performed over the years. Of course, I could have done that manually by looking at the year archive count or running a query on the database. But recently, I have started using Xidel, so why not use it? :)

0

Building a Web API around CLI Tool

So It’s in my nature to convert everything to a web-service. The biggest reason is that you can call a web service from anywhere, and it’s easy to share the processing power and logic with anyone who has access to a web browser or curl and nothing else.

2

Extract Data from HTML/XML/JSON using Xidel

As you would know, I scrape a lot of web pages as a Data Archivist at DataMeet. I usually use BS4 for this, and it’s beautiful, simple, and works. But often don’t want to write a python script to do that, and I need a simple tool to get data out of HTML.

0

JBang and My Own Custom Catalog

JBang, once installed, allows you to run any java file like a script. Superbly helpful if you want to hack something quickly. It can also install the same as app or binary so it can be found on your PATH. So you can forget about jbang and just run the app.

0

Decoding Google Datastore’s URL Safe Key

A Key (like a primary key) A unique identifier for an entity; it’s usually a long number. But it’s more than that. It’s a complex object which contains the unique ID (64-bit integer), Entity Name, Path, Parent, etc Datastore also gives you. URL Safe Key; that you can safely pass around. Here is how you decode it.