Skip to content

Instantly share code, notes, and snippets.

View charlescrtr's full-sized avatar
🏠
Avoiding coronavirus ~~~like the plague~~~

Charles Harries charlescrtr

🏠
Avoiding coronavirus ~~~like the plague~~~
  • CRTR
  • County Durham
View GitHub Profile
@charlescrtr
charlescrtr / twitter.js
Last active February 7, 2019 16:05
Get a tweet with OAuth
const OAuth = require('oauth-1.0a');
const crypto = require('crypto');
const fetch = require('isomorphic-unfetch');
const linkifyHTML = require('linkifyjs/html');
const sanitizeHtml = require('sanitize-html');
// Don't put your config where people can see it folks
const { Config } = require('../config');
// \n doesn't work in HTML :/