Skip to content

Instantly share code, notes, and snippets.

View nirholas's full-sized avatar
🎧
🛹

nich nirholas

🎧
🛹
View GitHub Profile
@nirholas
nirholas / twitter_reply.py
Created June 12, 2020 21:07
Get-Tweet-Replies-With-Python-Tweepy Extract Replies to a Specific Tweet using Python and Tweepy I was searching for an easy way to extract the replies of a certain tweet. After no success searching open-source code I decided to try this, and it works! You will want to have a Twitter Developer account and you will need to add your keys within th…
import csv
import tweepy
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
# Oauth keys
consumer_key = "XXX"
consumer_secret = "XXX"
access_token = "XXX"
import urllib.request
import ssl
import json
import time
import tweepy
ssl._create_default_https_context = ssl._create_unverified_context
# Oauth keys
import tweepy
# Consumer keys and access tokens, used for OAuth
consumer_key = 'XXX'
consumer_secret = 'XXX'
access_token = 'XXX'
access_token_secret = 'XXX'
# OAuth process, using the keys and tokens
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
import urllib.request
import ssl
import json
import time
import tweepy
ssl._create_default_https_context = ssl._create_unverified_context