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, footer

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 [899]:
import os
import random
import requests
from bs4 import BeautifulSoup
import re
import json
import time
import praw
import dominate
from dominate.tags import *

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

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

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

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

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

In [905]:
istit


Out[905]:
u"It's time for RGD Mod Favorites (July 27 - August 2)! See inside for details!"

In [906]:
istxt


Out[906]:
u'<!-- SC_OFF --><div class="md"><p>Each week, every mod picks his or her favorite five RGD pieces from that week. Each Sunday, those selections are compiled and posted! Let's take a gander, shall we? Shan't we?</p>\n\n<p><strong>Selections from fivepmsomewhere</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/hSZlpTc.png">futachankawaiidesune</a>, artist <a href="https://i.imgur.com/LWwJc4S.jpg">bcsketches</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c8w7w/profile_of_me_in_drag_sans_wig_any_takers/cjdgaj1">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/SfVd5lf.jpg">ashcaughtemall</a>, artist <a href="http://i.imgur.com/ueDc70D.jpg">---c</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c475g/please_draw_me_3/cjbv62n">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/Hv8py7S.jpg">pseudogentry</a>, artist <a href="http://i.imgur.com/YBg9dtb.jpg">jareddrawsreddit</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bzirx/would_love_for_anyone_to_have_a_go_my_dad_and_me/cjb22hp">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/bIj8t8W.jpg">heyitslolo</a>, artist <a href="http://i.imgur.com/ugEwF8M.jpg">learning_to_draw_ccw</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bwkrb/i_would_love_if_someone_would_draw_me/cj9xaxw">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/hSZlpTc.png">futachankawaiidesune</a>, artist <a href="http://i.imgur.com/qWdzBJk.jpg">manderhits</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c8w7w/profile_of_me_in_drag_sans_wig_any_takers/cjd77jf">Permalink</a></p>\n\n<p><strong>Selections from heyryaaan</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/3VgZwUH.jpg">arc129</a>, artist <a href="http://i.imgur.com/rhwHpOP.jpg">Kivakaa</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c763f/cool_moth_landed_on_me_as_i_arrived_home_from/cjcsifs">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/26cDtN1.jpg">iamarting</a>, artist <a href="http://i.imgur.com/3Uz21OP.gif">Powersimon</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bw7gi/would_anyone_like_to_draw_me_and_my_fancy_coat/cj9ywau">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/RWoJVD2.jpg">MysteryViolaPlayer</a>, artist <a href="http://i.imgur.com/tLrHjIB.jpg">The_Drawist</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c77zy/my_mothers_favorite_baby_picture_of_me_and_i/cjcr8by">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/LSuAPPI.jpg">yadi_1690</a>, artist <a href="http://i.imgur.com/gCCYqSt.jpg">we_have_a_TREX</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c7ih7/can_someone_please_draw_me_would_love_to_see_your/cjd8d2m">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/uAB0peA.jpg?1">lonestargranger</a>, artist <a href="http://i.imgur.com/hvhAg0W.jpg">Zhim</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c3qom/ive_been_a_lurker_for_a_while_would_be_extremely/cjc10ou">Permalink</a></p>\n\n<p><strong>Selections from ItWillBeMine</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/8hiESDN.jpg">gg-no-re</a>, artist <a href="http://i.imgur.com/wUrkhNr.jpg">slam_nine</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bxa7l/a_picture_of_me_and_my_street_luge_in_front_of_a/cj9utn1">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/C31aDVB.jpg">arrabel</a>, artist <a href="http://i.imgur.com/1NDAECj.jpg">rotis4</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bxvcs/i_used_to_do_a_lot_of_flying_photos_and_this_was/cjatd5b">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/TWBnEJI.jpg">Thankyousosomuch</a>, artist <a href="http://i.imgur.com/xH6kXXf.jpg">cacophonyart</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c4bu0/thanks_for_drawing_my_greatest_grandma_shes_about/cjbvkn8">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/bNAyb19.jpg">sh0tzy</a>, artist <a href="http://i.imgur.com/tDOOHXA.jpg">---c</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bw63j/one_of_my_favorite_pictures_of_my_son_the_beach/cj9ssno">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/h3IDxxE.jpg">omgitsbabyseat</a>, artists <a href="http://i.imgur.com/rNVApcQ.jpg">Lairosiel and MeatyElbow</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2cbzly/this_is_my_beautiful_daughter_and_she_loves_art_i/cje40p6">Permalink</a></p>\n\n<p><strong>Selections from meeps114</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/ClxWVbQ.jpg">aLousyFatKid</a>, artist <a href="http://i.imgur.com/IMIHY4y.jpg">milldogg</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c92fb/have_some_fun_with_my_dog_gary_is_a_grump/cjdtno7">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/XtIWPfx.jpg">anonude, NSFW</a>, artist <a href="http://i.imgur.com/2mhO8bq.jpg">orvane</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2btl3q/a_few_redditors_on_rartgw_suggested_i_post_some/cj8zyeh">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/3VgZwUH.jpg">arc129</a>, artist <a href="https://i.imgur.com/n0lkjWp.jpg">bcsketches</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c763f/cool_moth_landed_on_me_as_i_arrived_home_from/cjcpueg">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/C31aDVB.jpg">arabbel</a>, artist <a href="http://31.media.tumblr.com/31564e208847a5f4c5711359c3803382/tumblr_n9ghm0Zmvn1ty772no1_1280.png">LucarioPrime</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bxvcs/i_used_to_do_a_lot_of_flying_photos_and_this_was/cjaq6lz">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/XWqkLyD.jpg">OtotheHtotheItotheO</a>, artist <a href="http://i.imgur.com/moKLMEi.jpg">FlyinMayanLion</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c9w34/saw_a_luna_moth_picture_posted_yesterday_figured/cjehh8v">Permalink</a></p>\n\n<p><strong>Selections from sgt_mary_mary</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/hL5YVo5.jpg">poeticjustice226</a>, artist <a href="http://i.imgur.com/yqX9h64.jpg">hedgie_wedgie</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c72ru/i_would_absolutely_love_for_you_guys_to_draw_my/cjdb8vl">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/SfVd5lf.jpg">ashcaughtemall</a>, artist <a href="http://i.imgur.com/pZ5mP8h.jpg">Chokeberry</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c475g/please_draw_me_3/cjbu3rh">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/hSZlpTc.png">futachankawaiidesune</a>, artist <a href="http://i.imgur.com/l2QUzai.jpg">Taurox</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c8w7w/profile_of_me_in_drag_sans_wig_any_takers/cjdmsii">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/uAB0peA.jpg?1">lonestargranger</a>, artist <a href="http://i.imgur.com/rshAaH2.jpg">but_not_by_wolves</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c3qom/ive_been_a_lurker_for_a_while_would_be_extremely/cjc1r88">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/pdnEjq3.jpg">STEP___ </a>, artist <a href="http://38.media.tumblr.com/b0817b418e2d8ab98b5663ccce5efc3b/tumblr_n9lfljdiWe1tgjtw3o1_1280.png">FinaSusu</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c8pjw/care_to_draw_me_again_wonderful_people/cjdcbt5">Permalink</a></p>\n\n<p><strong>Selections from yowtfyo</strong></p>\n\n<p>Submitter <a href="http://i.imgur.com/A48meVY.jpg">kbleu</a>, artist <a href="http://i.imgur.com/WTR0fti.jpg">NinjaShira</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c67x3/my_roommates_and_i_after_we_thought_someone_was/cjcmnv5">Permalink</a></p>\n\n<p>Submitter <a href="http://imgur.com/a/RHqPJ">Jennylane25</a>, artist <a href="http://i.imgur.com/BtY305c.jpg">shaaaaa</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c6r7v/anyone_want_to_draw_my_son_and_i_as_superheroes/cjclywr">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/OcdOto8.jpg?1">Rumformypups</a>, artist <a href="http://i.imgur.com/ARdpL7e.jpg">smokeybeard</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2cd3vt/a_shot_of_me_waiting_outside_the_bart_station_in/cjef16h">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/vbFb05j.jpg">totorose</a>, artist <a href="http://i.imgur.com/WowePkx.png">theMaynEvent</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c22a8/would_love_for_someone_to_draw_this_photo_of_me/cjbfuyl">Permalink</a></p>\n\n<p>Submitter <a href="http://i.imgur.com/XgDwBbl.jpg">InfiniteThird</a>, artist <a href="http://i.imgur.com/A19MIUo.jpg">jareddrawsreddit</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c1jsq/you_all_did_so_well_with_my_last_photo_i_thought/cjb666f">Permalink</a></p>\n\n<p>We want to continue to encourage submitters to post high-quality/interesting photos. Accordingly, each mod has selected a favorite RGD picture of the week. Both artists and submitters listed in these posts will receive flair.</p>\n\n<p><strong>fivepmsomewhere</strong>: <a href="http://i.imgur.com/3VgZwUH.jpg">arc129</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/top/?sort=top&t=week">Permalink</a></p>\n\n<p><strong>heyryaaan</strong>: <a href="http://i.imgur.com/bIj8t8W.jpg">heyitslolo</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bwkrb/i_would_love_if_someone_would_draw_me/">Permalink</a></p>\n\n<p><strong>ItWillBeMine</strong>: <a href="http://i.imgur.com/y2x9W3f.jpg">Foureyes89</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c497b/this_is_my_friend_looking_badass_can_someone/">Permalink</a></p>\n\n<p><strong>meeps114</strong>: <a href="http://i.imgur.com/C31aDVB.jpg">arabbel</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2bxvcs/i_used_to_do_a_lot_of_flying_photos_and_this_was/">Permalink</a></p>\n\n<p><strong>sgt_mary_mary</strong>: <a href="http://i.imgur.com/kb8aIz0.jpg">poeticjustice226</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2c72ru/i_would_absolutely_love_for_you_guys_to_draw_my/">Permalink</a></p>\n\n<p><strong>yowtfyo</strong>: <a href="http://i.imgur.com/vwn5Lqd.jpg">sageandonion</a>, <a href="http://www.reddit.com/r/redditgetsdrawn/comments/2ccl7o/me_in_afghanistan_with_this_little_dude/">Permalink</a></p>\n</div><!-- SC_ON -->'

