RedditGetsDrawn Snatch

This is a Python script that takes data from reddit and posts it to another subreddit. It also creates a html file with the images embed into. The images are the most recent 25 on r/redditgetsdrawn.

TODO

submit art to users via website

fix image sizes (need to scale down to 550px)

Save to server rather than imgur

Archieve, snapshots of rgd

more artcontrol

itwillbemine comments to html - currently being saved in contact

work on css, div up page, title, side, body, fo update twitter with ONE IMAGE and announce that the list has been updated.

write blog post and submits to artcontroldrawsyou/blog

gets sticked post on reddit

delete about/contact page and have on all same page. can still have link to blog. about contact etc... along the top. other sections

post images to blog for archieve - save body to wcmckee.com/blog - md format?

nikola install - build site.

cronjob to update site ever ?? hours? 4?

photos section: latest 25 photos submitted to redditgetsdrawn. art section: latest 25 art submitted to redditgetsdrawn.


In [1]:
import os
import random
import requests
from bs4 import BeautifulSoup
import re
import json
import time
import praw
import dominate
from dominate.tags import *
from time import gmtime, strftime

In [2]:
os.chdir('/var/www/artcontroldrawsyou')

In [3]:
r = praw.Reddit(user_agent='rgdsnatch')

In [4]:
#r.login('artcontrol', 'taylor123vag!')

In [5]:
rd = r.get_subreddit('redditgetsdrawn')

In [6]:
subz = rd.get_hot().next()
istit = (subz.title)
istxt = (subz.selftext_html)
istick = (subz.stickied)

In [7]:
istit


Out[7]:
u"It's time for RGD Mod Favorites (August 24 - August 30)! See inside for details"

In [8]:
istxt


Out[8]:
u'<!-- SC_OFF --><div class="md"><p>Every week, each mod selects his or her favorite five pieces from RGD that week, along with a favorite submitted photo! Let's take a look.</p>\n\n<p>Fivepm was on vacation this week, and meeps won't be participating in the foreseeable future due to time constraints.</p>\n\n<p>Here they are!</p>\n\n<p><strong>Selections from Chokeberry</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/vQTcbic.jpg">shabedrisi1</a>, artist <a href="http://i.imgur.com/4Juvifo.jpg">Taurox</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2cjfe4/this_picture_was_taken_of_me_at_the_gay_parade_in/ck3flyq">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/fA7Txg8.jpg">Zemzk</a>, artist <a href="http://i.imgur.com/w2D9Qfy.png">silentlights</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eos02/theres_so_many_amazing_artists_id_love_to_see/ck1oh6x">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/OQAvRkR.jpg">Raecas11, NSFW</a>, artist <a href="http://i.imgur.com/1ALy6Ss.jpg">who-died</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ehr4t/any_one_want_to_draw_a_spookier_version_of_me/cjztwpy">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/uNprD8s.jpg">Inspector_Santini</a>, artist <a href="http://fc05.deviantart.net/fs71/i/2014/239/0/8/rgd_inspector_santini_by_jonathanhankin-d7wyemp.jpg">dead_painter</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2erz52/hey_its_me/ck2hy0q">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/wSk1NB3.jpg">HoesLoveMeLikeSatan</a>, artist <a href="http://i.imgur.com/502praE.jpg">Riptide_</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2erya9/would_love_to_see_this_picture_of_myself_drawn/ck2lwv3">Permalink</a></p>\n\n<p><strong>Selections from heyryaaan</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/HloeFf0.png">alpakin</a>, artist <a href="http://i.imgur.com/copWiie.jpg">blacklipstick</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2efuuy/here_is_an_interesting_harley_quinnesque_photo_of/cjziv7m">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/ZvYsJuM.jpg">cruzas</a>, artist <a href="http://i.imgur.com/47HZgDD.jpg">TeachersPen</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eof3v/can_you_make_this_picture_of_me_more_royalhigh/ck1k7fs">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/SIl8GAW.jpg">ashbgash09</a>, artist <a href="http://i.imgur.com/diEiHz0.jpg">TimeLockedArt</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2enbvw/my_favorite_photo_of_my_nephew_is_blurred_i_would/ck2v1y0">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/dNGj4hr.jpg">IllBePhrank</a>, artist <a href="http://i.imgur.com/FBrfEi0.jpg">Chokeberry</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eczrh/one_day_a_hawk_landed_on_my_back_because_it_was/ck1r6me">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/mkCjzR2.jpg">IreadAlotofArticles</a>, artist <a href="http://i.imgur.com/h5HiSSI.jpg">too_weak_too_slow</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eghy8/id_be_honored_if_you_would_attempt_a_realism/ck0io9f">Permalink</a></p>\n\n<p><strong>Selections from ItWillBeMine</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/PrDznYZ.jpg">Sci41horses</a>, artist <a href="http://i.imgur.com/RyFODAE.png">sikefoo</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ehi74/would_you_like_to_draw_my_horse/ck02pd6">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/QdOxvaB.jpg">sgt_mary_mary</a>, artist <a href="http://i.imgur.com/TE5TSxR.jpg">drokart</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2enoe1/me_with_some_green_stuff_on_my_head/ck1l2tg">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/0Bv2TqV.jpg">Elwenaur - gore warning</a>, artists <a href="http://i.imgur.com/qwcAcgv.jpg">Dr_Pepper_Spray and I_may_be_dead</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2enfon/longtime_artist_firsttime_submitter_anyone_want/ck1gzy1">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/Agdz0np.jpg">Peter108</a>, artist <a href="http://i.imgur.com/j38XE59.jpg">The_Drawist</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ejkya/would_anybody_be_kind_enough_to_draw_my_little/ck0r2ip">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/4X6ORZS.jpg">2000YearOldRoman</a>, artist <a href="http://i.imgur.com/kx7CfpQ.jpg">jhred</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eqkpb/my_daughter_found_a_crab_claw_that_she_thought/ck3bhr1">Permalink</a></p>\n\n<p><strong>Selections from orvane</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/au1PkKb.jpg">friendlyfire_</a>, artist <a href="http://i.imgur.com/RDsa43u.png">sikefoo</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ep7io/a_spooky_old_image_of_me_with_my_head_in_a_scanner/ck2275y">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/X2ojugD.jpg">hampaw</a>, artist <a href="http://i.imgur.com/LouAFFM.png">ninjamonkeydog</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ejtlz/my_bear_was_on_a_ranch_this_weekend_i_think_he/ck0n2io">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/4X6ORZS.jpg">2000YearOldRoman</a>, artist <a href="http://i.imgur.com/NaxToUF.jpg">Lairosiel</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eqkpb/my_daughter_found_a_crab_claw_that_she_thought/ck231q4">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/qQDjL3Z.jpg">kudrykat</a>, artist <a href="http://i.imgur.com/QCFiD8y.jpg">Chokeberry</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eks3z/i_had_a_photoshoot_of_myself_recently_would_you/ck0n5xk">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/SiOw2Lw.jpg">t00_legit_t0_quit</a>, artist <a href="http://i.imgur.com/NvpMNSy.jpg">blacklipstick</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ei2l1/i_love_all_of_you_and_your_creative_touches/ck00fq4">Permalink</a></p>\n\n<p><strong>Selections from sgt_mary_mary</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/ffVZcJE.jpg">Inspector_Santini</a>, artist <a href="https://i.imgur.com/O4eIkug.jpg">-OchreJelly-</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2erz52/hey_its_me/ck2n87e">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/amWhDFA.jpg">ThatsWhatSpikeSaid</a>, artist <a href="http://i.imgur.com/uPNJAOF.jpg">Ebhagz</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eso1y/very_excited_to_have_just_discovered_this/ck3b22p">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/X2ojugD.jpg">hampaw</a>, artist <a href="http://i.imgur.com/zZO0jSj.jpg">altrian</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ejtlz/my_bear_was_on_a_ranch_this_weekend_i_think_he/ck0v4zx">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/dkqjLjZ.jpg">sgt_mary_mary</a>, artist <a href="http://i.imgur.com/3kbJOCV.jpg">Pydkou</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2enoe1/me_with_some_green_stuff_on_my_head/ck20ciq">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/7d7bMEw.png">TJAbbene</a>, artist <a href="http://i.imgur.com/6utxKK9.jpg">tentativesteps</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ejrmm/my_beautiful_sister_showing_her_peacock/ck0p768">Permalink</a></p>\n\n<p><strong>Selections from yowtfyo</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/0Bv2TqV.jpg">Elwenaur, gore warning</a>, artist <a href="http://i.imgur.com/lJNqjtX.png">megaswan</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2enfon/longtime_artist_firsttime_submitter_anyone_want/ck24eye">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/wJxiIjP.jpg">TessDevin</a>, artist <a href="http://i.imgur.com/xRfJDbg.jpg">A_Haert</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2efyji/do_you_like_colours_draw_me_at_torontos_buskerfest/cjzl07m">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/5ywWbZz.jpg">astalavistaz</a>, artist <a href="http://33.media.tumblr.com/295247d5d49529af377abf41be31b4a7/tumblr_nauixmGsGW1qghr41o1_500.png">JeepersMister</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ehcd1/let_me_show_you_the_dance_of_my_people/cjzqaik">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/xWR0YLk.jpg">CalvinCooliodge</a>, artist <a href="http://i.imgur.com/fOIoMyg.png">hypofun</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2etcso/my_son_screaming_in_the_yard/ck38clp">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/6D2ZD.jpg">Nikolaz42</a>, artist <a href="http://i.imgur.com/rhncSUK.jpg">littlebutmighty</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2evlme/a_picture_of_my_daughter_and_my_grandmother_thanks/ck3l5ft">Permalink</a></p>\n\n<p>And now for the favorite photos!</p>\n\n<p><strong>Chokeberry:</strong> Submitter <a href="http://i.imgur.com/4X6ORZS.jpg">2000YearOldRoman</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eqkpb/my_daughter_found_a_crab_claw_that_she_thought/">Permalink</a></p>\n\n<p><strong>heyryaaan:</strong> Submitter <a href="http://i.imgur.com/qQDjL3Z.jpg">kudryat</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2eks3z/i_had_a_photoshoot_of_myself_recently_would_you/">Permalink</a></p>\n\n<p><strong>ItWillBeMine:</strong> Submitter <a href="http://i.imgur.com/RVcdenQ.jpg">eaa513</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2egp2a/rawww_suggested_i_share_this_with_you_anyone_want/">Permalink</a></p>\n\n<p><strong>orvane:</strong> Submitter <a href="http://i.imgur.com/4UFCgCM.jpg">riquelmeizpro</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2emuro/can_someone_draw_me/">Permalink</a></p>\n\n<p><strong>sgt_mary_mary:</strong> Submitter <a href="http://i.imgur.com/2D6vSti.jpg">Ch11rcH</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ejl3d/my_wife_says_this_photo_is_pure_happiness_i_think/">Permalink</a></p>\n\n<p><strong>yowtfyo:</strong> Submitter <a href="http://i.imgur.com/7d7bMEw.png">TJAbbene</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ejrmm/my_beautiful_sister_showing_her_peacock/">Permalink</a></p>\n\n<p>Congrats to all who were selected! Ye shall be receiving flair, posthaste. See you next week! Please note that we'll also be selecting and announcing an Artist of the Month sometime this week.</p>\n</div><!-- SC_ON -->'

