Skip to content

Instantly share code, notes, and snippets.

View Sunil02324's full-sized avatar
🏠
Working from home

Sunil Tatipelly Sunil02324

🏠
Working from home
View GitHub Profile
from __future__ import unicode_literals
import youtube_dl
ydl = youtube_dl.YoutubeDL({'outtmpl': '%(id)s%(ext)s'})
url = raw_input("Give the URL of video which you want to stream? \n")
with ydl:
result = ydl.extract_info(
url,
download=False # We just want to extract the info
)
@Sunil02324
Sunil02324 / Facebook Conversation ID retriever.py
Created November 26, 2016 20:15
Python Script to Retrieve Conversation ID of Facebook from Profile ID
import requests
import json
from time import sleep
http_proxy = "http://10.3.100.207:8080"
https_proxy = "https://10.3.100.207:8080"
proxyDict = {
"http" : http_proxy,
"https" : https_proxy
}
@Sunil02324
Sunil02324 / Facebook Messages Counter.py
Last active November 26, 2016 09:25
Python Script to count the messages in a facebook conversation
import requests
import json
from time import sleep
## We had proxy enabled in our institute. Comment the below lines if not needed.
http_proxy = "http://host:port"
https_proxy = "https://host:port"
proxyDict = {
"http" : http_proxy,
"https" : https_proxy
var form_fill = function() {
var input = {
"confirm_ticket_only": true, //if you want to book only confirmed tickets
"auto_upgrade": true, //if you want to use auto upgradation
"mobile_number": 9876543210, //Mobile number to which notication is to be sent
"persons": [ //details of each adult, max number is 4
{
"name": "Name 1",
"age": 0,
"gender": 1,
@Sunil02324
Sunil02324 / Insta.py
Last active April 2, 2016 21:16
Instagram Image Downloader
from sys import argv
import urllib
from bs4 import BeautifulSoup
import datetime
def ShowHelp():
print 'Insta Image Downloader'
print ''
print 'Usage:'
print 'insta.py [OPTION] [URL]'
@Sunil02324
Sunil02324 / samosa.py
Last active March 3, 2016 22:41
Python Script to Download all Audio Clips and Movie Dialogues from getsamosa.in
import requests
import json
import urllib
import urllib2
import pynotify
from time import sleep
from random import randint
a = []
import urllib, urllib2
def getUrl():
print 'Enter URL of image page: '
url = raw_input()
return url
def getPage(url):
response = urllib2.urlopen(url)
html = response.read()
import requests
import pynotify
import re
from time import sleep
import json
#Fuction to show notification using pynotify in Ubuntu
def popup(title, message):
pynotify.init("Test")
pop = pynotify.Notification(title, message)