In [907]:
if istick = True:


  File "<ipython-input-907-ba3e16af1a86>", line 1
    if istick = True:
              ^
SyntaxError: invalid syntax

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

In [909]:
rdnew = []

In [910]:
rdnew


Out[910]:
[]

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

In [912]:
urzlis = []
titlis = []

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

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


http://imgur.com/v9vSO9U
http://i.imgur.com/rHbBy6K.jpg
http://i.imgur.com/ZexToPI.jpg
http://i.imgur.com/t1HgLMo.jpg
http://i.imgur.com/VqI5FFc.jpg
http://i.imgur.com/LDXlWie.jpg
http://i.imgur.com/RgooyN3.jpg
http://imgur.com/NxTMyGD
http://www.reddit.com/r/redditgetsdrawn/comments/2cmzex/august_1_is_already_over_well_heck_its_time_to/
http://imgur.com/GHJawNP
http://i.imgur.com/4CEDav6.jpg
http://i.imgur.com/EmlglE1.jpg
http://i.imgur.com/zijZ4kH.jpg
http://i.imgur.com/OBaE1nh.jpg
http://i.imgur.com/m67ppXJ.jpg
http://imgur.com/ns7BqUX
http://i.imgur.com/hqMUPgd.jpg
http://i.imgur.com/5jJDyQi.jpg?1
http://i.imgur.com/t0i70v2.jpg
http://imgur.com/dtAoEns
http://i.imgur.com/ozdr7oG.jpg
http://imgur.com/9jrKMgt
http://i.imgur.com/NRhvGTT.jpg
http://i.imgur.com/F8cF3Ir.jpg
http://imgur.com/JZuGhEj