In [9]:
rdnewz = rd.get_new()

In [10]:
rdnew = []

In [11]:
rdnew


Out[11]:
[]

In [12]:
for uz in rdnewz:
    #print uz
    rdnew.append(uz)

In [13]:
urzlis = []
titlis = []

In [14]:
#os.chdir('imgs')

In [15]:
for rdn in rdnew:
    print rdn.url
    urzlis.append(rdn.url)
    titlis.append(rdn.author.name)


http://imgur.com/gallery/YpZuIAP
http://imgur.com/piO1GMF
http://i.imgur.com/jaEFEpq.jpg
http://imgur.com/oQKR2mg
http://i.imgur.com/8aVkY8l.jpg
http://imgur.com/tr5ogvM
http://i.imgur.com/nS3XMEY.png
http://i.imgur.com/uchKKda.jpg
http://i.imgur.com/wd80JkU.jpg
http://imgur.com/gu8V8HU
http://imgur.com/F1n3Ck3
http://i.imgur.com/i7ohocs.jpg
http://i.imgur.com/Jf5TjZ6.jpg
http://i.imgur.com/3XiLOng.jpg
http://i.imgur.com/tpj77ZK.jpg
http://i.imgur.com/3nYOBPG.jpg
http://imgur.com/zl6th8f
http://m.imgur.com/oCJOMmv
http://i.imgur.com/SvaXoWC.jpg
http://imgur.com/l87KzEq
http://i.imgur.com/O6GHorj.jpg
http://i.imgur.com/ZY2sQQR.jpg
http://i.imgur.com/2Yu1LLx.jpg
http://i.imgur.com/lTk16O3.jpg
http://i.imgur.com/BWItx9Q.jpg

In [16]:
titlis


Out[16]:
[u'ThwompStomps',
 u'beachboy182',
 u'losertakesitall',
 u'pukerock',
 u'EasyLeit',
 u'kiki0116',
 u'mezilla11',
 u'Kaylorz',
 u'nickleon44',
 u'majorassholesir',
 u'b3ccuh',
 u'emmam456',
 u'JSpangDerulo',
 u'GuyBanks',
 u'plokm5432',
 u'buttnibbler',
 u'forgotthefuckingname',
 u'TabithaRose711',
 u'IllBePhrank',
 u'jeunesauce',
 u'IamAmyzing',
 u'ofalco',
 u'matthewhayden72',
 u'catstastic13',
 u'MrBoobieBuyer']

In [17]:
jplis = []

In [18]:
for iz in jplis:
    print iz

In [193]:
for urz in urzlis:
    if '.jpg' in urz:
        jplis.append(urz)

In [194]:
doc = dominate.document(title='artcontroldrawsyou')

In [194]:


In [196]:
ophtml = open('index.html', 'w')

In [197]:
ophtml.write(str(doc))

In [198]:
ophtml.close()

In [199]:
'''def fcopy(src,dest):
    """
    Copy file from source to dest.  dest can include an absolute or relative path
    If the path doesn't exist, it gets created
    """
    dest_dir = os.path.dirname(dest)
    try:
        os.makedirs(dest_dir)
    except os.error as e:
        pass #Assume it exists.  This could fail if you don't have permissions, etc...
    shutil.copy(src,dest)'''


Out[199]:
'def fcopy(src,dest):\n    """\n    Copy file from source to dest.  dest can include an absolute or relative path\n    If the path doesn\'t exist, it gets created\n    """\n    dest_dir = os.path.dirname(dest)\n    try:\n        os.makedirs(dest_dir)\n    except os.error as e:\n        pass #Assume it exists.  This could fail if you don\'t have permissions, etc...\n    shutil.copy(src,dest)'

cycle though folder and create file in each folder


In [26]:
#fcopy('/var/www/artcontroldrawsyou/home/')

In [27]:
for usz in titlis:
    print usz
    #os.mkdir(usz)
    #os.chdir('/var/www/artcontroldrawsyou/home/' + usz)


ThwompStomps
beachboy182
losertakesitall
pukerock
EasyLeit
kiki0116
mezilla11
Kaylorz
nickleon44
majorassholesir
b3ccuh
emmam456
JSpangDerulo
GuyBanks
plokm5432
buttnibbler
forgotthefuckingname
TabithaRose711
IllBePhrank
jeunesauce
IamAmyzing
ofalco
matthewhayden72
catstastic13
MrBoobieBuyer

In [28]:
'''for filz in titlis:
    print filz
    
    
    #os.chdir('/var/www/artcontroldrawsyou/home' + usz)
    bulkc = dominate.document(title=filz)
    with bulkc.head:
        link(rel='stylesheet', href='style.css')
        script(type='text/javascript', src='script.js')

    with bulkc:
        with div():
            attr(cls='header')
            #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
            h1(filz)
            img(scr='http://artcontrol.me/wp-content/uploads/2014/08/daenuhlyn-headcoloe.png')
            h2('go away artcontrol')
        
        with div(id='photographs'):
            for tits in titlis:
                h3(tits)
                (a(tits, href='%s' % tits.lower))
            
    
        with div(id='body').add(p()):
            for i in jplis:
                li(img(i.lower(), src='%s' % i))
                li(a(i.lower(), href='%s' % i))
                
        with div(id='footer'):
            p(a('artcontroldrawsyou is opensource', href='https://github.com/wcmckee/wcmckee-notebook'))
        
        with open('/var/www/artcontroldrawsyou/home/' + filz + '/index.html', 'w') as fout:
            fout.write(str(bulkc))
            
    #with open('index.html', 'w') as indx:
       #bulkc = indx.write() 
        #print bulkc'''


Out[28]:
'for filz in titlis:\n    print filz\n    \n    \n    #os.chdir(\'/var/www/artcontroldrawsyou/home\' + usz)\n    bulkc = dominate.document(title=filz)\n    with bulkc.head:\n        link(rel=\'stylesheet\', href=\'style.css\')\n        script(type=\'text/javascript\', src=\'script.js\')\n\n    with bulkc:\n        with div():\n            attr(cls=\'header\')\n            #<img src="smiley.gif" alt="Smiley face" height="42" width="42">\n            h1(filz)\n            img(scr=\'http://artcontrol.me/wp-content/uploads/2014/08/daenuhlyn-headcoloe.png\')\n            h2(\'go away artcontrol\')\n        \n        with div(id=\'photographs\'):\n            for tits in titlis:\n                h3(tits)\n                (a(tits, href=\'%s\' % tits.lower))\n            \n    \n        with div(id=\'body\').add(p()):\n            for i in jplis:\n                li(img(i.lower(), src=\'%s\' % i))\n                li(a(i.lower(), href=\'%s\' % i))\n                \n        with div(id=\'footer\'):\n            p(a(\'artcontroldrawsyou is opensource\', href=\'https://github.com/wcmckee/wcmckee-notebook\'))\n        \n        with open(\'/var/www/artcontroldrawsyou/home/\' + filz + \'/index.html\', \'w\') as fout:\n            fout.write(str(bulkc))\n            \n    #with open(\'index.html\', \'w\') as indx:\n       #bulkc = indx.write() \n        #print bulkc'

In [29]:
ransubz = random.randint(0,24)

In [30]:
print ransubz


9

In [31]:
ransev = rdnew[ransubz]

In [32]:
rgdautoz = str(ransev.author)

In [33]:
rgdsubred = str(ransev.subreddit)

In [34]:
sutit = ('[' + rgdsubred + ']')

In [35]:
sutit


Out[35]:
'[redditgetsdrawn]'

