Wav-2-Txt
title: "Wav 2 Text"
author: "Rj"
date: 2019-04-21
description: "-"
type: technical_note
draft: false
import speech_recognition as sr
from os import path
from pydub import AudioSegment
'''
How to install ffmpeg:
brew tap varenc/ffmpeg
brew tap-pin varenc/ffmpeg
brew install ffmpeg $(brew options ffmpeg --compact)
https://gist.github.com/clayton/6196167 …
Read More
Webanalyzer Simple
title: "Web Analyzer Simple"
author: "Rj"
date: 2019-04-20
description: "-"
type: technical_note
draft: false
w = webanalyzer.WebAnalyzer()
w.headers = {
"User-Agent": "custom ua",
"header-key": "header-value"
}
w.allow_redirect = True
w.aggression = 0
r = w.start("http://www.fatezero.org")
print(r)
[{'name': 'Script', 'origin': 'whatweb'}, {'name': 'HTML5', 'origin': 'whatweb'}, {'name': 'Fastly …
Read More
Wiki-Bag-Of-Words
title: "Wiki Bag of Words"
author: "Rj"
date: 2019-04-20
description: "-"
type: technical_note
draft: false
import re
from nltk.tokenize import word_tokenize
from collections import Counter
article = """'\'\'\'Debugging\'\'\' is the process of finding and resolving of defects that prevent correct operation of computer software or a system. \n\nNumerous books …
Read More
Wiki-Bag-Of-Words-2
title: "Wiki Bag of Words 2"
author: "Rj"
date: 2019-04-21
description: "-"
type: technical_note
draft: false
import re
from nltk.tokenize import word_tokenize
from collections import Counter
article = """Natural lead consists of four stable isotopes with mass numbers of 204, 206, 207, and 208,[27] and traces of five short-lived radioisotopes …
Read More
Wired-Reader
title: "Wired Reader"
author: "Rj"
date: 2019-04-20
description: "List Test"
type: technical_note
draft: false
import requests
from bs4 import BeautifulSoup
page = requests.get('https://www.wired.com/2013/09/nsa-backdoored-and-stole-keys/')
soup = BeautifulSoup(page.text, 'html.parser')
artist_name_list = soup.find(class_='article-body-component')
print(artist_name_list.text[:100])
Read More
Word-Average
title: "Word Average"
author: "Rj"
date: 2019-04-21
description: "-"
type: technical_note
draft: false
f =open('canola.txt','r')
raw = f.read()
'OTTAWA—The federal Liberals promised Wednesday to give Canada’s canola farmers much-needed financial aid to help lessen the impact of China’s decision to ban the …
Read More
Word-Cloud-Shutter-Island
title: "Word Cloud on Shutter Island Script"
author: "Rj"
date: 2019-04-21
description: "-"
type: technical_note
draft: false
from os import path
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import os
from wordcloud import WordCloud, STOPWORDS
# Read the whole text.
text = open(path.join('', 'script.txt …
Read More
Word Counter
title: "Word Counter"
author: "Rj"
date: 2019-04-20
description: "List Test"
type: technical_note
draft: false
from collections import defaultdict
import re
content = """You know U make me wanna
You know U make me wanna
To start it off, I know you know me
To come to think of it, it was …
Read More
Word-Counter-Basic-1562
title: "Word Counter"
author: "Rj"
date: 2019-05-20
description: "-"
type: technical_note
draft: false
from collections import defaultdict
import re
content = """You know U make me wanna
You know U make me wanna
To start it off, I know you know me
To come to think of it, it was only last …
Read More
Word To Chars
title: "Word to Chars"
author: "Rj"
date: 2019-04-20
description: "List Test"
type: technical_note
draft: false
for l in letters:
print(l, type(l))
Read More