Skip to content

Instantly share code, notes, and snippets.

View amar061996's full-sized avatar

Amar Prakash amar061996

  • Bangalore,Karnataka
View GitHub Profile
@amar061996
amar061996 / app_.gitignore
Created February 23, 2016 23:03
App to store Assignment Details for Reminder
/build
@amar061996
amar061996 / app_.gitignore
Created February 22, 2016 22:20
Basic Navigation Drawer
/build
@amar061996
amar061996 / sentiment_analysis.py
Last active February 21, 2016 20:17
Sentiment Analysis of tweets streaming on twitter related to the users Entry.
import tweepy
from tweepy import OAuthHandler
from tweepy import Stream
from tweepy.streaming import StreamListener
from textblob import TextBlob
import io
consumer_key='Your Consumer Key'
consumer_secret='Your Consumer Secret'
@amar061996
amar061996 / gmail_mail.py
Created February 20, 2016 14:19
bot to log into gmail account and compose and send mail using selenium webdriver
from selenium import webdriver
def send_mail(username,password,to,subject,text):
url="https://mail.google.com"
br=webdriver.Firefox()
br.get(url)
@amar061996
amar061996 / twitter_user.py
Last active September 18, 2016 18:43
Extracts desired number of tweets from any user on twitter whose twitter username is provided
import tweepy
from tweepy import OAuthHandler
import io
def twitter_user(username,num):
fw=io.open("twitter_user.txt",'a',encoding='utf8')
ckey='Your Consumer Key'
csecrett='Your Consumer Secret'
atoken='Your Access Token'
@amar061996
amar061996 / fackebook_login_bot.py
Created February 18, 2016 21:03
Login to facebook and update the desired status
from selenium import webdriver
br=webdriver.Firefox()
br.get("https://www.facebook.com/login/")
def login(username,password): #Login function
email=br.find_element_by_id("email")
pw=br.find_element_by_id("pass")
email.clear()
pw.clear()