In [36]:
rgdaqwew = ('xpost[RGD]' + rgdautoz)

In [37]:
rgdaturo = str(ransev.url)

In [38]:
rgdatit = str(ransev.title)

In [39]:
rgdatit


Out[39]:
"Hi all, can you please draw my girlfriend and I? Our anniversary is coming up and I'd like to give her something personal and beautiful. Thanks in advance, looking forward to everything!"

In [40]:
#rd.get_top

In [41]:
linkdict = {}

In [42]:
ady = r.get_subreddit('artcontroldrawsyou')

In [43]:
comrgd =  rgdatit + ' ' + rgdaturo

In [44]:
loctime = time.localtime()

In [45]:
loctime.tm_mday


Out[45]:
2

In [46]:
loctime.tm_mon


Out[46]:
9

In [47]:
thedat = (str(loctime.tm_mday) + '/' + str(loctime.tm_mon))

In [48]:
thedat


Out[48]:
'2/9'

In [49]:
mixtut = (thedat + sutit + rgdautoz)

In [50]:
loctime


Out[50]:
time.struct_time(tm_year=2014, tm_mon=9, tm_mday=2, tm_hour=8, tm_min=44, tm_sec=31, tm_wday=1, tm_yday=245, tm_isdst=0)

In [51]:
#ady.submit(mixtut , (rgdaqwew, comrgd))

In [52]:
'''for newa in rdnew:
    #rint newa.url
    print len(newa)
    htmstr = (str(newa.title) + '<a href="' + 
                 str(newa.url) + 
                 '"><img class="aligncenter size-large wp-image-5723" alt="' +
                 str(newa.author) +
                 '" src="' + 
                 str(newa.url) + 
                 '" /></a>')
    #ophtml.write(htmstr)
    #ady.submit(('[RGD]' + newa.author), newa.url)
    print newa.author
    #print newa.media
    ophtml.write(htmstr)
    print newa.selftext
    print newa.url
    print newa.num_comments
    
    linkdict.update({str(newa.author): str(newa.url)})
'''


Out[52]:
'for newa in rdnew:\n    #rint newa.url\n    print len(newa)\n    htmstr = (str(newa.title) + \'<a href="\' + \n                 str(newa.url) + \n                 \'"><img class="aligncenter size-large wp-image-5723" alt="\' +\n                 str(newa.author) +\n                 \'" src="\' + \n                 str(newa.url) + \n                 \'" /></a>\')\n    #ophtml.write(htmstr)\n    #ady.submit((\'[RGD]\' + newa.author), newa.url)\n    print newa.author\n    #print newa.media\n    ophtml.write(htmstr)\n    print newa.selftext\n    print newa.url\n    print newa.num_comments\n    \n    linkdict.update({str(newa.author): str(newa.url)})\n'

In [53]:
#print str(newa.title)

In [54]:
import json

In [55]:
newzjson = json.dumps(linkdict)

In [56]:
#newzjson

In [56]:


In [57]:
rmine = r.get_redditor('itwillbemine')

In [58]:
#opest = open('userurl.json', 'r')
#opest.read()
#opest.close()

In [59]:
mincom = rmine.get_comments()

In [60]:
#print mincom

In [61]:
minels = []

In [62]:
dausr = {}

In [172]:
for newa in rdnew:
    #rint newa.url
    #print newa.author
    linkdict.update({str(newa.author): str(newa.url)})

In [173]:


In [174]:
for con in mincom:
    #print con.body
    minels.append(con)
    dausr.update({str(con.id): str(con.body)})

In [175]:
itwillbemine = dominate.document(title='itwillbemine')

In [176]:
with itwillbemine.head:
    link(rel='stylesheet', href='style.css')
    script(type='text/javascript', src='script.js')

with itwillbemine:
    with div():
        attr(cls='header')
        #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
        h1('itwillbemine')
        img(scr='logo.gif')
        h2('go away artcontrol')
        p(strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()))
        a('about', href='http://brobeur.com/artcontroldrawsyou/about')
        a('contact', href='http://brobeur.com/artcontroldrawsyou/contact') 
        a('blog', href='http://brobeur.com/artcontroldrawsyou/wcmckee.com/wcmckee/output')
    
    with div():
        attr(cls='header')
        #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
        h1('itwillbemine')
        p(img(scr='http://brobeur.com/artcontroldrawsyou/logo.gif'))
        #for mine in minels:
            #h1(mine.author_flair_text())
            #p(mine.body)
        
    with div(id='author'):
        for tits in titlis:
            h3(tits)
    
    with div(id='body').add(p()):
        for mine in minels:
            #h1(mine.created)
            p(mine.body)
            



print itwillbemine


<!DOCTYPE html>
<html>
  <head>
    <title>itwillbemine</title>
    <link href="style.css" rel="stylesheet">
    <script src="script.js" type="text/javascript"></script>
  </head>
  <body>
    <div class="header">
      <h1>itwillbemine</h1>
      <img scr="logo.gif">
      <h2>go away artcontrol</h2>
      <p>Tue, 02 Sep 2014 09:20:46 +0000</p>
      <a href="http://brobeur.com/artcontroldrawsyou/about">about</a>
      <a href="http://brobeur.com/artcontroldrawsyou/contact">contact</a>
      <a href="http://brobeur.com/artcontroldrawsyou/wcmckee.com/wcmckee/output">blog</a>
    </div>
    <div class="header">
      <h1>itwillbemine</h1>
      <p>
        <img scr="http://brobeur.com/artcontroldrawsyou/logo.gif">
      </p>
    </div>
    <div id="author">
      <h3>ThwompStomps</h3>
      <h3>beachboy182</h3>
      <h3>losertakesitall</h3>
      <h3>pukerock</h3>
      <h3>EasyLeit</h3>
      <h3>kiki0116</h3>
      <h3>mezilla11</h3>
      <h3>Kaylorz</h3>
      <h3>nickleon44</h3>
      <h3>majorassholesir</h3>
      <h3>b3ccuh</h3>
      <h3>emmam456</h3>
      <h3>JSpangDerulo</h3>
      <h3>GuyBanks</h3>
      <h3>plokm5432</h3>
      <h3>buttnibbler</h3>
      <h3>forgotthefuckingname</h3>
      <h3>TabithaRose711</h3>
      <h3>IllBePhrank</h3>
      <h3>jeunesauce</h3>
      <h3>IamAmyzing</h3>
      <h3>ofalco</h3>
      <h3>matthewhayden72</h3>
      <h3>catstastic13</h3>
      <h3>MrBoobieBuyer</h3>
    </div>
    <div id="body">
      <p>
        <p>Sure, it's www.facebook.com/redditgetsdrawn :)</p>
        <p>Yep.</p>
        <p>Your comment was removed. Read the rules of the sub before participating.</p>
        <p>Post removed for an unclear title; please read our rules.</p>
        <p>OP, you have artists to thank.</p>
        <p>Hey HMB! Would you mind linking directly to the relevant image next time? Thank you, and thanks for all you do in RGD! :) </p>
        <p>Yaaaay, it's milldogg! &amp;lt;3</p>
        <p>This reminds me of /u/powersimon, which is a compliment! :)</p>
        <p>I like how you did the lighting/sunlight :)</p>
        <p>&amp;lt;3 Whew, good! For what it's worth - awesome job on the skull :)</p>
        <p>Thank you, that's really nice to hear! :)</p>
        <p>Since I've determined that this is a beginner, you shouldn't laugh at him/her. O_O</p>
        <p>&amp;lt;3</p>
        <p>**VERY NICE DRAWING**</p>
        <p>Yessss, love to see you working in color!</p>
        <p>We require all attempts here to be serious and made with effort. Even a cute stick figure is still just a stick figure and can be made in about two minutes or less. It's also hard to make a likeness to OP when you're just doing stick figures.</p>
        <p>You should have PMd your question - it wasn't an appropriate comment for this thread.</p>
        <p>Thank you :D</p>
        <p>I was just thinking about you today! Good to see you! :D</p>
        <p>Your comment was removed. Please read the rules of the sub before participating, and do not comment on appearance in this sub.</p>
        <p>Your comment was removed as well.</p>
        <p>Great job! However, per our rules, please don't comment on appearance in this sub. Thanks!</p>
        <p>Your comment was removed. Please read the rules of the sub before participating.</p>
        <p>&amp;lt;3 Thank you for being here :)</p>
        <p>I love that! This has been my favorite drawing exercise to date. :)</p>
      </p>
    </div>
  </body>
</html>

In [177]:
savmine = open('reddit.html', 'w')
savmine.write(str(itwillbemine))
savmine.close()

In [178]:
noizjson = json.dumps(dausr)

In [180]:
linkdict


