~/seo/24-how-generate-powerful-tags-your-content-seo.md

How to generate powerful tags for your content - SEO

2 min readMay 05, 2017by Gorav Singal#software-engineering#computer-programming#automation
// TL;DR

Use tools like Open Calais to automatically extract relevant keywords and tags from your article content for better SEO and discoverability.

How to generate powerful tags for your content - SEO

One of the biggest task while writing article or blog is to have right set of keywords on which your article or blog can rank high on search results. There are two ways to have right set of keywords in your article:

  1. People search for right keywords, and write content based on them. Basically fill those keywords in the article or blog.
  2. People write article or blog, and then put keywords, either as meta keywords, or having a tag field. So that it will help users to find right content.
I will focus on 2nd approach here.

Problem Statement

I use to write articles on a veriety of things. And, one of the field in my article form is Tags. I like to fill Tags field, as it is great for SEO purpose too, and users findthis useful.

I used to write articles first, and then look for keywords out of that article. And, later on, I found this process lengthy. This is actually a time consuming.

I always wanted some kind of automation here, that I give my text, and please let me know the tags.

OpenCalais - The Solution

I found this service OpenCalais the perfect match to my problem. And the good thing is that it is absolutely free. They call it as their Tag service, where you provide your text, and they will tell you the tags. They have some serious intelligence in fetching the tags based on some Machine learning, and analytics.

There are two ways you can use it:

1. From OpenCalais viewer

Goto OpenCalais Viewer, and you have the option of copy-paste your text, and upload your document. And, then click on ”Tag it” How to generate powerful tags for your content - SEO You put some text in their textarea, and click on Tag button, and you will get nice tags. How to generate powerful tags for your content - SEO

And, the results will look like: How to generate powerful tags for your content - SEO

All english words under SocialTags are your ready to made tags, just copy them, and use it in your Tags field.

2. Via Rest APIs

They also provides you to use their rest apis. You need to get an API key from their page here. You will need to register, and you will get an api key. Something like a big random alphanumeric string.

They have provided some sample codes in following languages:

  • Java
  • Javascript
  • Python
  • Php
  • Javascript
And, you can see their sample code here.

Ready to use Code for your purpose

I have made a sample code for you so that you don’t need to parse the results. The code is shared at github.

Below are the steps to use:

  1. Put your text content in a file, say file.txt (It can have html too)
  2. Open your console
  3. From github, run fileopencalais.py as:
    pythonopencalais.py file.txt "Your secret api key"
  4. You will get output on console. Each tag separated by a new line.

The code is shared at:https://github.com/GyanByte/TaggingFactory

$ subscribe --weekly

One deep dive a week, in your inbox

System design, AI engineering, trading systems and interview prep. Tested code, real numbers. Free, and you can unsubscribe any time.

or read it on gyanbyte.substack.com

Share

Related Posts

AI Agents Demystified — It's Just Automation With a Better Brain

AI Agents Demystified — It's Just Automation With a Better Brain

Let’s cut through the noise. If you read Twitter or LinkedIn, you’d think “AI…

Claude Code Skills — Build a Better Engineering Workflow

Claude Code Skills — Build a Better Engineering Workflow

Most developers use Claude Code like a search engine — ask a question, get an…

How to check whether a website link has your URL backlink or not - NodeJs implementation

How to check whether a website link has your URL backlink or not - NodeJs implementation

Introduction I got my seo backlink work done from a freelancer. It was like 300…

Curl - Your friend for Rest APIs/Calls - Basic Commands

Curl - Your friend for Rest APIs/Calls - Basic Commands

Curl is a wonderful tool for initiate REST APIs or calls. Or, you can literally…

php55w-common conflicts with php-common-5.* | Php issues while installing libraries

php55w-common conflicts with php-common-5.* | Php issues while installing libraries

I was trying to install mongo extension with pecl. It gave me error: Then, I…

Drupal Helpful codes for database queries

Drupal Helpful codes for database queries

Being a drupal user from last around 5 years, I used to know small codes for…

Latest Posts

How to Stay Valuable as a Software Engineer in the AI Era: A Practical Playbook

How to Stay Valuable as a Software Engineer in the AI Era: A Practical Playbook

In the previous article I argued that AI is not killing software engineering…

How to Review AI-Generated Code: A Checklist for Catching What the Model Missed

How to Review AI-Generated Code: A Checklist for Catching What the Model Missed

A few months back I approved a PR that was almost entirely AI-generated. It…

How to Debug AI-Generated Code: Understand First, Fix Last

How to Debug AI-Generated Code: Understand First, Fix Last

In the last article I wrote about reviewing AI code before it goes in. This one…

The Future of Software Engineering: What AI Changes, What Stays, and Where the Jobs Go

The Future of Software Engineering: What AI Changes, What Stays, and Where the Jobs Go

Every few weeks somebody sends me a scary headline — “AI will replace all…

The Transactional Outbox Pattern: Never Lose an Event Again

The Transactional Outbox Pattern: Never Lose an Event Again

This is one of those patterns that looks like nothing until you get burnt once…

Event Sourcing, Explained: Store What Happened, Not Just the Final State

Event Sourcing, Explained: Store What Happened, Not Just the Final State

Here is a question I like to ask in interviews: your bank account shows a…