Skip to content

Instantly share code, notes, and snippets.

@bhanuraja
bhanuraja / MainActivity.java
Created May 31, 2019 11:40
Chegg question skipping android
package com.example.myapp;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.CountDownTimer;
import android.os.StrictMode;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
@bhanuraja
bhanuraja / demo.py
Last active September 11, 2019 09:17
Chegg question skipping
import requests
import time
# from quickstart import start,create_message,send_message
# service = start()
# message = create_message('me','bsureshjnv@gmail.com','chegg','Found question')
data = {'clientId':'CHGG','email':'darshanpriya0@gmail.com','password':'Trivial!123'}
url = 'https://www.chegg.com/auth/_ajax/auth/v1/login?clientId=CHGG'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
'Host':'www.chegg.com',
'DNT':'1'}
@bhanuraja
bhanuraja / merge.py
Last active June 2, 2019 15:37
Python script for merging PDF files using PyPDF2
import os
import re
from PyPDF2 import PdfFileMerger
loc = r"C:\Users\Bhanuraja\Downloads\Compressed\java"
merger = PdfFileMerger()
# get the list of all files in the specified directory
a = os.listdir(loc)
b = []
for a in os.listdir(loc):
if a.endswith('.pdf')&(a!='output.pdf'):