Skip to content

Instantly share code, notes, and snippets.

View Sealjay's full-sized avatar
😄

Chris Lloyd-Jones Sealjay

😄
View GitHub Profile
@Sealjay
Sealjay / request-example.py
Last active February 10, 2021 01:36
bingnews-cli - request example
import os
import textwrap
import requests
import pyshorteners
from tabulate import tabulate
def clean_trending_article_dictionary(article_dictionary):
"""Take a dictionary for a trending article, and tweak the output."""
@Sealjay
Sealjay / .env
Created February 10, 2021 01:00
bingnews-cli - .env example
BING_SEARCH_KEY=<the search key you copied earlier>
BING_SEARCH_ENDPOINT=https://api.bing.microsoft.com/