Skip to content

Instantly share code, notes, and snippets.

@techinpark2
techinpark2 / transmission_torrent_done.sh
Created October 11, 2018 17:18 — forked from awesometic/transmission_torrent_done.sh
Transmission download complete shell script for moving complete files and removing its torrent entry
#!/bin/bash
#
# 2017. 08. 31 Written by Awesometic
# 2017. 09. 25 Updated
# 2018. 01. 17 Updated
# Split log file when the file size is bigger than 100 KB
# Remove unimportant comments
# Clean up the descriptions
# Clean up the codes
# Add datetime for each log
import urllib
import json
target_url = "https://api.instagram.com/v1/tags/%EC%85%80%EC%B9%B4/media/recent?access_token=[YOUR_ACCESS_TOKEN_HERE]"
handle = urllib.urlopen(target_url)
data = handle.read()
json = json.loads(data)
params = urllib.urlencode({
'access_token':'[YOUR_ACCESS_TOKEN_HERE]'