Reading & Writing Electronic Text - The Viral Poek

Poetic Form

For our midterm assignment, we created new poetic forms and generated poems based on these new rules using Python. Embarrassingly, I'm not well-read with poetry, possibly because I don't connect naturally with the device. However, there are several poems I've come across in the past few years that I have enjoyed - and they've all been while riding the subway.

In that vein, I wanted to create a poem for the age of the meme- where content must be short, digestable, and current. Hence, the "InstaPoem."

Rules:

  1. Cannot be longer than 11 lines
  2. Each line can contain no more that 6 words
  3. The content must be taken dynamically from user-generated content.

My hope was to create interesting, timely, and digestable poems. Where they lack in depth, they make up for in the raw honesty and currentness that accompanies social media posts.

Poem #1 - "#LoveSucks"

You sayit’s not my
#followforfollow #grunge #music #indie #alternative
i look like #jesus duude
#followforfollow #grunge #music #indie #alternative
This game is one I
i want to live here
#followforfollow #grunge #music #indie #alternative
love is war and im
I’m bored
#love #lovequotes #lovesucks #quotesaboutlove #quotesabouthim
Changing my theme again Haha

For my first poem, I searched for the hashtag "LoveSucks" on Instagram, and used captions that accompanied the photographs as my source text.

Poem #2 -"#brotherhood"

#fratelli #brothers #brotherhood
Gara’b2 laptop rusak dokumentasi pd
I LOVE MY WAY MY
Really miss it......
#court35 #gym #izmir #muaythai #mma
#criplife #thecripworld #thatGshit #brotherhood #formyfam
Heading out the door is
Order yours today at www.blacksmokeapparel.com
#love #lovequotes #brotherhood #quotesaboutlove #quotesabouthim
Stay safe and stay below

Poem #3 - "#ISIS"

#god #jesus #eminem #islam
allah #Shady #detroit #irak #russia #arabia
I haters my country depuis blackhollywood Is


Code

  1. Search through Instagram API for all captions with particular hashtag.
  2. Transfer the output into a .txt file
  3. Transform each caption returned, into a list
  4. Join the comma-separated item into a single unit
  5. Print each unit

import urllib2
import json


url =' https://api.instagram.com/v1/tags/isis/media/recent?access_token=1270.1fb234f.04a11cf1f87a44f6af8f4680a2e36123'

json_obj = urllib2.urlopen(url)

data = json.load(json_obj)
        
for caption_text in data['data']:
    print caption_text['caption']['text']
    

captionList = [line.strip() for line in open("/Users/MichaelWeber/Documents/RWET/midterm/#lovesucks.txt").readlines()]    