In [915]:
titlis


Out[915]:
[u'xNikkinicolex',
 u'rickjackwood',
 u'Kivakaa',
 u'tysonoff',
 u'IM_ALL_THAT_IS_MAN',
 u'nightingalesoul',
 u'hohohopeless',
 u'Rossii',
 u'ItWillBeMine',
 u'patozash',
 u'PinchMyPapayas',
 u'oodlethepoodle',
 u'peter-park0ur',
 u'avalanchethethird',
 u'fdjohna',
 u'Cannabrain',
 u'Droseph88',
 u'PG_Glenwood',
 u'x_xdoodlex_x',
 u'jdtatum',
 u'feelthesunnow',
 u'AkumaLamprey',
 u'DanimalHouse',
 u'DarwinsApostle',
 u'Urgrimm']

In [916]:
jplis = []

In [917]:
from time import gmtime, strftime

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

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

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

In [920]:


In [921]:
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('artcontroldrawsyou!')
        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/wcmckee.com/wcmckee/output')
        
    with div(id='authors'):
        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>artcontroldrawsyou!</h1>
      <img scr="logo.gif">
      <h2>go away artcontrol</h2>
      <p>Tue, 05 Aug 2014 00:29:33 +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/wcmckee.com/wcmckee/output">blog</a>
    </div>
    <div id="authors">
      <a href="https://reddit.com/u/xNikkinicolex">xNikkinicolex</a>
      <a href="https://reddit.com/u/rickjackwood">rickjackwood</a>
      <a href="https://reddit.com/u/Kivakaa">Kivakaa</a>
      <a href="https://reddit.com/u/tysonoff">tysonoff</a>
      <a href="https://reddit.com/u/IM_ALL_THAT_IS_MAN">IM_ALL_THAT_IS_MAN</a>
      <a href="https://reddit.com/u/nightingalesoul">nightingalesoul</a>
      <a href="https://reddit.com/u/hohohopeless">hohohopeless</a>
      <a href="https://reddit.com/u/Rossii">Rossii</a>
      <a href="https://reddit.com/u/ItWillBeMine">ItWillBeMine</a>
      <a href="https://reddit.com/u/patozash">patozash</a>
      <a href="https://reddit.com/u/PinchMyPapayas">PinchMyPapayas</a>
      <a href="https://reddit.com/u/oodlethepoodle">oodlethepoodle</a>
      <a href="https://reddit.com/u/peter-park0ur">peter-park0ur</a>
      <a href="https://reddit.com/u/avalanchethethird">avalanchethethird</a>
      <a href="https://reddit.com/u/fdjohna">fdjohna</a>
      <a href="https://reddit.com/u/Cannabrain">Cannabrain</a>
      <a href="https://reddit.com/u/Droseph88">Droseph88</a>
      <a href="https://reddit.com/u/PG_Glenwood">PG_Glenwood</a>
      <a href="https://reddit.com/u/x_xdoodlex_x">x_xdoodlex_x</a>
      <a href="https://reddit.com/u/jdtatum">jdtatum</a>
      <a href="https://reddit.com/u/feelthesunnow">feelthesunnow</a>
      <a href="https://reddit.com/u/AkumaLamprey">AkumaLamprey</a>
      <a href="https://reddit.com/u/DanimalHouse">DanimalHouse</a>
      <a href="https://reddit.com/u/DarwinsApostle">DarwinsApostle</a>
      <a href="https://reddit.com/u/Urgrimm">Urgrimm</a>
    </div>
    <div id="body">
      <p>
        <img src="http://i.imgur.com/rHbBy6K.jpg">
        <a href="http://i.imgur.com/rHbBy6K.jpg">http://i.imgur.com/rhbby6k.jpg</a>
        <img src="http://i.imgur.com/ZexToPI.jpg">
        <a href="http://i.imgur.com/ZexToPI.jpg">http://i.imgur.com/zextopi.jpg</a>
        <img src="http://i.imgur.com/t1HgLMo.jpg">
        <a href="http://i.imgur.com/t1HgLMo.jpg">http://i.imgur.com/t1hglmo.jpg</a>
        <img src="http://i.imgur.com/VqI5FFc.jpg">
        <a href="http://i.imgur.com/VqI5FFc.jpg">http://i.imgur.com/vqi5ffc.jpg</a>
        <img src="http://i.imgur.com/LDXlWie.jpg">
        <a href="http://i.imgur.com/LDXlWie.jpg">http://i.imgur.com/ldxlwie.jpg</a>
        <img src="http://i.imgur.com/RgooyN3.jpg">
        <a href="http://i.imgur.com/RgooyN3.jpg">http://i.imgur.com/rgooyn3.jpg</a>
        <img src="http://i.imgur.com/4CEDav6.jpg">
        <a href="http://i.imgur.com/4CEDav6.jpg">http://i.imgur.com/4cedav6.jpg</a>
        <img src="http://i.imgur.com/EmlglE1.jpg">
        <a href="http://i.imgur.com/EmlglE1.jpg">http://i.imgur.com/emlgle1.jpg</a>
        <img src="http://i.imgur.com/zijZ4kH.jpg">
        <a href="http://i.imgur.com/zijZ4kH.jpg">http://i.imgur.com/zijz4kh.jpg</a>
        <img src="http://i.imgur.com/OBaE1nh.jpg">
        <a href="http://i.imgur.com/OBaE1nh.jpg">http://i.imgur.com/obae1nh.jpg</a>
        <img src="http://i.imgur.com/m67ppXJ.jpg">
        <a href="http://i.imgur.com/m67ppXJ.jpg">http://i.imgur.com/m67ppxj.jpg</a>
        <img src="http://i.imgur.com/hqMUPgd.jpg">
        <a href="http://i.imgur.com/hqMUPgd.jpg">http://i.imgur.com/hqmupgd.jpg</a>
        <img src="http://i.imgur.com/5jJDyQi.jpg?1">
        <a href="http://i.imgur.com/5jJDyQi.jpg?1">http://i.imgur.com/5jjdyqi.jpg?1</a>
        <img src="http://i.imgur.com/t0i70v2.jpg">
        <a href="http://i.imgur.com/t0i70v2.jpg">http://i.imgur.com/t0i70v2.jpg</a>
        <img src="http://i.imgur.com/ozdr7oG.jpg">
        <a href="http://i.imgur.com/ozdr7oG.jpg">http://i.imgur.com/ozdr7og.jpg</a>
        <img src="http://i.imgur.com/NRhvGTT.jpg">
        <a href="http://i.imgur.com/NRhvGTT.jpg">http://i.imgur.com/nrhvgtt.jpg</a>
        <img src="http://i.imgur.com/F8cF3Ir.jpg">
        <a href="http://i.imgur.com/F8cF3Ir.jpg">http://i.imgur.com/f8cf3ir.jpg</a>
      </p>
    </div>
    <div id="footer">
      <p>
        <a href="https://github.com/wcmckee/wcmckee-notebook">artcontroldrawsyou is open source</a>
      </p>
    </div>
  </body>
