Skip to content

Tweets a MET's Museums collection image by its catalog ID

License

Notifications You must be signed in to change notification settings

carloscabo/MET-2-tweet.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tweets a MET's Museums collection image by its catalog ID

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages