This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def testvivek(): | |
i=0 | |
sum=0 | |
giveup3=0 | |
giveup5=0 | |
lim=1000 | |
while True: | |
num3=3*i #generating multiples for processing | |
num5=5*i # ^ | |
if num3>=lim: # if multiple of 3>limit then stop adding those, and set flag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i=0 | |
sum=0 | |
giveup3=0 | |
giveup5=0 | |
lim=1000 | |
while True: | |
num3=3*i #generating multiples for processing | |
num5=5*i # ^ | |
if num3>=lim: # if multiple of 3>limit then stop adding those, and set flag | |
giveup3=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import pythoncom, pyHook | |
import win32api | |
import subprocess | |
import ctypes | |
import threading | |
from multiprocessing import * | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
from sleekxmpp import ClientXMPP | |
from sleekxmpp.exceptions import IqError, IqTimeout | |
import subprocess | |
import smtplib | |
import mimetypes | |
import email | |
import email.mime.application | |
import thread | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pacmangame | |
import turtle | |
import random | |
cell_size = 23 | |
width = 11 | |
height = 9 | |
bg_color = "gray" # background color | |
wall_color = "black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
NewerOlder