Skip to content

straup/untitled-intimacies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These are a series of tools for generating "pinwin" style maps of twitter posts
and uploading them to Flickr. For example:

http://flickr.com/photos/straup/sets/72157610685215313/

# START HERE, FOR NOW 

http://www.aaronland.info/weblog/2009/03/14/buckets/#intimacies

# USAGE (simple)

$> perl ./map_post.pl -c /yer/details.cfg -l 'lat,lon' -u http://twitter.com/you/status/1234

# Use a screenshot instead

$> perl ./map_post.pl -c /yer/details.cfg -l 'lat,lon' -u /path/to/screenshot

# Change the zoom level (default is 15)

$> perl ./map_post.pl ... -z 15

# Geotag as "indoors"

$> perl ./map_post.pl ... -g 1 

# Geotag as "outdoors"

$> perl ./map_post.pl ... -g 2 

# With a custom height/width

$> perl ./map_post.pl ... -h 2048 -w 1024 

# DON'T FORGET (that ws-pinwin needs to be running first)

$> python /path/to/modestmaps/py/ws-pinwin.py &

# SAMPLE CONFIG

[twitter]
username=USER
password=PSWD

[flickr]
api_key=APIKEY
api_secret=SECRET
auth_token=TOKEN
# or XPath, this is a Net::Flickr::API-ism
api_handler=LibXML
# photo viewing permissions
is_public=0
is_friend=1
is_family=1
# geo viewing permissions
geo_is_public=0
geo_is_contact=0
geo_is_friend=1
geo_is_family=1

[bin]
# which ever version of Python has the PyObjC love...
webkit2png_python=/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5

# REQUIREMENTS

PyObjC - comes with built-in Python until OS X 10.5 (http://pyobjc.sourceforge.net/)

ModestMaps - from trunk, changeset 795 or higher (http://www.modestmaps.com)

# From the CPAN (http://cpan.org) 

Flickr::Upload.pm
Net::Flickr::API.pm
Net::ModestMaps.pm
Image::Size.pm
XML::XPath.pm or XML::LibXML.pm
IO::AtomicFile
WWW::Mechanize