Skip to content

Instantly share code, notes, and snippets.

View aditideokar93's full-sized avatar

Aditi Deokar aditideokar93

View GitHub Profile
@aditideokar93
aditideokar93 / realtimeDataCollection.py
Last active May 13, 2020 22:19
Python code to fetch Twitter streaming data
__author__= "Aditi Deokar"
import os
import tweepy
from datetime import datetime
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import json
from http.client import IncompleteRead
@aditideokar93
aditideokar93 / GetOldTweets3_Collection.py
Last active June 26, 2020 20:45
Fetch older tweets using GetOldTweets3 package
__author__ = "Aditi Deokar"
"""
The Python code below makes use of GetOldTweets3 Package to collect older tweets
"""
import time
import pandas as pd
import GetOldTweets3 as got
#list of column names
@aditideokar93
aditideokar93 / fetch_tweetids_snscrape.py
Created May 14, 2020 02:06
Fetch tweetids using snscrape
__author__ = "Aditi Doekar"
import os
politicians=['SpeakerPelosi','SenatorMenendez','SenStabenow','SenatorTester','SenWhitehouse','SenatorDurbin']
for speaker in politicians:
os.system("snscrape --max-results 700 twitter-user "+speaker+" >D:\sns_scraper_tweet_recovery\\tweet_ids\\twitter-"+speaker)
"""
sample filename= twitter-SpeakerPelosi.txt
@aditideokar93
aditideokar93 / collect_data_using_tweetids.py
Created May 14, 2020 02:17
Fetch data using get_status() method based on tweetids
__author__ = "Aditi Deokar"
import time
import pandas as pd
import tweepy
import os
from tweepy import OAuthHandler
# authorize the app to access Twitter Streaming API
access_token = "ENTER YOUR ACCESS TOKEN"
@aditideokar93
aditideokar93 / README.md
Created May 23, 2020 04:29 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.