Out[180]:
{'EasyLeit': 'http://i.imgur.com/8aVkY8l.jpg',
 'GuyBanks': 'http://i.imgur.com/3XiLOng.jpg',
 'IamAmyzing': 'http://i.imgur.com/O6GHorj.jpg',
 'IllBePhrank': 'http://i.imgur.com/SvaXoWC.jpg',
 'JSpangDerulo': 'http://i.imgur.com/Jf5TjZ6.jpg',
 'Kaylorz': 'http://i.imgur.com/uchKKda.jpg',
 'MrBoobieBuyer': 'http://i.imgur.com/BWItx9Q.jpg',
 'TabithaRose711': 'http://m.imgur.com/oCJOMmv',
 'ThwompStomps': 'http://imgur.com/gallery/YpZuIAP',
 'b3ccuh': 'http://imgur.com/F1n3Ck3',
 'beachboy182': 'http://imgur.com/piO1GMF',
 'buttnibbler': 'http://i.imgur.com/3nYOBPG.jpg',
 'catstastic13': 'http://i.imgur.com/lTk16O3.jpg',
 'emmam456': 'http://i.imgur.com/i7ohocs.jpg',
 'forgotthefuckingname': 'http://imgur.com/zl6th8f',
 'jeunesauce': 'http://imgur.com/l87KzEq',
 'kiki0116': 'http://imgur.com/tr5ogvM',
 'losertakesitall': 'http://i.imgur.com/jaEFEpq.jpg',
 'majorassholesir': 'http://imgur.com/gu8V8HU',
 'matthewhayden72': 'http://i.imgur.com/2Yu1LLx.jpg',
 'mezilla11': 'http://i.imgur.com/nS3XMEY.png',
 'nickleon44': 'http://i.imgur.com/wd80JkU.jpg',
 'ofalco': 'http://i.imgur.com/ZY2sQQR.jpg',
 'plokm5432': 'http://i.imgur.com/tpj77ZK.jpg',
 'pukerock': 'http://imgur.com/oQKR2mg'}

In [182]:
newposts = open('userurl.json', 'a')
newposts.write(str(linkdict))
print ('file userurl.json updated')
newcomments = open('idcomt.json', 'a')
newcomments.write(noizjson)
print ('user comments updated')
newposts.close()
newcomments.close()


file userurl.json updated
user comments updated

In [183]:
rdusr = str(con.author)

In [71]:
minelsz = []

In [72]:
#for mina in minels:
    #print mina.body
   # minelsz.append(mina.body)

In [73]:
#minelsz

In [74]:
#mina.body

In [184]:
import feedparser

In [185]:
mcs = feedparser.parse('http://mcsteffen.tumblr.com/rss')

In [186]:
emcs = mcs['entries']

In [187]:
for em in emcs:
    print em


