seo2 Min Read

How to generate powerful tags for your content - SEO

Gorav Singal

May 05, 2017

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

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 with AI-Powered Code Reviews, Security Scans, and More

Claude Code Skills — Build a Better Engineering Workflow with AI-Powered Code Reviews, Security Scans, and More

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

AI Video Generation in 2025 — Models, Costs, and How to Build a Cost-Effective Pipeline

AI Video Generation in 2025 — Models, Costs, and How to Build a Cost-Effective Pipeline

AI video generation went from “cool demo” to “usable in production” in 2024-202…

AI Models in 2025 — Cost, Capabilities, and Which One to Use

AI Models in 2025 — Cost, Capabilities, and Which One to Use

Choosing the right AI model is one of the most impactful decisions you’ll make…

AI Image Generation in 2025 — Models, Costs, and How to Optimize Spend

AI Image Generation in 2025 — Models, Costs, and How to Optimize Spend

Generating one image with AI costs between $0.002 and $0.12. That might sound…

AI Coding Assistants in 2025 — Every Tool Compared, and Which One to Actually Use

AI Coding Assistants in 2025 — Every Tool Compared, and Which One to Actually Use

Two years ago, AI coding meant one thing: GitHub Copilot autocompleting your…

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…

Supply Chain Security — Protecting Your Software Pipeline

Supply Chain Security — Protecting Your Software Pipeline

In 2024, a single malicious contributor nearly compromised every Linux system on…