Advertisement
MrCheeze

homer stuck

Apr 4th, 2018
473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.44 KB | None | 0 0
  1. pages = ['31','77','82','88','90','110','137','138','140','177','186','222','246','250','251','253','307','338','388','393','397','400','418','422','423','424','444','476','501','644','651','665','721','755','757','769','772','822','825','826','830','833','836','843','871','879','918','938','948','979','980','1026','1070','1073','1149','1154','1267','1358','1407','1641','1656','1668','1685','1720','1801','1931','1940','2578','2626','2787','2792','2848','2927','2988','3001','3079','3087','3297','3321','3438','3520','3639','3646','3659','3666','3679','3695','3696','3714','3717','3718','3725','3730','3743','3744','3760','3761','3762','3851','3860','3874','3895','3936','3943','3952','3974','4002','4018','4019','4053','4084','4085','4099','4100','4109','4111','4113','4121','4162','4194','4275','4282','4373','4388','4390','4469','4485','4486','4516','4541','4568','4572','4617','4665','4815','4820','4825','4827','4942','4944','5027','5030','5032','5034','5052','5070','5078','5084','5137','5203','5217','5236','5238','5239','5251','5252','5258','5259','5260','5261','5263','5308','5368','5373','5374','5375','5376','5377','5398','5427','5438','5440','5471','5472','5473','5474','5485','5494','5495','5512','5655','5711','5712','5713','5714','5724','5726','5735','5736','5737','5740','5759','5763','5764','5776','5777','5780','5787','5981','5997','6031','6046','6066','6073','6140','6204','6205','6231','6237','6238','6239','6240','6243','6278','6279','6284','6299','6382','6397','6400','6401','6405','6416','6552','6652','6901','6920','6943','7086','7098','7100','7101','7125','7405','7408','7409','7410','7411','7412','7413','7414','7415','7416','7417','7418','7419','7420','7421','7422','7423','7424','7425','7426','7427','7428','7429','7430','7431','7432','7433','7434','7435','7436','7437','7438','7439','7440','7441','7442','7443','7444','7445','7448','7449','7486','7672','7681','7686','7693','7696','7700','7713','7725','7733','7766','7804','7823','7912','7928','7959','8087','8127','8129','8130']
  2.  
  3. import urllib.request
  4.  
  5. for num in pages:
  6.     page = urllib.request.urlopen('https://www.homestuck.com/story/'+num).read().decode('utf8')
  7.    
  8.     canvas = 'HTML5' if '<canvas' in page else '-----'
  9.     swf = 'FLASH' if '.swf' in page else '-----'
  10.     youtube = 'VIDEO' if 'youtu' in page else '-----'
  11.     static = 'IMAGE' if 'altimgsrc' in page else '-----'
  12.     multi = 'MULTI' if 'staticfb' in page else '-----'
  13.    
  14.     print(num, canvas, youtube, static, multi, swf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement