Skip to content

Instantly share code, notes, and snippets.

View arulrajnet's full-sized avatar

Arul arulrajnet

View GitHub Profile
@arulrajnet
arulrajnet / Url2Image.py
Created April 27, 2014 04:50
Generate image of the webpage by just passing the url to this python program.
import sys
import time
import argparse
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
__author__ = 'Arul'
class ImageOption():
@arulrajnet
arulrajnet / BabycenterFLVDownloader.py
Last active August 29, 2015 14:06
Simple Python downloader Babycenter Labour classes / child birth classes videos from http://www.babycenter.com/childbirth-class
__author__ = 'arul'
"""
Baby center child birth video classes downloader
"""
def download_file(__url__):
import urllib2
try:
__content__ = urllib2.urlopen(__url__).read()
@arulrajnet
arulrajnet / TutsplusVideoDownloader.py
Created October 2, 2014 09:47
Script to download course videos from https://tutsplus.com
from bs4 import BeautifulSoup
from lxml import html
from urllib2 import urlopen, Request, HTTPError, URLError
import urllib2
import urllib
import urlparse
import json
import os
__author__ = 'arul'
@arulrajnet
arulrajnet / LoggerExample.java
Last active August 29, 2015 14:07
SLF4J with logback. Configuration, pom and example file to catch your dependencies logs also. Different log file for to catch error only
package com.github.gist;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggerExample {
public static void main(String[] args) {
Logger log = LoggerFactory.getLogger(LoggerExample.class);
log.debug("You are in main");
}
}
@arulrajnet
arulrajnet / apkdl.sh
Last active December 13, 2023 20:33
Script to download apk file from Google Play a.k.a Android Market.
#!/bin/bash
#
# Script to download apk file from Google Play a.k.a Android Market.
# Accepts package name or Google Play URL as input.
# Files are download from apk-dl.com
# author : Arul (@arulrajnet)
#
APK_DL_URL="http://apk-dl.com/store/apps/details?id=%s"
PACKAGE_NAME=""
@arulrajnet
arulrajnet / EmailVerifier.py
Last active October 2, 2018 02:28
Its to verify email address whether is real or not. Getting the information from http://verify-email.org/. They allow you 5 search per hour based on your IP. So Use proxy network or rotating your IP using TOR.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'arul'
"""
program to verify email address from http://verify-email.org/
"""
import requests
@arulrajnet
arulrajnet / ChromeAppDownloader.py
Last active February 15, 2024 01:06
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
# -*- coding: utf-8 -*-
"""
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
Referred from http://chrome-extension-downloader.com/how-does-it-work.php
"""
from __future__ import division
import argparse
import requests
@arulrajnet
arulrajnet / MXEmailVerifier.py
Last active May 25, 2023 14:23
Verify the given mail id is valid or not, without sending mail. Verifying the email id directly from mail exchange server.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Verify the given mail id is valid or not without sending mail. Verifying the email id directly from mail exchange server.
"""
import argparse
import smtplib
import dns.resolver
@arulrajnet
arulrajnet / tweets_dumper.py
Created January 4, 2015 18:08
Dump all tweets as CSV of given twitter handle using #Tweepy https://github.com/tweepy/tweepy
# -*- coding: utf-8 -*-
import tweepy # https://github.com/tweepy/tweepy
import json
import csv
import sys
# Twitter API credentials
consumer_key = "your_consumer_key"
consumer_secret = "your_consumer_secret"
@arulrajnet
arulrajnet / livecricketscore.sh
Last active January 29, 2020 04:32
Shell script to get a Live cricket score from www.espncricinfo.com. Just run this shellscript then select your match. when ever you want to know score open that terminal and see. Just simple as Dhoni's helicopter shot :D
#/bin/bash
# Shell script to get a Live cricket score from www.espncricinfo.com
# To help Cricket fan DevOPS see the score on his Terminal.
# Thanks to ESPN SPORTS MEDIA LTD for their RSS feed.
#
# Author : Arul <mailto:me@arulraj.net>
function get_html() {
local html=$(curl -k -L -s $1)
echo "$html"