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/GyanBlog/TaggingFactory

Related Posts

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…

How to add alt attribute of images in all of my drupal articles or other content type

How to add alt attribute of images in all of my drupal articles or other content type

I have a custom content type, and there are around 2000 number of nodes in my…

Latest Posts

Deep Dive on Elasticsearch: A System Design Interview Perspective

Deep Dive on Elasticsearch: A System Design Interview Perspective

“If you’re searching, filtering, or aggregating over large volumes of semi…

Deep Dive on Apache Kafka: A System Design Interview Perspective

Deep Dive on Apache Kafka: A System Design Interview Perspective

“Kafka is not a message queue. It’s a distributed commit log that happens to be…

Deep Dive on Redis: Architecture, Data Structures, and Production Usage

Deep Dive on Redis: Architecture, Data Structures, and Production Usage

“Redis is not just a cache. It’s a data structure server that happens to be…

Deep Dive on API Gateway: A System Design Interview Perspective

Deep Dive on API Gateway: A System Design Interview Perspective

“An API Gateway is the front door to your microservices. Every request walks…

REST API Design: Pagination, Versioning, and Best Practices

REST API Design: Pagination, Versioning, and Best Practices

Every time two systems need to talk, someone has to design the contract between…

Efficient Data Modelling: A Practical Guide for Production Systems

Efficient Data Modelling: A Practical Guide for Production Systems

Most engineers learn data modelling backwards. They draw an ER diagram…