Skip to content

Instantly share code, notes, and snippets.

Avatar

Paanini Navilekar Paanini

View GitHub Profile
@Paanini
Paanini / pocket_favourites.py
Created Jul 25, 2014
Python script to fetch URLs of all articles from Pocket (http://getpocket.com) that have been favourited in the last 24 hours
View pocket_favourites.py
!/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
@Paanini
Paanini / Shorten Links
Last active Dec 10, 2020
Google Apps Script to shorten all URLs in a doc using Bit.ly
View Shorten Links