</html>

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

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

In [924]:
ophtml.close()

In [925]:
'''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[925]:
'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 [926]:
#fcopy('/var/www/artcontroldrawsyou/home/')

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


xNikkinicolex
rickjackwood
Kivakaa
tysonoff
IM_ALL_THAT_IS_MAN
nightingalesoul
hohohopeless
Rossii
ItWillBeMine
patozash
PinchMyPapayas
oodlethepoodle
peter-park0ur
avalanchethethird
fdjohna
Cannabrain
Droseph88
PG_Glenwood
x_xdoodlex_x
jdtatum
feelthesunnow
AkumaLamprey
DanimalHouse
DarwinsApostle
Urgrimm

In [928]:
'''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[928]:
'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 [929]:
ransubz = random.randint(0,24)

In [930]:
print ransubz


18

In [931]:
ransev = rdnew[ransubz]

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

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

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

In [935]:
sutit


Out[935]:
'[redditgetsdrawn]'

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

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

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

In [939]:
rgdatit


Out[939]:
'Can anyone draw me and my best friend on walkies?'

In [940]:
#rd.get_top

In [941]:
linkdict = {}

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

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

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

In [945]:
loctime.tm_mday


Out[945]:
5

In [946]:
loctime.tm_mon


Out[946]:
8

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

In [948]:
thedat


Out[948]:
'5/8'

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

In [950]:
loctime


Out[950]:
time.struct_time(tm_year=2014, tm_mon=8, tm_mday=5, tm_hour=0, tm_min=29, tm_sec=38, tm_wday=1, tm_yday=217, tm_isdst=0)

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

