Skip to content

Instantly share code, notes, and snippets.


Santhosh Thottingal santhoshtr

Block or report user

Report or block santhoshtr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
santhoshtr /
Created Oct 26, 2019
Crawl Kerala PRD website and download all content to json
import scrapy
from scrapy.http import Request
class HeadlineCatcher(scrapy.Spider):
name = "headlinecatcher"
start_urls = [""]
custom_settings = {

Keybase proof

I hereby claim:

  • I am santhoshtr on github.
  • I am sthottingal ( on keybase.
  • I have a public key ASAP_nrhFC103eL1sF9vFA9M4mrxkfvudZ2I-Bd9kiukOgo

To claim this, I am signing this object:

santhoshtr /
Created Jul 9, 2018
HD Audio download from a youtube playlist
youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 -o "%(title)s.%(ext)s"
santhoshtr /
Created Apr 6, 2018
ICU based string comparison using various collation strengths
from icu import Locale, Collator as ICUCollator
import locale
collator = ICUCollator.createInstance(Locale("ml_IN"))
word2="അവ‍ന്\u200d" # "അവന്"
print("[ICU] Are they primary equal? ",, word2))
print("[ICU] Are they secondary equal? ",, word2))
santhoshtr / index.html
Created Dec 10, 2017
Malayalam number parser
View index.html
<div class="container">
<input id="num" type="number" placeholder="Enter a number" />
<div id="result"></div>
<div id="analysis"></div>
santhoshtr /
Last active Sep 18, 2017
Malayalam Collator
import sys
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gio, GLib, Pango
import locale
from pyuca import Collator
from icu import UnicodeString, Locale, Collator as ICUCollator
santhoshtr / Malayalam-Syllable.peg
Last active May 27, 2017
Malayalam Syllable Model using PEG
View Malayalam-Syllable.peg
Word = Syllable+
Syllable = s:( Vowel
/ Chillu
/ ( Conjunct / Consonant ) Signs
) {
if ( Array.isArray( s ) ) {
return s.join( '' )
return s
santhoshtr / Malayalam-Conjunct.peg
Last active May 21, 2017
Malayalam Conjuct defined in Parser expression grammar
View Malayalam-Conjunct.peg
Conjunct = Consonant Virama (Conjunct / Consonant )
Consonant = [കഖഗഘങചഛജഝഞടഠഡഢണതഥദധനപഫബഭമയരലവശഷസഹളഴറ]
Virama = [്]
santhoshtr / limited-language.html
Created Oct 24, 2016
jquery.ime custom language set
View limited-language.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>jQuery IME example</title>
<meta name="author" content="Santhosh Thottingal" />
<link href="../css/jquery.ime.css" rel="stylesheet" />
<script src="//"></script>
<script src="../src/jquery.ime.js"></script>
santhoshtr / ManjariVariants.tex
Created Jul 30, 2016
Manjari Font variants Xelatex
View ManjariVariants.tex
\newfontfamily{\manjaril}[Script=Malayalam, UprightFont={* Thin}]{Manjari}
\newfontfamily{\manjarib}[Script=Malayalam, UprightFont={* Bold}]{Manjari}
\manjaril മലയാളത്തിനായി പുതിയൊരു യുണിക്കോഡ് അക്ഷരരൂപം കൂടി സ്വതന്ത്ര മലയാളം കമ്പ്യൂട്ടിങ്ങ് സമ്മാനിയ്ക്കുന്നു.
\manjari മലയാളത്തിനായി പുതിയൊരു യുണിക്കോഡ് അക്ഷരരൂപം കൂടി സ്വതന്ത്ര മലയാളം കമ്പ്യൂട്ടിങ്ങ് സമ്മാനിയ്ക്കുന്നു.
You can’t perform that action at this time.