Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 857 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 857 Bytes

MET-2-tweet.php

One of my favorite starting pages is MET Museum catalog. Almost everytime I see a delightful artwork that I want to share with my twitter followers. That's the main use of this script.

This simple PHP script, scraps the information from a catalog page and downloads the main image, composes a tweet and sends it.

Each artwork has an unique catalog ID you can get fromt its URL:

http://www.metmuseum.org/art/collection/search/283277
// Catalog ID is 283277

Usage

// Test mode, show info in term, does not post tweet
// Useful for debugging
php -f MET-2-tweet.php XXXXX

// Add --send to post tweet
php -f MET-2-tweet.php XXXXX --send