{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/8d296e208104299904cd950e54bbb321/tumblr_nab26vEZmn1t8sai5o1_500.jpg" /><br /><br /><p><a class="tumblelog" href="http://tmblr.co/mq4n0laUh5KXeRzqSl0YjRQ">meatyelbow</a> added watercolor!</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=14, tm_hour=16, tm_min=37, tm_sec=43, tm_wday=3, tm_yday=226, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/94733683759', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'meatyelbow added watercolor!', 'tags': [{'term': u'collab', 'scheme': None, 'label': None}, {'term': u'collaboration', 'scheme': None, 'label': None}, {'term': u'watercolor', 'scheme': None, 'label': None}, {'term': u'meatyelbow', 'scheme': None, 'label': None}, {'term': u'portrait', 'scheme': None, 'label': None}, {'term': u'digital art', 'scheme': None, 'label': None}, {'term': u'mixed media', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/8d296e208104299904cd950e54bbb321/tumblr_nab26vEZmn1t8sai5o1_500.jpg" /><br /><br /><p><a class="tumblelog" href="http://tmblr.co/mq4n0laUh5KXeRzqSl0YjRQ">meatyelbow</a> added watercolor!</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'meatyelbow added watercolor!', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/94733683759', 'published': u'Thu, 14 Aug 2014 12:37:43 -0400', 'id': u'http://mcsteffen.tumblr.com/post/94733683759'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/22437df41a29ddaaac56051458f95014/tumblr_nab241KZAd1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/Churaqe, digital painting</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=14, tm_hour=16, tm_min=36, tm_sec=0, tm_wday=3, tm_yday=226, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/94733568084', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Portrait of /u/Churaqe, digital painting', 'tags': [{'term': u'digital art', 'scheme': None, 'label': None}, {'term': u'digital painting', 'scheme': None, 'label': None}, {'term': u'redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'reddit', 'scheme': None, 'label': None}, {'term': u'black and white', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'hatching', 'scheme': None, 'label': None}, {'term': u'crosshatching', 'scheme': None, 'label': None}, {'term': u'reddit art', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/22437df41a29ddaaac56051458f95014/tumblr_nab241KZAd1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/Churaqe, digital painting</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Portrait of /u/Churaqe, digital painting', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/94733568084', 'published': u'Thu, 14 Aug 2014 12:36:00 -0400', 'id': u'http://mcsteffen.tumblr.com/post/94733568084'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/8554ac54b4b7f28b53d0a01f2da53628/tumblr_n9yl4a0ZZw1sjrx42o1_500.jpg" /><br /><br /><p>Michael Dimock\u2019s lines are so good. Such a great drawing.</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=13, tm_hour=18, tm_min=17, tm_sec=34, tm_wday=2, tm_yday=225, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/94647065879', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Michael Dimock\u2019s lines are so good. Such a great drawing.', 'tags': [{'term': u'pen and ink', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'portrait', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'hair', 'scheme': None, 'label': None}, {'term': u'reddit', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/8554ac54b4b7f28b53d0a01f2da53628/tumblr_n9yl4a0ZZw1sjrx42o1_500.jpg" /><br /><br /><p>Michael Dimock\u2019s lines are so good. Such a great drawing.</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Michael Dimock\u2019s lines are so good. Such a great drawing.', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/94647065879', 'published': u'Wed, 13 Aug 2014 14:17:34 -0400', 'id': u'http://mcsteffen.tumblr.com/post/94647065879'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<br /><br /><p>Not the Joy of Painting</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=13, tm_hour=7, tm_min=2, tm_sec=57, tm_wday=2, tm_yday=225, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/94611327359', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Not the Joy of Painting', 'tags': [{'term': u'art fail', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'watchredditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'pencil on paper', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'fuck it', 'scheme': None, 'label': None}, {'term': u'portrait', 'scheme': None, 'label': None}, {'term': u'reddit art', 'scheme': None, 'label': None}, {'term': u'sketching', 'scheme': None, 'label': None}], 'summary': u'<br /><br /><p>Not the Joy of Painting</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Not the Joy of Painting', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/94611327359', 'published': u'Wed, 13 Aug 2014 03:02:57 -0400', 'id': u'http://mcsteffen.tumblr.com/post/94611327359'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/1006326dc341bd4a91a214b88bd6d2be/tumblr_na7pwnlPI71t8sai5o1_500.jpg" /><br /><br /><p>Interpretation for /u/xkisses</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=12, tm_hour=21, tm_min=19, tm_sec=35, tm_wday=1, tm_yday=224, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/94565379439', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Interpretation for /u/xkisses', 'tags': [{'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'penandink', 'scheme': None, 'label': None}, {'term': u'digital art', 'scheme': None, 'label': None}, {'term': u'minimal', 'scheme': None, 'label': None}, {'term': u'portrait', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'sexy', 'scheme': None, 'label': None}, {'term': u'kiss', 'scheme': None, 'label': None}, {'term': u'pen and ink', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/1006326dc341bd4a91a214b88bd6d2be/tumblr_na7pwnlPI71t8sai5o1_500.jpg" /><br /><br /><p>Interpretation for /u/xkisses</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Interpretation for /u/xkisses', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/94565379439', 'published': u'Tue, 12 Aug 2014 17:19:35 -0400', 'id': u'http://mcsteffen.tumblr.com/post/94565379439'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/6392c6d6a5d59efea4faee6375183c6b/tumblr_na3vxeDAoC1t8sai5o1_500.jpg" /><br /><br /><p>Grantsville, 72\u201d x 48\u201d, oil on canvas</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=10, tm_hour=19, tm_min=39, tm_sec=13, tm_wday=6, tm_yday=222, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/94362007369', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Grantsville, 72\u201d x 48\u201d, oil on canvas', 'tags': [{'term': u'utah', 'scheme': None, 'label': None}, {'term': u'utahlandscape', 'scheme': None, 'label': None}, {'term': u'landscape', 'scheme': None, 'label': None}, {'term': u'landscape painting', 'scheme': None, 'label': None}, {'term': u'painting', 'scheme': None, 'label': None}, {'term': u'oilpainting', 'scheme': None, 'label': None}, {'term': u'oil painting', 'scheme': None, 'label': None}, {'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'greatsaltlake', 'scheme': None, 'label': None}, {'term': u'mountains', 'scheme': None, 'label': None}, {'term': u'rocky mountains', 'scheme': None, 'label': None}, {'term': u'great basin', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/6392c6d6a5d59efea4faee6375183c6b/tumblr_na3vxeDAoC1t8sai5o1_500.jpg" /><br /><br /><p>Grantsville, 72\u201d x 48\u201d, oil on canvas</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Grantsville, 72\u201d x 48\u201d, oil on canvas', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/94362007369', 'published': u'Sun, 10 Aug 2014 15:39:13 -0400', 'id': u'http://mcsteffen.tumblr.com/post/94362007369'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/b3f75f45ff7b27245d700e4ace7906d0/tumblr_na02n3v6Ux1t8sai5o1_500.jpg" /><br /><br /><p>Athennna\u2019s grandpa, 12 x 9 inches, pencil on paper</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=8, tm_hour=18, tm_min=13, tm_sec=51, tm_wday=4, tm_yday=220, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/94174610084', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Athennna\u2019s grandpa, 12 x 9 inches, pencil on paper', 'tags': [{'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'pencil on paper', 'scheme': None, 'label': None}, {'term': u'pencil', 'scheme': None, 'label': None}, {'term': u'portrait', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'rgd', 'scheme': None, 'label': None}, {'term': u'reddit', 'scheme': None, 'label': None}, {'term': u'grandparents', 'scheme': None, 'label': None}, {'term': u'oldschool', 'scheme': None, 'label': None}, {'term': u'historic photograph', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/b3f75f45ff7b27245d700e4ace7906d0/tumblr_na02n3v6Ux1t8sai5o1_500.jpg" /><br /><br /><p>Athennna\u2019s grandpa, 12 x 9 inches, pencil on paper</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Athennna\u2019s grandpa, 12 x 9 inches, pencil on paper', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/94174610084', 'published': u'Fri, 08 Aug 2014 14:13:51 -0400', 'id': u'http://mcsteffen.tumblr.com/post/94174610084'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/b9bd7f30fdf3938d2390f72fc7e7b30b/tumblr_n9x74tpxCi1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of clyde2003 uncle, 12 x 9 inches, pencil on paper</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=7, tm_hour=4, tm_min=58, tm_sec=5, tm_wday=3, tm_yday=219, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/94038868289', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Portrait of clyde2003 uncle, 12 x 9 inches, pencil on paper', 'tags': [{'term': u'cowboy', 'scheme': None, 'label': None}, {'term': u'hats', 'scheme': None, 'label': None}, {'term': u'cowboyhats', 'scheme': None, 'label': None}, {'term': u'portrait', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'rgd', 'scheme': None, 'label': None}, {'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'pencil', 'scheme': None, 'label': None}, {'term': u'pencil drawing', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'sketching', 'scheme': None, 'label': None}, {'term': u'reddit artist network', 'scheme': None, 'label': None}, {'term': u'RGD', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/b9bd7f30fdf3938d2390f72fc7e7b30b/tumblr_n9x74tpxCi1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of clyde2003 uncle, 12 x 9 inches, pencil on paper</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Portrait of clyde2003 uncle, 12 x 9 inches, pencil on paper', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/94038868289', 'published': u'Thu, 07 Aug 2014 00:58:05 -0400', 'id': u'http://mcsteffen.tumblr.com/post/94038868289'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/5ce90c0f253d7d9ee4382f8c6e789520/tumblr_n9w96us1xs1t8sai5o1_500.jpg" /><br /><br /><p>West Wendover Home</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=6, tm_hour=16, tm_min=44, tm_sec=54, tm_wday=2, tm_yday=218, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/93980684024', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'West Wendover Home', 'tags': [{'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'reddit artist network', 'scheme': None, 'label': None}, {'term': u'abandonedporn', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'acrylic', 'scheme': None, 'label': None}, {'term': u'wendover', 'scheme': None, 'label': None}, {'term': u'desert', 'scheme': None, 'label': None}, {'term': u'dusk', 'scheme': None, 'label': None}, {'term': u'utah', 'scheme': None, 'label': None}, {'term': u'landscspe', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/5ce90c0f253d7d9ee4382f8c6e789520/tumblr_n9w96us1xs1t8sai5o1_500.jpg" /><br /><br /><p>West Wendover Home</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'West Wendover Home', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/93980684024', 'published': u'Wed, 06 Aug 2014 12:44:54 -0400', 'id': u'http://mcsteffen.tumblr.com/post/93980684024'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/11e436f1af1931cdaa3eb52ce80d4304/tumblr_n9pz76J7DB1t8sai5o1_500.jpg" /><br /><br /><p>Rim Fire 2, 40 x 26\xa01/2 inches, pencil and graphite on paper</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=3, tm_hour=7, tm_min=23, tm_sec=30, tm_wday=6, tm_yday=215, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/93663063144', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Rim Fire 2, 40 x 26\xa01/2 inches, pencil and graphite on...', 'tags': [{'term': u'landscapedrawing', 'scheme': None, 'label': None}, {'term': u'landscape drawing', 'scheme': None, 'label': None}, {'term': u'pencilandgraphite', 'scheme': None, 'label': None}, {'term': u'pencil', 'scheme': None, 'label': None}, {'term': u'artistlounge', 'scheme': None, 'label': None}, {'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'yosemite', 'scheme': None, 'label': None}, {'term': u'rim fire', 'scheme': None, 'label': None}, {'term': u'rimfire', 'scheme': None, 'label': None}, {'term': u'landscape', 'scheme': None, 'label': None}, {'term': u'reddit', 'scheme': None, 'label': None}, {'term': u'forestfire', 'scheme': None, 'label': None}, {'term': u'california', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/11e436f1af1931cdaa3eb52ce80d4304/tumblr_n9pz76J7DB1t8sai5o1_500.jpg" /><br /><br /><p>Rim Fire 2, 40 x 26\xa01/2 inches, pencil and graphite on paper</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Rim Fire 2, 40 x 26\xa01/2 inches, pencil and graphite on...', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/93663063144', 'published': u'Sun, 03 Aug 2014 03:23:30 -0400', 'id': u'http://mcsteffen.tumblr.com/post/93663063144'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/f3817e5e8c03f24a535814e75c7203d2/tumblr_n9mzq4fl9R1t8sai5o1_500.jpg" /><br /><br /><p>Rim Fire 1, pencil and graphite on paper</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=8, tm_mday=1, tm_hour=16, tm_min=42, tm_sec=4, tm_wday=4, tm_yday=213, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/93509038514', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Rim Fire 1, pencil and graphite on paper', 'tags': [{'term': u'landscape', 'scheme': None, 'label': None}, {'term': u'landscape drawing', 'scheme': None, 'label': None}, {'term': u'rim fire', 'scheme': None, 'label': None}, {'term': u'rimfire', 'scheme': None, 'label': None}, {'term': u'yosemite', 'scheme': None, 'label': None}, {'term': u'california', 'scheme': None, 'label': None}, {'term': u'artist lounge', 'scheme': None, 'label': None}, {'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'reddit artist network', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'pencil drawing', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}, {'term': u'hiking', 'scheme': None, 'label': None}, {'term': u'art', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/f3817e5e8c03f24a535814e75c7203d2/tumblr_n9mzq4fl9R1t8sai5o1_500.jpg" /><br /><br /><p>Rim Fire 1, pencil and graphite on paper</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Rim Fire 1, pencil and graphite on paper', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/93509038514', 'published': u'Fri, 01 Aug 2014 12:42:04 -0400', 'id': u'http://mcsteffen.tumblr.com/post/93509038514'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/018b0938fde692ff0ca2bc19db18bab4/tumblr_n85fm3Z6uq1qg45pdo1_500.jpg" /><br /><br /><p><a class="tumblr_blog" href="http://osaft.tumblr.com/post/90677710590/comedy-gold-with-mcsteffen-nottherogeruknow-and">osaft</a>:</p>\n\n<blockquote><p>Comedy Gold with <a class="tumblelog" href="http://tmblr.co/mrHolH0AaL0YBsXWUyZeEWQ">mcsteffen</a> , <a class="tumblelog" href="http://tmblr.co/mPPcQWm7xfpLmnCPFo36taQ">nottherogeruknow</a> and moi<u><br /></u></p></blockquote>\n\nBringing it back the way it shoulda been! Beautiful drawing by the beautiful <a class="tumblelog" href="http://tmblr.co/mvmqaltOPNXNRufmqAn2xBg">osaft</a>!', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=7, tm_mday=3, tm_hour=18, tm_min=50, tm_sec=21, tm_wday=3, tm_yday=184, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/90678988129', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'osaft:\n\nComedy Gold with mcsteffen , nottherogeruknow and...', 'tags': [{'term': u'TGAGAAPP', 'scheme': None, 'label': None}, {'term': u'2G1G1P', 'scheme': None, 'label': None}, {'term': u'cartooning', 'scheme': None, 'label': None}, {'term': u'roadtohollywood', 'scheme': None, 'label': None}, {'term': u'boobs', 'scheme': None, 'label': None}, {'term': u'bff', 'scheme': None, 'label': None}, {'term': u'comedygoldmine', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/018b0938fde692ff0ca2bc19db18bab4/tumblr_n85fm3Z6uq1qg45pdo1_500.jpg" /><br /><br /><p><a class="tumblr_blog" href="http://osaft.tumblr.com/post/90677710590/comedy-gold-with-mcsteffen-nottherogeruknow-and">osaft</a>:</p>\n\n<blockquote><p>Comedy Gold with <a class="tumblelog" href="http://tmblr.co/mrHolH0AaL0YBsXWUyZeEWQ">mcsteffen</a> , <a class="tumblelog" href="http://tmblr.co/mPPcQWm7xfpLmnCPFo36taQ">nottherogeruknow</a> and moi<u><br /></u></p></blockquote>\n\nBringing it back the way it shoulda been! Beautiful drawing by the beautiful <a class="tumblelog" href="http://tmblr.co/mvmqaltOPNXNRufmqAn2xBg">osaft</a>!', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'osaft:\n\nComedy Gold with mcsteffen , nottherogeruknow and...', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/90678988129', 'published': u'Thu, 03 Jul 2014 14:50:21 -0400', 'id': u'http://mcsteffen.tumblr.com/post/90678988129'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/4b193ced537b2169b7f3c64de342e768/tumblr_n83ohf0fzv1qg45pdo1_500.jpg" /><br /> <br /><img src="http://31.media.tumblr.com/02275e50e6e4ed89676eb61e350575c0/tumblr_n83ohf0fzv1qg45pdo2_500.jpg" /><br /> <br /><p>Portrait of\xa0<a class="tumblelog" href="http://tmblr.co/mdKApUvkTXycUmehUhDw4DA">katlix</a>\xa0and myself by the ridiculously talented and wonderful\xa0<a class="tumblr_blog" href="http://osaft.tumblr.com/post/90582945065/katlix-and-mcsteffen-3-3-3-3-3-3-3-3-3">osaft</a>!</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=7, tm_mday=3, tm_hour=6, tm_min=49, tm_sec=20, tm_wday=3, tm_yday=184, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/90637782104', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Portrait of\xa0katlix\xa0and myself by the ridiculously talented and...', 'tags': [{'term': u'reddit', 'scheme': None, 'label': None}, {'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'skateboarding', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'batman', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/4b193ced537b2169b7f3c64de342e768/tumblr_n83ohf0fzv1qg45pdo1_500.jpg" /><br /> <br /><img src="http://31.media.tumblr.com/02275e50e6e4ed89676eb61e350575c0/tumblr_n83ohf0fzv1qg45pdo2_500.jpg" /><br /> <br /><p>Portrait of\xa0<a class="tumblelog" href="http://tmblr.co/mdKApUvkTXycUmehUhDw4DA">katlix</a>\xa0and myself by the ridiculously talented and wonderful\xa0<a class="tumblr_blog" href="http://osaft.tumblr.com/post/90582945065/katlix-and-mcsteffen-3-3-3-3-3-3-3-3-3">osaft</a>!</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Portrait of\xa0katlix\xa0and myself by the ridiculously talented and...', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/90637782104', 'published': u'Thu, 03 Jul 2014 02:49:20 -0400', 'id': u'http://mcsteffen.tumblr.com/post/90637782104'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/03a08772c9c3cbea84383f5a27eb2c43/tumblr_n6zybli8gr1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/Daven2ude</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=6, tm_mday=11, tm_hour=8, tm_min=59, tm_sec=45, tm_wday=2, tm_yday=162, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/88459616224', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Portrait of /u/Daven2ude', 'tags': [{'term': u'RedditGetsDrawn', 'scheme': None, 'label': None}, {'term': u'copic markers', 'scheme': None, 'label': None}, {'term': u'prismacolor markers', 'scheme': None, 'label': None}, {'term': u'prismacolor', 'scheme': None, 'label': None}, {'term': u'copic', 'scheme': None, 'label': None}, {'term': u'pencil', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'sketching', 'scheme': None, 'label': None}, {'term': u'reddit', 'scheme': None, 'label': None}, {'term': u'redditartistnetwork', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/03a08772c9c3cbea84383f5a27eb2c43/tumblr_n6zybli8gr1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/Daven2ude</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Portrait of /u/Daven2ude', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/88459616224', 'published': u'Wed, 11 Jun 2014 04:59:45 -0400', 'id': u'http://mcsteffen.tumblr.com/post/88459616224'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/c062a07836c7873309643aacebb03409/tumblr_n6tvo9efMl1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/ChardeeMacdennisTime. \xa0Pencil and Marker on paper.</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=6, tm_mday=8, tm_hour=2, tm_min=16, tm_sec=57, tm_wday=6, tm_yday=159, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/88132869394', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Portrait of /u/ChardeeMacdennisTime. \xa0Pencil and Marker on...', 'tags': [{'term': u'redditartistnetwork', 'scheme': None, 'label': None}, {'term': u'redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'artistlounge', 'scheme': None, 'label': None}, {'term': u'reddit', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'copic', 'scheme': None, 'label': None}, {'term': u'markers', 'scheme': None, 'label': None}, {'term': u'prismacolor', 'scheme': None, 'label': None}, {'term': u'pencil', 'scheme': None, 'label': None}, {'term': u'sketching', 'scheme': None, 'label': None}, {'term': u'copicmarkers', 'scheme': None, 'label': None}, {'term': u'copic markers', 'scheme': None, 'label': None}, {'term': u'rgd', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/c062a07836c7873309643aacebb03409/tumblr_n6tvo9efMl1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/ChardeeMacdennisTime. \xa0Pencil and Marker on paper.</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Portrait of /u/ChardeeMacdennisTime. \xa0Pencil and Marker on...', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/88132869394', 'published': u'Sat, 07 Jun 2014 22:16:57 -0400', 'id': u'http://mcsteffen.tumblr.com/post/88132869394'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/8dc9075b558c521c5a7afe521142cc34/tumblr_n51kxtcIOC1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/yomatz</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=5, tm_mday=4, tm_hour=8, tm_min=58, tm_sec=41, tm_wday=6, tm_yday=124, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/84702067334', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Portrait of /u/yomatz', 'tags': [{'term': u'redditgetsdrawn rgd portraiture drawing', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/8dc9075b558c521c5a7afe521142cc34/tumblr_n51kxtcIOC1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/yomatz</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Portrait of /u/yomatz', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/84702067334', 'published': u'Sun, 04 May 2014 04:58:41 -0400', 'id': u'http://mcsteffen.tumblr.com/post/84702067334'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/b8480ba389be6572f4bf08141eac6ce5/tumblr_n3e72pVmaq1t8sai5o1_500.jpg" /><br /><br /><p>/u/ItWillBeMine</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=4, tm_mday=2, tm_hour=7, tm_min=20, tm_sec=49, tm_wday=2, tm_yday=92, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/81470400358', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'/u/ItWillBeMine', 'tags': [{'term': u'RedditGetsDrawn', 'scheme': None, 'label': None}, {'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'RGD', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/b8480ba389be6572f4bf08141eac6ce5/tumblr_n3e72pVmaq1t8sai5o1_500.jpg" /><br /><br /><p>/u/ItWillBeMine</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'/u/ItWillBeMine', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/81470400358', 'published': u'Wed, 02 Apr 2014 03:20:49 -0400', 'id': u'http://mcsteffen.tumblr.com/post/81470400358'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://31.media.tumblr.com/32e94e70b0921e15d1725566cef13f33/tumblr_n37ymbeLeI1t8sai5o1_500.jpg" /><br /><br /><p>/u/curiousnonsense\u2019s great uncle</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=3, tm_mday=29, tm_hour=22, tm_min=32, tm_sec=35, tm_wday=5, tm_yday=88, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/81117377637', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'/u/curiousnonsense\u2019s great uncle', 'tags': [{'term': u'RGD', 'scheme': None, 'label': None}, {'term': u'RedditGetsDrawn', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}, {'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'markers', 'scheme': None, 'label': None}, {'term': u'prismacolor', 'scheme': None, 'label': None}, {'term': u'prismacolor markers', 'scheme': None, 'label': None}], 'summary': u'<img src="http://31.media.tumblr.com/32e94e70b0921e15d1725566cef13f33/tumblr_n37ymbeLeI1t8sai5o1_500.jpg" /><br /><br /><p>/u/curiousnonsense\u2019s great uncle</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'/u/curiousnonsense\u2019s great uncle', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/81117377637', 'published': u'Sat, 29 Mar 2014 18:32:35 -0400', 'id': u'http://mcsteffen.tumblr.com/post/81117377637'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/b60cb65ab4e60dfeb32e7b24432a7be3/tumblr_n2svjsIgTY1t8sai5o1_500.jpg" /><br /><br /><p>Recent landscape commission</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=3, tm_mday=21, tm_hour=19, tm_min=2, tm_sec=16, tm_wday=4, tm_yday=80, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/80280221308', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Recent landscape commission', 'tags': [{'term': u'new zealand', 'scheme': None, 'label': None}, {'term': u'oil painting', 'scheme': None, 'label': None}, {'term': u'painting', 'scheme': None, 'label': None}, {'term': u'landscape painting', 'scheme': None, 'label': None}, {'term': u'art commission', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/b60cb65ab4e60dfeb32e7b24432a7be3/tumblr_n2svjsIgTY1t8sai5o1_500.jpg" /><br /><br /><p>Recent landscape commission</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Recent landscape commission', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/80280221308', 'published': u'Fri, 21 Mar 2014 15:02:16 -0400', 'id': u'http://mcsteffen.tumblr.com/post/80280221308'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/875be53500ea4b979a58a09f5b940a76/tumblr_n2rd5gI4M41t8sai5o1_500.jpg" /><br /><br /><p>/u/Catness_NeverClean from /r/prettygirlsuglyfaces</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=3, tm_mday=20, tm_hour=23, tm_min=27, tm_sec=16, tm_wday=3, tm_yday=79, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/80208053307', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'/u/Catness_NeverClean from /r/prettygirlsuglyfaces', 'tags': [{'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'portrait', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}, {'term': u'PrettyGirlsUglyFaces', 'scheme': None, 'label': None}, {'term': u'reddit', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/875be53500ea4b979a58a09f5b940a76/tumblr_n2rd5gI4M41t8sai5o1_500.jpg" /><br /><br /><p>/u/Catness_NeverClean from /r/prettygirlsuglyfaces</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'/u/Catness_NeverClean from /r/prettygirlsuglyfaces', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/80208053307', 'published': u'Thu, 20 Mar 2014 19:27:16 -0400', 'id': u'http://mcsteffen.tumblr.com/post/80208053307'}

In [188]:
tumlis = []

In [195]:
with doc.head:
    link(rel='stylesheet', href='style.css')
    script(type='text/javascript', src='script.js')

with doc:
    with div():
        attr(cls='header')
        #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
        (h1(a('artcontroldrawsyou', href='http://brobeur.com/artcontroldrawsyou')))
        img(scr='logo.gif')
        h2('go away artcontrol')
        p(strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()))
       
        a('contact', href='http://brobeur.com/artcontroldrawsyou/contact') 
        a('blog', href='http://brobeur.com/wcmckee.com/wcmckee/output')
        
    with div(id='about'):
        p('artcontroldrawsyou is a website that takes RedditGetsDrawn data and posts it here.')
        p('artcontrol is not allowed to submit artwork to redditgetsdrawn so this was created')
        for tits in titlis:
            (tits)
            (a(tits, href='https://reddit.com/u/%s' % tits))
            
    
    with div(id='body').add(p()):
        for i in jplis:
            (img(i.lower(), src='%s' % i))
            #(a(i.lower(), href='%s' % i))
            
    with div(id='footer'):
        p(a('artcontroldrawsyou is open source', href='https://github.com/wcmckee/wcmckee-notebook'))


            