#each caption returned, split into words, split into lists
loveSucks1 = 
['You',' say', "it's",' not',' my',' fault',' yet',' I',' know',' it',' is',' and', "I'm",' crushed',' and',' your',' fine.', "I'm",' on',' the',' ground',' crying',' and',' my',' heart',' caving',' in',' and',' you',' seem',' untouched',' by',' all',' this.',' Yeah', "it's",' true.',' One',' always',' love',' more',' than',' the',' other.',' Love',' has',' me',' love',' sick',' baby']
loveSucks2 = 
['#followforfollow',' #grunge',' #music',' #indie',' #alternative',' #followme',' #grungegirls',' #bands',' #palegrunge',' #scene',' #sleepy',' #likeforlike',' #loser',' #lifesucks',' #bands',' #lovesucks',' #hopless',' #dark',' #oceans',' #grungetheme',' #grungegirl',' #pale',' #softgrunge',' #broken ' ]
loveSucks3 = 
['i',' look',' like',' #jesus',' duude',' i',' hate',' people',' who',' only',' use',' you',' and',' when',' you',' need',' them',' they',' "cant"',' I',' HATE',' YOU']
loveSucks4 = 
['#followforfollow',' #grunge',' #music',' #indie',' #alternative',' #followme',' #grungegirls',' #bands',' #palegrunge',' #scene',' #sleepy',' #likeforlike',' #loser',' #lifesucks',' #bands',' #lovesucks',' #hopless',' #dark',' #oceans',' #grungetheme',' #grungegirl',' #pale',' #softgrunge',' #broken ' ]
loveSucks5 = 
['This',' game',' is',' one',' I',' always',' lose...',' #lovesucks',' #love',' #why',' #lose',' #loser',' #broken',' #hearted',' #"happy"',' #lovelife',' #whocares',' #idfwu',' #IDFWU ' ]
loveSucks6 = 
['pm://',' iwant',' to',' live',' here',' and',' im',' watching',' the',' real',' house',' wives',' of',' beverly',' hills.',' they',' are',' stupid. ' ]
loveSucks7 = 
['#followforfollow',' #grunge',' #music',' #indie',' #alternative',' #followme',' #grungegirls',' #bands',' #palegrunge',' #scene',' #sleepy',' #likeforlike',' #loser',' #lifesucks',' #bands',' #lovesucks',' #hopless',' #dark',' #oceans',' #grungetheme',' #grungegirl',' #pale',' #softgrunge',' #broken ' ]
loveSucks8 = 
['love',' is',' war',' and',' im',' your',' soldier',' #soldier',' #war',' #love',' #quotes',' #feelings',' #ihatefeelings',' #lovesucks',' #single',' #onlysomuchicando',' #icant',' #notanymore',' #heartache',' #colornote',' #latenights',' #thoughts',' #itsstupid ' ]
loveSucks9 = 
["I'm",' bored ' ]
loveSucks10 = 
['#love',' #lovequotes',' #lovesucks',' #quotesaboutlove',' #quotesabouthim',' #cute',' #crushquotes',' #cutequotes',' #couples',' #cutecouples',' #boys',' #boysuck',' #tbhboysuck',' #tumblr',' #tumblrquotes',' #relationships',' #relationshipquotes',' #relationshipgoals ' ]
loveSucks11 = 
['Changing',' my',' theme',' again.',' Haha~ ' ]
loveSucks12 = 
['"Must',' dash ']
loveSucks13 = 
['#ditching']
loveSucks14 = 
['Silk',' dahlias',' against',' aqua',' glitter',' chiffon',' inspired',' me',' to',' take',' the',' photo',' .',' .',' .',' what',' inspires',' your',' creativity?']
loveSucks15 = 
["What's",' your',' passion? ' ]
loveSucks16 = 
['#relatable.',' Who',' does',' this? ' ]
loveSucks17 = 
['This',' photo',' is',' not',' my',' favorite.',' Who',' forgets',' to',' turn',' of',' their',' light?',]
loveSucks18 = 
['Bae',' before',' anyone',' else ' ]
loveSucks19 =
['"Im',' in',' love','with',' my','bae' ]
loveSucks20 = 
['"Im',' in',' love',' with',' my',' before',' anything',' else" ' ]
loveSucks21 = 
['Ya',' feel? ' ]
loveSucks22 = 
["I'm",' a',' clinger.',' Tag',' someone', "who's",' clingy']
loveSucks23 = 
['This',' is',' probably',' one',' of',' my',' favorites', "I've",' made.', "What's",' your',' favorite',' quote? ' ]
loveSucks24 = 
['Goodnight']
loveSucks25 = 
['#beautiful',' #love',' #lovesucks',' #lovequotes',' #boyfriend',' #girlfriend',' #relationships',' #relationshipquotes',' #relationship',' #crushquotes',' #crush',' #fallinginlove',' #iloveyou',' #inlove',' #bf',' #gf',' #lfl',' #perfectsayings']
loveSucks26 = 
['Tryin',' out',' new',' apps.',' Tag',' your',' love!' ]
loveSucks27 = 
['#beautiful',' #love',' #lovesucks',' #lovequotes',' #boyfriend',' #girlfriend',' #relationships',' #relationshipquotes',' #relationship',' #crushquotes',' #crush',' #fallinginlove',' #iloveyou',' #inlove',' #bf',' #gf',' #lfl',' #perfectsayings']
loveSucks28 = 
['If',' you',' could',' pick',' any',' username',' what',' would',' it',' be?']


#join the list into words
separator = ","
loveSucks1Line = separator.join(loveSucks1[0:5])
loveSucks2Line = separator.join(loveSucks2[0:5])
loveSucks3Line = separator.join(loveSucks3[0:5])
loveSucks4Line = separator.join(loveSucks4[0:5])
loveSucks5Line = separator.join(loveSucks5[0:5])
loveSucks5Line = separator.join(loveSucks5[0:5])
loveSucks6Line = separator.join(loveSucks6[0:5])
loveSucks7Line = separator.join(loveSucks7[0:5])
loveSucks8Line = separator.join(loveSucks8[0:5])
loveSucks9Line = separator.join(loveSucks9[0:5])
loveSucks10Line = separator.join(loveSucks10[0:5])
loveSucks11Line = separator.join(loveSucks11[0:5])

#print lines
print loveSucks1Line
print loveSucks2Line 
print loveSucks3Line 
print loveSucks4Line 
print loveSucks5Line 
print loveSucks6Line 
print loveSucks7Line 
print loveSucks8Line 
print loveSucks9Line 
print loveSucks10Line 
print loveSucks11Line