Skip to content

Instantly share code, notes, and snippets.

View keplersj's full-sized avatar
🌭
does it look like i know what a jpeg is

Kepler Sticka-Jones keplersj

🌭
does it look like i know what a jpeg is
View GitHub Profile
@keplersj
keplersj / archiver.ts
Created February 8, 2018 18:16
Sitemap Archiver
import * as got from "got";
import { parseString as parseXML } from "xml2js";
import * as pify from "pify";
import * as puppeteer from "puppeteer";
const sitemapLocation = "";
async function run() {
console.log("Requesting Sitemap");
const sitemapResponse = await got(sitemapLocation);

Keybase proof

I hereby claim:

  • I am keplersj on github.
  • I am keplersj (https://keybase.io/keplersj) on keybase.
  • I have a public key ASCdDsqhwr0959ZmZrGadwT-4eWZRJHkgNuSTRv-hNhitAo

To claim this, I am signing this object:

import { createApolloFetch } from "apollo-fetch";
import * as cp from "child_process";
import pify from "pify";
import * as path from "path";
import * as fs from "fs";
import got = require("got");
const restEndpoint = "https://api.github.com";
const uri = "https://api.github.com/graphql";
const token = process.env.GITHUB_TOKEN;