seo|May 05, 2017|2 min read

How to generate powerful tags for your content - SEO

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

Related Posts

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…

Docker image for Drupal 7, and Php extension MongoDB installed.

Docker image for Drupal 7, and Php extension MongoDB installed.

You have drupal 7 image from docker hub, and want to connect tomongo db via php…

Latest Posts

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…

Building an AI Voicebot for Visitor Check-In — A Practical Guide to Handling the Messy Parts

Building an AI Voicebot for Visitor Check-In — A Practical Guide to Handling the Messy Parts

Every office lobby has the same problem: a visitor walks in, nobody’s at the…

Server Security Best Practices — Complete Hardening Guide for Production Systems

Server Security Best Practices — Complete Hardening Guide for Production Systems

Every breach post-mortem tells the same story: an unpatched service, a…

Staff Engineer Study Plan for MAANG Interviews — The Complete 12-Week Roadmap

Staff Engineer Study Plan for MAANG Interviews — The Complete 12-Week Roadmap

If you’re a Senior Engineer (L5) preparing for Staff (L6+) roles at MAANG…

XSS and CSRF Explained — The Complete Guide with Real Attack Examples and Defenses

XSS and CSRF Explained — The Complete Guide with Real Attack Examples and Defenses

XSS and CSRF have been in the OWASP Top 10 for over a decade. They’re among the…

OWASP Top 10 (2021) — Every Vulnerability Explained with Code

OWASP Top 10 (2021) — Every Vulnerability Explained with Code

The OWASP Top 10 is the industry standard for web application security risks. If…