Skip to content

Data is scraped from Twitter to generate and play a piece of music based on a hashtag’s latest 100 tweets.

Notifications You must be signed in to change notification settings

KieranFarrerDev/Tweedi.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Tweedi.py

"Tweedi.py" is a script that scrapes data for a given hashtag and outputs a dynamically created piece of music from the collected data.

How to run the script

• Download both "tweedi.py" & "twitter_credentials" scripts.

• Replace Blank credentials in "twitter_credentials" with personal credentials.

• In "Tweedi.py" change line 143 to any hashtag of your choosing.

Line 143:

 tweets = api.search (q="#NHS"+" -filter:retweets",count=100,lang="en")

(Optional) To save produced MIDI File: un-comment lines 270-272.

Lines 270-272:

    # binfile = open("FileName.midi", 'wb')
    # MyMIDI.writeFile(binfile)
    # binfile.close()

About

Data is scraped from Twitter to generate and play a piece of music based on a hashtag’s latest 100 tweets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages