Skip to content

Bot powering @78_sampler, posting video clips of digitized 78 records from the Internet Archive

Notifications You must be signed in to change notification settings

thisisparker/78_sampler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@78_sampler

This bot picks a random 78 record from the Great 78 Project, downloads the image and audio, and renders together a 140-second clip suitable for posting to Twitter. Then it uploads that video with a link to the tune. Follow it at @78_sampler.

The internetarchive module required by this script also provides a command line interface that can be used to generate the georgeblood.txt file. The George Blood collection at the Internet Archive is continually being expanded, so I run the following command on occasion:

ia search collection:georgeblood --itemlist > georgeblood.txt

Note that the collection currently contains over 300,000 items, so it is normal for that command to take some time to run.

The collection contains some items I never want the bot to tweet; I maintain a file called exclude.txt with a series of strings that should not appear. I apply the filter in line with the request with a simple grep:

ia search collection:georgeblood --itemlist | grep -iv -f exclude.txt > georgeblood.txt

About

Bot powering @78_sampler, posting video clips of digitized 78 records from the Internet Archive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages