jq is useful to slice, filter, map and transform structured json data.
brew install jq
#Script for scraping Chronicling America | |
import requests | |
import re | |
import csv | |
from bs4 import BeautifulSoup, SoupStrainer | |
import os | |
from time import sleep | |
from datetime import date, datetime, timedelta | |
#search_terms is a string of words separated by spaces. |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
class ElasticScroll(object): | |
"""Manages scroll contexts for elasticsearch scroll queries. | |
Args: | |
host (str): Elasticsearch host url. Example: ``http://localhost:9200``. | |
index (str): Elasticsearch index name. Example: ``my_index``. |
# Setup: | |
# conda create -n whisper python=3.9 | |
# conda activate whisper | |
# https://github.com/openai/whisper | |
# pip install git+https://github.com/openai/whisper.git | |
# Usage: | |
# python whisper-audio-to-text.py --audio_dir my_files --out_dir texts | |
import argparse |