Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nirvik on github.
  • I am ghosh (https://keybase.io/ghosh) on keybase.
  • I have a public key ASCgnVgnJVYDTwnYhsqhILyRIbexc7uwWjQSyX9zluTBHQo

To claim this, I am signing this object:

@nirvik
nirvik / networking.py
Created April 14, 2015 14:02
Networking Module for Snek
import socket
import pickle
import threading
import time
class Pipes(socket.socket):
def __init__(self,event,host,port):
super(Pipes,self).__init__(socket.AF_INET,socket.SOCK_DGRAM)
self.bind((host,port))
@nirvik
nirvik / RembookScraper.py
Created March 28, 2015 09:12
Get all the comments from rembook.nitt.edu
import requests
from BeautifulSoup import BeautifulSoup as bs
import re
payload = {'username' : '' , 'password': '' ,'login': 'Log In'}
container = { }
base_url = 'http://rembook.nitt.edu/home/'
session = requests.session()
r = session.post("http://rembook.nitt.edu/home/login", data=payload)