Fetch pages using a headless chromium browser, and returns the detected charset.
Text file, one URL per line
var azureCognitiveServicesMainEndpoint = 'https://northeurope.tts.speech.microsoft.com/cognitiveservices/v1'; | |
function azureCallApi(text, callback) { | |
var ssml = "<speak version='1.0' xmlns=\"http://www.w3.org/2001/10/synthesis\" xml:lang='en-US'>" + | |
"<voice name='Microsoft Server Speech Text to Speech Voice (en-GB, George, Apollo)'>" + | |
"<prosody rate=\"slow\">" + | |
text + | |
"</prosody>" + | |
"</voice>" + | |
"</speak>"; |
import obspython as obs | |
import subprocess | |
import os | |
import re | |
import datetime | |
# Info for potential OBS Python hackers! | |
# Tip 1 - Read the "OBS Studio Backend Design" documentation page. Read the documentation table of contents. | |
# Tip 2 - be sure to add obspython.py to your script path to enable completion. | |
# Tip 3 - Some of the Python API is generated at runtime, so it won't show up in obspython.py. |
#!/usr/bin/env python | |
''' | |
Conditionally upload all of the photos from an exported Facebook album to a | |
Micropub-compatible website with a media endpoint, and dump MF2-JSON data | |
that can later be published to the same Micropub website. | |
''' | |
import json | |
import sys |
#!/usr/bin/env python | |
''' | |
A script for quickly publishing MF2 content to a Micropub endpoint. To use this | |
script, first ensure that you have installed: | |
requests | |
You will also need to set the following environment variables: |
import obspython as obs | |
interval = 30 | |
source_name = "" | |
# ------------------------------------------------------------ | |
def update_text(): | |
global interval | |
global source_name |
#!/usr/bin/env python | |
''' | |
Usage: | |
./transform <path-to-facebook-export.json> | |
This will transform everything using granary and then place | |
individual files into a directory called "mf2." |
import obspython as obs | |
import urllib.request | |
import urllib.error | |
import random | |
url = "" | |
interval = 30 | |
source_name = "" | |
weasleys = ["Ron", "George", "Fred", "Ginny", "Percy", "Bill", "Charlie"] |
from selenium import webdriver | |
import sys, getopt, time, subprocess, shlex | |
from xvfbwrapper import Xvfb | |
def run(): | |
print('Sreencast website animation') | |
xvfb = Xvfb(width=1280, height=720, colordepth=24) | |
xvfb.start() |