Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Wednesday, 23 January 2019

Firefox Advanced Youtube Search Add-on - Sort Criteria

The following extension adds a menu item to the right-click menu that enables you to search for the selected text with specified sort criteria - Relevance, Upload Date, View Count, Rating.

Create a folder named search_youtube_sort and add the following manifest.json and search_youtube_sort.js files to this folder.

Go to about:debugging in Firefox and click Load Temporary Add-on and load the manifest.json file. Then right-click on the selected text on a webpage and choose the sort criteria to search in Youtube.

Monday, 27 October 2014

Monday, 5 May 2014

Compare HTML Pages: HTML Tags Counter

There are many instances in which we would want to compare HTML templates programmatically. One of the simplest methods or one of the factors that could be used to rule out the similarity of two HTML pages is to count the number of HTML tags in those pages and compare the same.

The following Python script helps to get the HTML tag count of an HTML webpage given a URL:






A sample output of the above script is given below: