Skip to content

Instantly share code, notes, and snippets.

View Paanini's full-sized avatar

Paanini Navilekar Paanini

View GitHub Profile
@Paanini
Paanini / Shorten Links
Last active October 3, 2021 12:49
Google Apps Script to shorten all URLs in a doc using Bit.ly
@Paanini
Paanini / pocket_favourites.py
Created July 25, 2014 20:56
Python script to fetch URLs of all articles from Pocket (http://getpocket.com) that have been favourited in the last 24 hours
!/usr/bin/python
import requests, json, datetime
access_token = "ENTER_YOUR_ACCESS_TOKEN"
consumer_key = "ENTER_YOUR_CONSUMER_KEY"
get_url = 'https://getpocket.com/v3/get'
#Find the Unix Epoch timestamp exactly 24 hours before now
since = int(datetime.datetime.now().strftime("%s")) - 86400