print doc


<!DOCTYPE html>
<html>
  <head>
    <title>artcontroldrawsyou</title>
    <link href="style.css" rel="stylesheet">
    <script src="script.js" type="text/javascript"></script>
  </head>
  <body>
    <div class="header">
      <h1>
        <a href="http://brobeur.com/artcontroldrawsyou">artcontroldrawsyou</a>
      </h1>
      <img scr="logo.gif">
      <h2>go away artcontrol</h2>
      <p>Tue, 02 Sep 2014 09:30:27 +0000</p>
      <a href="http://brobeur.com/artcontroldrawsyou/contact">contact</a>
      <a href="http://brobeur.com/wcmckee.com/wcmckee/output">blog</a>
    </div>
    <div id="about">
      <p>artcontroldrawsyou is a website that takes RedditGetsDrawn data and posts it here.</p>
      <p>artcontrol is not allowed to submit artwork to redditgetsdrawn so this was created</p>
      <a href="https://reddit.com/u/ThwompStomps">ThwompStomps</a>
      <a href="https://reddit.com/u/beachboy182">beachboy182</a>
      <a href="https://reddit.com/u/losertakesitall">losertakesitall</a>
      <a href="https://reddit.com/u/pukerock">pukerock</a>
      <a href="https://reddit.com/u/EasyLeit">EasyLeit</a>
      <a href="https://reddit.com/u/kiki0116">kiki0116</a>
      <a href="https://reddit.com/u/mezilla11">mezilla11</a>
      <a href="https://reddit.com/u/Kaylorz">Kaylorz</a>
      <a href="https://reddit.com/u/nickleon44">nickleon44</a>
      <a href="https://reddit.com/u/majorassholesir">majorassholesir</a>
      <a href="https://reddit.com/u/b3ccuh">b3ccuh</a>
      <a href="https://reddit.com/u/emmam456">emmam456</a>
      <a href="https://reddit.com/u/JSpangDerulo">JSpangDerulo</a>
      <a href="https://reddit.com/u/GuyBanks">GuyBanks</a>
      <a href="https://reddit.com/u/plokm5432">plokm5432</a>
      <a href="https://reddit.com/u/buttnibbler">buttnibbler</a>
      <a href="https://reddit.com/u/forgotthefuckingname">forgotthefuckingname</a>
      <a href="https://reddit.com/u/TabithaRose711">TabithaRose711</a>
      <a href="https://reddit.com/u/IllBePhrank">IllBePhrank</a>
      <a href="https://reddit.com/u/jeunesauce">jeunesauce</a>
      <a href="https://reddit.com/u/IamAmyzing">IamAmyzing</a>
      <a href="https://reddit.com/u/ofalco">ofalco</a>
      <a href="https://reddit.com/u/matthewhayden72">matthewhayden72</a>
      <a href="https://reddit.com/u/catstastic13">catstastic13</a>
      <a href="https://reddit.com/u/MrBoobieBuyer">MrBoobieBuyer</a>
    </div>
    <div id="body">
      <p>
        <img src="http://i.imgur.com/jaEFEpq.jpg">
        <img src="http://i.imgur.com/8aVkY8l.jpg">
        <img src="http://i.imgur.com/uchKKda.jpg">
        <img src="http://i.imgur.com/wd80JkU.jpg">
        <img src="http://i.imgur.com/i7ohocs.jpg">
        <img src="http://i.imgur.com/Jf5TjZ6.jpg">
        <img src="http://i.imgur.com/3XiLOng.jpg">
        <img src="http://i.imgur.com/tpj77ZK.jpg">
        <img src="http://i.imgur.com/3nYOBPG.jpg">
        <img src="http://i.imgur.com/SvaXoWC.jpg">
        <img src="http://i.imgur.com/O6GHorj.jpg">
        <img src="http://i.imgur.com/ZY2sQQR.jpg">
        <img src="http://i.imgur.com/2Yu1LLx.jpg">
        <img src="http://i.imgur.com/lTk16O3.jpg">
        <img src="http://i.imgur.com/BWItx9Q.jpg">
        <img src="http://i.imgur.com/jaEFEpq.jpg">
        <img src="http://i.imgur.com/8aVkY8l.jpg">
        <img src="http://i.imgur.com/uchKKda.jpg">
        <img src="http://i.imgur.com/wd80JkU.jpg">
        <img src="http://i.imgur.com/i7ohocs.jpg">
        <img src="http://i.imgur.com/Jf5TjZ6.jpg">
        <img src="http://i.imgur.com/3XiLOng.jpg">
        <img src="http://i.imgur.com/tpj77ZK.jpg">
        <img src="http://i.imgur.com/3nYOBPG.jpg">
        <img src="http://i.imgur.com/SvaXoWC.jpg">
        <img src="http://i.imgur.com/O6GHorj.jpg">
        <img src="http://i.imgur.com/ZY2sQQR.jpg">
        <img src="http://i.imgur.com/2Yu1LLx.jpg">
        <img src="http://i.imgur.com/lTk16O3.jpg">
        <img src="http://i.imgur.com/BWItx9Q.jpg">
      </p>
    </div>
    <div id="footer">
      <p>
        <a href="https://github.com/wcmckee/wcmckee-notebook">artcontroldrawsyou is open source</a>
      </p>
    </div>
  </body>