In [952]:
'''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[952]:
'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 [953]:
#print str(newa.title)

In [954]:
import json

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

In [956]:
#newzjson

In [956]:


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

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

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

In [960]:
#print mincom

In [961]:
minels = []

In [962]:
dausr = {}

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

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

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

In [966]:
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, 05 Aug 2014 00:29:43 +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>xNikkinicolex</h3>
      <h3>rickjackwood</h3>
      <h3>Kivakaa</h3>
      <h3>tysonoff</h3>
      <h3>IM_ALL_THAT_IS_MAN</h3>
      <h3>nightingalesoul</h3>
      <h3>hohohopeless</h3>
      <h3>Rossii</h3>
      <h3>ItWillBeMine</h3>
      <h3>patozash</h3>
      <h3>PinchMyPapayas</h3>
      <h3>oodlethepoodle</h3>
      <h3>peter-park0ur</h3>
      <h3>avalanchethethird</h3>
      <h3>fdjohna</h3>
      <h3>Cannabrain</h3>
      <h3>Droseph88</h3>
      <h3>PG_Glenwood</h3>
      <h3>x_xdoodlex_x</h3>
      <h3>jdtatum</h3>
      <h3>feelthesunnow</h3>
      <h3>AkumaLamprey</h3>
      <h3>DanimalHouse</h3>
      <h3>DarwinsApostle</h3>
      <h3>Urgrimm</h3>
    </div>
    <div id="body">
      <p>
        <p>This post is offensive and was removed. You can try again with a different photo.</p>
        <p>I assume this is your cat?
</p>
        <p>1) your images aren't available

2) gift posts aren't allowed, so your post was removed.</p>
        <p>This is a repost. Post removed.</p>
        <p>All children should be clothed in this sub, so this post was removed.</p>
        <p>Please submit a different photo that doesn't have such blatant advertising.</p>
        <p>This breaks two sub rules, and was removed.</p>
        <p>Sorry it took so long. Feel free to try again in three days with a new photo if this one doesn't get any responses.  You won't have to verify next time.</p>
        <p>Post removed. You can't use your birthday to get art here. Please review our rules.</p>
        <p>Titles that elicit sympathy aren't allowed, and gift posts aren't allowed. Please review our rules.</p>
        <p>Post removed; please review our list of approved relationships.</p>
        <p>Post removed. Please review our list of approved relationships.</p>
        <p>Your post is visible. :)</p>
        <p>(Your post was removed since you were banned fo' attitude).</p>
        <p>Please repost without the bit about being thousands of miles apart.</p>
        <p>Gift posts aren't allowed, so your post was removed.</p>
        <p>Reposting and frequent posting are not allowed, so your post was removed.</p>
        <p>Gift posts aren't allowed, so your post was removed.</p>
        <p>Sad posts are not allowed. Please read our rules before posting.</p>
        <p>Gift posts aren't allowed. Please review our rules.</p>
        <p>Your post was removed. Please review our list of approved relationships.</p>
        <p>Sorry, this breaks sub rules and was removed. Please review our rules.</p>
        <p>You should see the ones that never make it out of the gate!

&quot;My dog just died of cancer, pls draw him, I'm so sad.&quot;

&quot;I took a picture of my grandma's cactus, show me what you can do!&quot;

&quot;This is my cousin's husband's neighbor, can you draw him?&quot;

I'll definitely give it a try, just for you! Prepare your eyeballs! For the suck!</p>
        <p>You know me, sometimes I just like to fuck a lil' shit up on a Monday...

Seriously, tho, I believe that person has received the highest number of warnings prior to a ban ever in the history of RGD. I would say that person has received 12-15 warnings about rule-breaking, easily. Normally I give 0-2. :)

P.S. I would draw you if I could! Have you ever seen my feeble art attempts before? I like to think of them as endearing. :D</p>
        <p>Please send it to modmail - I am at work and cannot open it right now. I won't be able to open that link until tonight (my time).</p>
      </p>
    </div>
  </body>
</html>

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

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

In [969]:
newposts = open('userurl.json', 'a')
newposts.write(newzjson)
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 [970]:
rdusr = str(con.author)

In [971]:
minelsz = []

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

In [973]:
#minelsz

In [974]:
#mina.body

In [975]:
import feedparser

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

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

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


{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://31.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://31.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://37.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://37.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://31.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://31.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://31.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://31.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://37.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://37.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://31.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://31.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'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/4a9f14996a9a6be04c3ec5644fa1b661/tumblr_n2r4ntnY4F1t8sai5o1_500.jpg" /><br /><br /><p>/u/Hotnonsense\u2019s daughter from /r/redditgetsdrawn</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=3, tm_mday=20, tm_hour=20, tm_min=23, tm_sec=53, tm_wday=3, tm_yday=79, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/80190751038', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'/u/Hotnonsense\u2019s daughter from /r/redditgetsdrawn', 'tags': [{'term': u'RGD', 'scheme': None, 'label': None}, {'term': u'RedditGetsDrawn', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/4a9f14996a9a6be04c3ec5644fa1b661/tumblr_n2r4ntnY4F1t8sai5o1_500.jpg" /><br /><br /><p>/u/Hotnonsense\u2019s daughter from /r/redditgetsdrawn</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'/u/Hotnonsense\u2019s daughter from /r/redditgetsdrawn', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/80190751038', 'published': u'Thu, 20 Mar 2014 16:23:53 -0400', 'id': u'http://mcsteffen.tumblr.com/post/80190751038'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/eb3c44b5249af01c4b6e77e87056ca4d/tumblr_n29gvzgNdO1t8sai5o1_500.jpg" /><br /><br /><p>/u/blackzao</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=3, tm_mday=11, tm_hour=7, tm_min=31, tm_sec=11, tm_wday=1, tm_yday=70, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/79247221533', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'/u/blackzao', 'tags': [{'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'RedditGetsDrawn', 'scheme': None, 'label': None}, {'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'RGD', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}, {'term': u'mike steffen', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/eb3c44b5249af01c4b6e77e87056ca4d/tumblr_n29gvzgNdO1t8sai5o1_500.jpg" /><br /><br /><p>/u/blackzao</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'/u/blackzao', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/79247221533', 'published': u'Tue, 11 Mar 2014 03:31:11 -0400', 'id': u'http://mcsteffen.tumblr.com/post/79247221533'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://31.media.tumblr.com/47e18d37bf3cc77af96cec189afff66a/tumblr_n28b4rv12K1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of Melvin</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=3, tm_mday=10, tm_hour=16, tm_min=29, tm_sec=15, tm_wday=0, tm_yday=69, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/79172519099', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Portrait of Melvin', 'tags': [{'term': u'RGD', 'scheme': None, 'label': None}, {'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'RedditGetsDrawn', 'scheme': None, 'label': None}, {'term': u'/r/artistlounge', 'scheme': None, 'label': None}, {'term': u'artistlounge', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'mike steffen', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}], 'summary': u'<img src="http://31.media.tumblr.com/47e18d37bf3cc77af96cec189afff66a/tumblr_n28b4rv12K1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of Melvin</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Portrait of Melvin', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/79172519099', 'published': u'Mon, 10 Mar 2014 12:29:15 -0400', 'id': u'http://mcsteffen.tumblr.com/post/79172519099'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<br /><br /><p>Newb School: Episode Fucked Up</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=3, tm_mday=9, tm_hour=10, tm_min=55, tm_sec=5, tm_wday=6, tm_yday=68, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/79044786476', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Newb School: Episode Fucked Up', 'tags': [{'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'RedditGetsDrawn', 'scheme': None, 'label': None}, {'term': u'/r/artistlounge', 'scheme': None, 'label': None}, {'term': u'rgd', 'scheme': None, 'label': None}, {'term': u'mike steffen', 'scheme': None, 'label': None}, {'term': u'art', 'scheme': None, 'label': None}, {'term': u'instructional', 'scheme': None, 'label': None}, {'term': u'artistlounge', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}], 'summary': u'<br /><br /><p>Newb School: Episode Fucked Up</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Newb School: Episode Fucked Up', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/79044786476', 'published': u'Sun, 09 Mar 2014 06:55:05 -0400', 'id': u'http://mcsteffen.tumblr.com/post/79044786476'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://31.media.tumblr.com/b89cc31d9ca0510c9a078ad67ead8975/tumblr_n1s51zhZlt1t8sai5o1_500.jpg" /><br /><br /><p>First time hanging this in a show. :)</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=3, tm_mday=1, tm_hour=22, tm_min=56, tm_sec=22, tm_wday=5, tm_yday=60, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/78255101926', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'First time hanging this in a show. :)', 'tags': [{'term': u'ntropic', 'scheme': None, 'label': None}, {'term': u'landscape painting', 'scheme': None, 'label': None}, {'term': u'mike steffen', 'scheme': None, 'label': None}, {'term': u'art', 'scheme': None, 'label': None}], 'summary': u'<img src="http://31.media.tumblr.com/b89cc31d9ca0510c9a078ad67ead8975/tumblr_n1s51zhZlt1t8sai5o1_500.jpg" /><br /><br /><p>First time hanging this in a show. :)</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'First time hanging this in a show. :)', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/78255101926', 'published': u'Sat, 01 Mar 2014 17:56:22 -0500', 'id': u'http://mcsteffen.tumblr.com/post/78255101926'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://38.media.tumblr.com/a2d384e4b9959edf9d806c1d28f46ee2/tumblr_n1p09uo6Fn1t8sai5o1_500.jpg" /><br /><br /><p>Sketch of /u/arretez\u2019s friend</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=2, tm_mday=28, tm_hour=6, tm_min=20, tm_sec=18, tm_wday=4, tm_yday=59, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/78086866029', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Sketch of /u/arretez\u2019s friend', 'tags': [{'term': u'RGD', 'scheme': None, 'label': None}, {'term': u'/r/artistlounge', 'scheme': None, 'label': None}, {'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}, {'term': u'mike steffen', 'scheme': None, 'label': None}, {'term': u'sketch', 'scheme': None, 'label': None}, {'term': u'art', 'scheme': None, 'label': None}], 'summary': u'<img src="http://38.media.tumblr.com/a2d384e4b9959edf9d806c1d28f46ee2/tumblr_n1p09uo6Fn1t8sai5o1_500.jpg" /><br /><br /><p>Sketch of /u/arretez\u2019s friend</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Sketch of /u/arretez\u2019s friend', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/78086866029', 'published': u'Fri, 28 Feb 2014 01:20:18 -0500', 'id': u'http://mcsteffen.tumblr.com/post/78086866029'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://31.media.tumblr.com/67b29f3fa6e636fa938d66c6bd87e392/tumblr_mz8djw4VLL1t8sai5o1_500.jpg" /><br /><br /><p>/u/Birdynumnums1, pencil on paper</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=1, tm_mday=11, tm_hour=9, tm_min=40, tm_sec=44, tm_wday=5, tm_yday=11, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/72961361062', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'/u/Birdynumnums1, pencil on paper', 'tags': [{'term': u'rgd', 'scheme': None, 'label': None}, {'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'/r/artistlounge', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}, {'term': u'mike steffen', 'scheme': None, 'label': None}, {'term': u'drawing', 'scheme': None, 'label': None}, {'term': u'art', 'scheme': None, 'label': None}, {'term': u'portraiture', 'scheme': None, 'label': None}], 'summary': u'<img src="http://31.media.tumblr.com/67b29f3fa6e636fa938d66c6bd87e392/tumblr_mz8djw4VLL1t8sai5o1_500.jpg" /><br /><br /><p>/u/Birdynumnums1, pencil on paper</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'/u/Birdynumnums1, pencil on paper', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/72961361062', 'published': u'Sat, 11 Jan 2014 04:40:44 -0500', 'id': u'http://mcsteffen.tumblr.com/post/72961361062'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://31.media.tumblr.com/e7e60139d8fe58d4d82942998e55000b/tumblr_mz8dh8zvR11t8sai5o1_500.jpg" /><br /><br /><p>/u/Internet_Exploder, Oil on Wood Panel, 14 x 11 inches</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2014, tm_mon=1, tm_mday=11, tm_hour=9, tm_min=39, tm_sec=8, tm_wday=5, tm_yday=11, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/72961290241', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'/u/Internet_Exploder, Oil on Wood Panel, 14 x 11 inches', 'tags': [{'term': u'RGD', 'scheme': None, 'label': None}, {'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'/r/artistlounge', 'scheme': None, 'label': None}, {'term': u'art', 'scheme': None, 'label': None}, {'term': u'mike steffen', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}], 'summary': u'<img src="http://31.media.tumblr.com/e7e60139d8fe58d4d82942998e55000b/tumblr_mz8dh8zvR11t8sai5o1_500.jpg" /><br /><br /><p>/u/Internet_Exploder, Oil on Wood Panel, 14 x 11 inches</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'/u/Internet_Exploder, Oil on Wood Panel, 14 x 11 inches', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/72961290241', 'published': u'Sat, 11 Jan 2014 04:39:08 -0500', 'id': u'http://mcsteffen.tumblr.com/post/72961290241'}
{'summary_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/html', 'value': u'<img src="http://33.media.tumblr.com/4075917b855bf3f83112a7ef04a4f9e1/tumblr_myep73x95N1t8sai5o1_500.jpg" /><br /><br /><p>Poeptal</p>', 'language': None}, 'published_parsed': time.struct_time(tm_year=2013, tm_mon=12, tm_mday=26, tm_hour=9, tm_min=4, tm_sec=15, tm_wday=3, tm_yday=360, tm_isdst=0), 'links': [{'href': u'http://mcsteffen.tumblr.com/post/71188778392', 'type': u'text/html', 'rel': u'alternate'}], 'title': u'Poeptal', 'tags': [{'term': u'/r/fancyfollicles', 'scheme': None, 'label': None}, {'term': u'rgd', 'scheme': None, 'label': None}, {'term': u'/r/redditgetsdrawn', 'scheme': None, 'label': None}, {'term': u'funisher', 'scheme': None, 'label': None}, {'term': u'mike steffen', 'scheme': None, 'label': None}], 'summary': u'<img src="http://33.media.tumblr.com/4075917b855bf3f83112a7ef04a4f9e1/tumblr_myep73x95N1t8sai5o1_500.jpg" /><br /><br /><p>Poeptal</p>', 'guidislink': False, 'title_detail': {'base': u'http://mcsteffen.tumblr.com/rss', 'type': u'text/plain', 'value': u'Poeptal', 'language': None}, 'link': u'http://mcsteffen.tumblr.com/post/71188778392', 'published': u'Thu, 26 Dec 2013 04:04:15 -0500', 'id': u'http://mcsteffen.tumblr.com/post/71188778392'}

In [979]:
tumlis = []

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

In [981]:
tumlis


Out[981]:
[u'<img src="http://31.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://37.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://31.media.tumblr.com/03a08772c9c3cbea84383f5a27eb2c43/tumblr_n6zybli8gr1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of /u/Daven2ude</p>',
 u'<img src="http://31.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://37.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://31.media.tumblr.com/875be53500ea4b979a58a09f5b940a76/tumblr_n2rd5gI4M41t8sai5o1_500.jpg" /><br /><br /><p>/u/Catness_NeverClean from /r/prettygirlsuglyfaces</p>',
 u'<img src="http://33.media.tumblr.com/4a9f14996a9a6be04c3ec5644fa1b661/tumblr_n2r4ntnY4F1t8sai5o1_500.jpg" /><br /><br /><p>/u/Hotnonsense\u2019s daughter from /r/redditgetsdrawn</p>',
 u'<img src="http://33.media.tumblr.com/eb3c44b5249af01c4b6e77e87056ca4d/tumblr_n29gvzgNdO1t8sai5o1_500.jpg" /><br /><br /><p>/u/blackzao</p>',
 u'<img src="http://31.media.tumblr.com/47e18d37bf3cc77af96cec189afff66a/tumblr_n28b4rv12K1t8sai5o1_500.jpg" /><br /><br /><p>Portrait of Melvin</p>',
 u'<br /><br /><p>Newb School: Episode Fucked Up</p>',
 u'<img src="http://31.media.tumblr.com/b89cc31d9ca0510c9a078ad67ead8975/tumblr_n1s51zhZlt1t8sai5o1_500.jpg" /><br /><br /><p>First time hanging this in a show. :)</p>',
 u'<img src="http://38.media.tumblr.com/a2d384e4b9959edf9d806c1d28f46ee2/tumblr_n1p09uo6Fn1t8sai5o1_500.jpg" /><br /><br /><p>Sketch of /u/arretez\u2019s friend</p>',
 u'<img src="http://31.media.tumblr.com/67b29f3fa6e636fa938d66c6bd87e392/tumblr_mz8djw4VLL1t8sai5o1_500.jpg" /><br /><br /><p>/u/Birdynumnums1, pencil on paper</p>',
 u'<img src="http://31.media.tumblr.com/e7e60139d8fe58d4d82942998e55000b/tumblr_mz8dh8zvR11t8sai5o1_500.jpg" /><br /><br /><p>/u/Internet_Exploder, Oil on Wood Panel, 14 x 11 inches</p>',
 u'<img src="http://33.media.tumblr.com/4075917b855bf3f83112a7ef04a4f9e1/tumblr_myep73x95N1t8sai5o1_500.jpg" /><br /><br /><p>Poeptal</p>']

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

In [983]:
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('artcontroldrawsyou!')
        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>artcontroldrawsyou!</h1>
      <img scr="logo.gif">
      <h2>go away artcontrol</h2>
      <p>Tue, 05 Aug 2014 00:29: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>contact</h1>
      <p>email: will@artcontrol.me twitter: art_control</p>
      <p>Recent comments from itwillbemine:</p>
    </div>
    <div id="body">
      <li>This post is offensive and was removed. You can try again with a different photo.</li>
      <li>I assume this is your cat?
</li>
      <li>1) your images aren't available

2) gift posts aren't allowed, so your post was removed.</li>
      <li>This is a repost. Post removed.</li>
      <li>All children should be clothed in this sub, so this post was removed.</li>
      <li>Please submit a different photo that doesn't have such blatant advertising.</li>
      <li>This breaks two sub rules, and was removed.</li>
      <li>Sorry it took so long. Feel free to try again in three days with a new photo if this one doesn't get any responses.  You won't have to verify next time.</li>
      <li>Post removed. You can't use your birthday to get art here. Please review our rules.</li>
      <li>Titles that elicit sympathy aren't allowed, and gift posts aren't allowed. Please review our rules.</li>
      <li>Post removed; please review our list of approved relationships.</li>
      <li>Post removed. Please review our list of approved relationships.</li>
      <li>Your post is visible. :)</li>
      <li>(Your post was removed since you were banned fo' attitude).</li>
      <li>Please repost without the bit about being thousands of miles apart.</li>
      <li>Gift posts aren't allowed, so your post was removed.</li>
      <li>Reposting and frequent posting are not allowed, so your post was removed.</li>
      <li>Gift posts aren't allowed, so your post was removed.</li>
      <li>Sad posts are not allowed. Please read our rules before posting.</li>
      <li>Gift posts aren't allowed. Please review our rules.</li>
      <li>Your post was removed. Please review our list of approved relationships.</li>
      <li>Sorry, this breaks sub rules and was removed. Please review our rules.</li>
      <li>You should see the ones that never make it out of the gate!

&quot;My dog just died of cancer, pls draw him, I'm so sad.&quot;

&quot;I took a picture of my grandma's cactus, show me what you can do!&quot;

&quot;This is my cousin's husband's neighbor, can you draw him?&quot;

I'll definitely give it a try, just for you! Prepare your eyeballs! For the suck!</li>
      <li>You know me, sometimes I just like to fuck a lil' shit up on a Monday...

Seriously, tho, I believe that person has received the highest number of warnings prior to a ban ever in the history of RGD. I would say that person has received 12-15 warnings about rule-breaking, easily. Normally I give 0-2. :)

P.S. I would draw you if I could! Have you ever seen my feeble art attempts before? I like to think of them as endearing. :D</li>
      <li>Please send it to modmail - I am at work and cannot open it right now. I won't be able to open that link until tonight (my time).</li>
    </div>
  </body>
</html>

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

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

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

In [987]:
dirdir

In [988]:
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')
        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 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>Tue, 05 Aug 2014 00:29:47 +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 [989]:
os.chdir('about')

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

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

In [991]:


In [991]:


In [991]:


In [898]:


In [898]:


In [ ]: