Skip to content

Instantly share code, notes, and snippets.

View thekindlyone's full-sized avatar

Aritra Das thekindlyone

  • @TeamAlbi
  • New Zealand
View GitHub Profile
# coding: utf-8
from __future__ import unicode_literals
from unidecode import unidecode
import requests
from bs4 import BeautifulSoup as bs
from time import sleep
import re
from kitchen.text.converters import to_bytes
import itertools
import csv
#!/usr/bin/env python
# coding: utf-8
import re
import requests
import sys
import subprocess
def download(furl,title):
wget = subprocess.Popen(['wget','-c','-O',title, furl])
wget.wait()
return wget.returncode
from __future__ import division
from bs4 import BeautifulSoup as bs
import requests
import re
import time
from pymongo import MongoClient
from time import mktime
from datetime import datetime
import plotly.plotly as py
import plotly.graph_objs as go
thekindlyone@deepthought:/media/thekindlyone/storage/anime/the_tower_of_druaga:Aegis_of_uruk$ nwanime-dl -i 12 http://www.nwanime.com/the-tower-of-druaga-episode-1/video/3af5693726838cd72816/
The Tower of DRUAGA Episode 1
fetching mirrors
mirrors found
downloadable mirror found
downloadable mirror found
attempting download from mp4Upload
--2015-04-07 13:27:33-- http://www6.mp4upload.com:182/d/sgxveokgz3b4quuohsubemcscy4l6sq43gt5tgvguibarljupsu4bj3o/video.mp4
Resolving www6.mp4upload.com (www6.mp4upload.com)... 50.7.128.202
Connecting to www6.mp4upload.com (www6.mp4upload.com)|50.7.128.202|:182... connected.
# pacmangame
import turtle
import random
cell_size = 23
width = 11
height = 9
bg_color = "gray" # background color
wall_color = "black"
import json
import urllib
tmp=open("tmp.txt","a")
url = 'https://www.virustotal.com/vtapi/v2/ip-address/report'
parameters = {'ip': '50.7.189.194', 'apikey': '54ea2f1b2adf87f75eb1c8bbf7aefac361e869d66cc7d8d6b70f084c25cf3e2f'}
response = urllib.urlopen('%s?%s' % (url, urllib.urlencode(parameters))).read()
response_dict = json.loads(response)
resp_code=response_dict.get("response_code")
if resp_code==1:
mesg=response_dict.get("verbose_msg")
import os
import requests
from time import asctime,localtime,sleep
import sys
if len(sys.argv)==3:
command=sys.argv[1]
sleeptime=int(sys.argv[2])*60
elif len(sys.argv)==2:
command=sys.argv[1]
sleeptime=30*60 # default 30 mins
@thekindlyone
thekindlyone / output
Created October 2, 2014 08:36
Airplane booking thing
D:\pythonary\chall>python simple.py
Please Enter Name: Aritra Das
Enter class (1 for economy, 2 for business): 1
Booking Successful. Your seat is: B1
A B C D
1 O * O O
2 O O O O
3 O O O O
4 O O O O
Legend =>
@thekindlyone
thekindlyone / output
Created October 2, 2014 08:32
Output of simple.py
D:\pythonary\chall>python simple.py
Please Enter Name: Aritra Das
Enter class (1 for economy, 2 for business): 1
Booking Successful. Your seat is: B1
A B C D
1 O * O O
2 O O O O
3 O O O O
4 O O O O
Legend =>
import base64
print ("Welcome to the encoder of Base64 :3")
print ("Please enter your string that you need to encode :")
rawString = input()
encodedString = base64.b64encode(bytes(rawString,'utf-8'))
print ("Encoded :" + str(encodedString) )