</html>

In [189]:
for em in emcs:
    tumlis.append((em['summary_detail']['value']))

In [190]:
tumlis


Out[190]:
[u'<img src="http://33.media.tumblr.com/8d296e208104299904cd950e54bbb321/tumblr_nab26vEZmn1t8sai5o1_500.jpg" /><br /><br /><p><a class="tumblelog" href="http://tmblr.co/mq4n0laUh5KXeRzqSl0YjRQ">meatyelbow</a> added watercolor!</p>',
 u'<img src="http://38.media.tumblr.com/22437df41a29ddaaac56051458f95014/tumblr_nab241KZAd1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/Churaqe, digital painting</p>',
 u'<img src="http://38.media.tumblr.com/8554ac54b4b7f28b53d0a01f2da53628/tumblr_n9yl4a0ZZw1sjrx42o1_500.jpg" /><br /><br /><p>Michael Dimock\u2019s lines are so good. Such a great drawing.</p>',
 u'<br /><br /><p>Not the Joy of Painting</p>',
 u'<img src="http://33.media.tumblr.com/1006326dc341bd4a91a214b88bd6d2be/tumblr_na7pwnlPI71t8sai5o1_500.jpg" /><br /><br /><p>Interpretation for /u/xkisses</p>',
 u'<img src="http://38.media.tumblr.com/6392c6d6a5d59efea4faee6375183c6b/tumblr_na3vxeDAoC1t8sai5o1_500.jpg" /><br /><br /><p>Grantsville, 72\u201d x 48\u201d, oil on canvas</p>',
 u'<img src="http://33.media.tumblr.com/b3f75f45ff7b27245d700e4ace7906d0/tumblr_na02n3v6Ux1t8sai5o1_500.jpg" /><br /><br /><p>Athennna\u2019s grandpa, 12 x 9 inches, pencil on paper</p>',
 u'<img src="http://38.media.tumblr.com/b9bd7f30fdf3938d2390f72fc7e7b30b/tumblr_n9x74tpxCi1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of clyde2003 uncle, 12 x 9 inches, pencil on paper</p>',
 u'<img src="http://33.media.tumblr.com/5ce90c0f253d7d9ee4382f8c6e789520/tumblr_n9w96us1xs1t8sai5o1_500.jpg" /><br /><br /><p>West Wendover Home</p>',
 u'<img src="http://33.media.tumblr.com/11e436f1af1931cdaa3eb52ce80d4304/tumblr_n9pz76J7DB1t8sai5o1_500.jpg" /><br /><br /><p>Rim Fire 2, 40 x 26\xa01/2 inches, pencil and graphite on paper</p>',
 u'<img src="http://38.media.tumblr.com/f3817e5e8c03f24a535814e75c7203d2/tumblr_n9mzq4fl9R1t8sai5o1_500.jpg" /><br /><br /><p>Rim Fire 1, pencil and graphite on paper</p>',
 u'<img src="http://38.media.tumblr.com/018b0938fde692ff0ca2bc19db18bab4/tumblr_n85fm3Z6uq1qg45pdo1_500.jpg" /><br /><br /><p><a class="tumblr_blog" href="http://osaft.tumblr.com/post/90677710590/comedy-gold-with-mcsteffen-nottherogeruknow-and">osaft</a>:</p>\n\n<blockquote><p>Comedy Gold with <a class="tumblelog" href="http://tmblr.co/mrHolH0AaL0YBsXWUyZeEWQ">mcsteffen</a> , <a class="tumblelog" href="http://tmblr.co/mPPcQWm7xfpLmnCPFo36taQ">nottherogeruknow</a> and moi<u><br /></u></p></blockquote>\n\nBringing it back the way it shoulda been! Beautiful drawing by the beautiful <a class="tumblelog" href="http://tmblr.co/mvmqaltOPNXNRufmqAn2xBg">osaft</a>!',
 u'<img src="http://38.media.tumblr.com/4b193ced537b2169b7f3c64de342e768/tumblr_n83ohf0fzv1qg45pdo1_500.jpg" /><br /> <br /><img src="http://31.media.tumblr.com/02275e50e6e4ed89676eb61e350575c0/tumblr_n83ohf0fzv1qg45pdo2_500.jpg" /><br /> <br /><p>Portrait of\xa0<a class="tumblelog" href="http://tmblr.co/mdKApUvkTXycUmehUhDw4DA">katlix</a>\xa0and myself by the ridiculously talented and wonderful\xa0<a class="tumblr_blog" href="http://osaft.tumblr.com/post/90582945065/katlix-and-mcsteffen-3-3-3-3-3-3-3-3-3">osaft</a>!</p>',
 u'<img src="http://33.media.tumblr.com/03a08772c9c3cbea84383f5a27eb2c43/tumblr_n6zybli8gr1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/Daven2ude</p>',
 u'<img src="http://33.media.tumblr.com/c062a07836c7873309643aacebb03409/tumblr_n6tvo9efMl1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/ChardeeMacdennisTime. \xa0Pencil and Marker on paper.</p>',
 u'<img src="http://38.media.tumblr.com/8dc9075b558c521c5a7afe521142cc34/tumblr_n51kxtcIOC1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/yomatz</p>',
 u'<img src="http://38.media.tumblr.com/b8480ba389be6572f4bf08141eac6ce5/tumblr_n3e72pVmaq1t8sai5o1_500.jpg" /><br /><br /><p>/u/ItWillBeMine</p>',
 u'<img src="http://31.media.tumblr.com/32e94e70b0921e15d1725566cef13f33/tumblr_n37ymbeLeI1t8sai5o1_500.jpg" /><br /><br /><p>/u/curiousnonsense\u2019s great uncle</p>',
 u'<img src="http://38.media.tumblr.com/b60cb65ab4e60dfeb32e7b24432a7be3/tumblr_n2svjsIgTY1t8sai5o1_500.jpg" /><br /><br /><p>Recent landscape commission</p>',
 u'<img src="http://33.media.tumblr.com/875be53500ea4b979a58a09f5b940a76/tumblr_n2rd5gI4M41t8sai5o1_500.jpg" /><br /><br /><p>/u/Catness_NeverClean from /r/prettygirlsuglyfaces</p>']

