Program to extract hash tags from the tweets

What is hashtag?

A hashtag is a type of metadata tag used on social networks such as Twitter and other microblogging services, allowing users to apply dynamic, user-generated tagging which makes it possible for others to easily find messages with a specific theme or content.

Users create and use hashtags by placing the number sign or pound sign usually# in front of a word or unspaced phrase in a message.

The hashtag may contain letters, digits, and underscores. Searching for that hashtag will yield each message that has been tagged with it.

A hashtag archive is consequently collected into a single stream under the same hashtag.

Where is it likely used?

On Instagram, the hashtag #bluesky allows users to find all the posts that have been tagged using that hashtag.

The use of hashtags was first proposed by Chris Messina in 2007 spreading like wild-fire through the platform.

By the end of the decade, hashtags could be seen in most emerging as well as established social media platforms.

So much so that Instagram had to officially place a “30 hashtags” limit on its posts to prevent people from abusing their use.

A limit which Instagrammers eventually circumvented by posting hashtags in the comments section of their posts.

As of 2018 more than 85% of the top 50 websites by traffic on the Internet use hashtags. Their use is highly common with millennials, Gen Z, politicians, influencers, and celebrities worldwide.

I have used regular expression in python to extract the hashtags from the tweets. It is the simplest way of doing so. There are different methods too.

Leave a Reply

Your email address will not be published. Required fields are marked *