This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Script to upload images of panoramio to wikimedia commons. | |
by Shizhao 2014 | |
""" | |
import urllib2,re, random | |
import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSPS V3C http://jspsv3c.jp/wiki/api.php 1 0 | |
Internationales Loongwiki http://loong.bwdffm.de/api.php 1 0 | |
Wiki Virus http://wikivirus.com/api.php 1 0 | |
Docnwiki http://dotorgdotcom.net/api.php 1 0 | |
Crylab-STUDIOS - Wiki http://crylab-studios.square7.ch/wiki/api.php 1 0 | |
Zeroberian http://zeroberian.com/api.php 1 0 | |
Bria's Recipies http://food.hoovaloo.ca/api.php 1 0 | |
Envirome.net http://envirome.net/api.php 1 0 | |
Resource http://uffisms.com/mediawiki/api.php 1 0 | |
Wapit 2.0 http://wapit.fi/wapit/api.php 1 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'), | |
page = new WebPage(), | |
url = 'https://twitter.com/jmsdnns', | |
stepOffset = 0, | |
stepCounter = 0, | |
full_path = "/Users/jmsdnns/Projects/ghst/img-tw"; | |
page.open(url); | |
page.onLoadFinished = function(status) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import internetarchive.api as iaapi | |
import humanize | |
w=iaapi.get_item('wikimediacommons') | |
def extract(x): | |
s = x.identifier.split('-',1) | |
date = s[1] if '-' in s[1] else s[1][:4]+'-'+s[1][4:] | |
return ' |-\n | ' + ' || '.join((date, '{{IA id|'+x.identifier+'}}', str(x.files_count), humanize.naturalsize(x.item_size))) | |