In [191]:
contactpage = dominate.document(title='contact')

In [192]:
with contactpage.head:
    link(rel='stylesheet', href='style.css')
    script(type='text/javascript', src='script.js')

with contactpage:
    with div():
        attr(cls='top')
        #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
        h1('rgdsnatch')
        img(scr='logo.gif')
        h2('go away artcontrol')
        p(strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()))
        a('about', href='http://brobeur.com/artcontroldrawsyou/about')
        a('contact', href='http://brobeur.com/artcontroldrawsyou/contact') 
        a('blog', href='http://brobeur.com/artcontroldrawsyou/wcmckee.com/wcmckee/output')

    with div():
        attr(cls='header')
        #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
        h1('contact')
        p('email: will@artcontrol.me twitter: art_control')
        p('Recent comments from itwillbemine:')
        #for mine in minels:
            #h1(mine.author_flair_text())
            #p(mine.body)
        
 #   with div(id='author'):
  #     for tum in tumlis:
   #         p(tum)
    
    
    with div(id='body'):
        for mine in minels:
            #h1(mine.created)
            li(mine.body)
            




print contactpage


<!DOCTYPE html>
<html>
  <head>
    <title>contact</title>
    <link href="style.css" rel="stylesheet">
    <script src="script.js" type="text/javascript"></script>
  </head>
  <body>
    <div class="top">
      <h1>rgdsnatch</h1>
      <img scr="logo.gif">
      <h2>go away artcontrol</h2>
      <p>Tue, 02 Sep 2014 09:28:03 +0000</p>
      <a href="http://brobeur.com/artcontroldrawsyou/about">about</a>
      <a href="http://brobeur.com/artcontroldrawsyou/contact">contact</a>
      <a href="http://brobeur.com/artcontroldrawsyou/wcmckee.com/wcmckee/output">blog</a>
    </div>
    <div class="header">
      <h1>contact</h1>
      <p>email: will@artcontrol.me twitter: art_control</p>
      <p>Recent comments from itwillbemine:</p>
    </div>
    <div id="body">
      <li>Sure, it's www.facebook.com/redditgetsdrawn :)</li>
      <li>Yep.</li>
      <li>Your comment was removed. Read the rules of the sub before participating.</li>
      <li>Post removed for an unclear title; please read our rules.</li>
      <li>OP, you have artists to thank.</li>
      <li>Hey HMB! Would you mind linking directly to the relevant image next time? Thank you, and thanks for all you do in RGD! :) </li>
      <li>Yaaaay, it's milldogg! &amp;lt;3</li>
      <li>This reminds me of /u/powersimon, which is a compliment! :)</li>
      <li>I like how you did the lighting/sunlight :)</li>
      <li>&amp;lt;3 Whew, good! For what it's worth - awesome job on the skull :)</li>
      <li>Thank you, that's really nice to hear! :)</li>
      <li>Since I've determined that this is a beginner, you shouldn't laugh at him/her. O_O</li>
      <li>&amp;lt;3</li>
      <li>**VERY NICE DRAWING**</li>
      <li>Yessss, love to see you working in color!</li>
      <li>We require all attempts here to be serious and made with effort. Even a cute stick figure is still just a stick figure and can be made in about two minutes or less. It's also hard to make a likeness to OP when you're just doing stick figures.</li>
      <li>You should have PMd your question - it wasn't an appropriate comment for this thread.</li>
      <li>Thank you :D</li>
      <li>I was just thinking about you today! Good to see you! :D</li>
      <li>Your comment was removed. Please read the rules of the sub before participating, and do not comment on appearance in this sub.</li>
      <li>Your comment was removed as well.</li>
      <li>Great job! However, per our rules, please don't comment on appearance in this sub. Thanks!</li>
      <li>Your comment was removed. Please read the rules of the sub before participating.</li>
      <li>&amp;lt;3 Thank you for being here :)</li>
      <li>I love that! This has been my favorite drawing exercise to date. :)</li>
    </div>
  </body>
</html>

In [3029]:
os.chdir('contact')

In [3030]:
savcon = open('index.html', 'w')
savcon.write(str(contactpage))
savcon.close()

In [3031]:
dirdir = os.chdir('/var/www/artcontroldrawsyou')

In [3032]:
dirdir

In [3033]:
aboutpage = dominate.document(title='about')
with aboutpage.head:
    link(rel='stylesheet', href='style.css')
    script(type='text/javascript', src='script.js')

with aboutpage:
    with div():
        attr(cls='header')
        #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
        h1('artcontroldrawsyou!')
        img(scr='logo.gif')
        h2('go away artcontrol')
        p(strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime()))
        a('about', href='https://brobeur.com/artcontroldrawsyou/about')
        a('contact', href='http://brobeur.com/artcontroldrawsyou/contact') 
        a('blog', href='http://brobeur.com/artcontroldrawsyou/wcmckee.com/wcmckee/output')
    with div():
        attr(cls='header')
        #<img src="smiley.gif" alt="Smiley face" height="42" width="42">
        h1('about')
        #for mine in minels:
            #h1(mine.author_flair_text())
            #p(mine.body)
        
    '''with div(id='author'):
        for tits in titlis:
            h3(tits)
    
    with div(id='body').add(p()):
        for mine in minels:
            #h1(mine.created)
            p(mine.body)
            



'''
print aboutpage


<!DOCTYPE html>
<html>
  <head>
    <title>about</title>
    <link href="style.css" rel="stylesheet">
    <script src="script.js" type="text/javascript"></script>
  </head>
  <body>
    <div class="header">
      <h1>artcontroldrawsyou!</h1>
      <img scr="logo.gif">
      <h2>go away artcontrol</h2>
      <p>Sun, 31 Aug 2014 10:44:17 +0000</p>
      <a href="https://brobeur.com/artcontroldrawsyou/about">about</a>
      <a href="http://brobeur.com/artcontroldrawsyou/contact">contact</a>
      <a href="http://brobeur.com/artcontroldrawsyou/wcmckee.com/wcmckee/output">blog</a>
    </div>
    <div class="header">
      <h1>about</h1>
      <p>artcontroldrawsyou is a website that takes RedditGetsDrawn data and posts it here.</p>
      <p>artcontrol is not allowed to submit artwork to redditgetsdrawn so this was created</p>
    </div>
  </body>
</html>

In [3034]:
os.chdir('about')

In [3035]:
aboucr = open('index.html', 'w')
aboucr.write(str(aboutpage))
aboucr.close()

In [3036]:
os.chdir('/var/www/artcontroldrawsyou/')

In [3036]:


In [3036]: