Added twitter api
This commit is contained in:
@@ -3,13 +3,20 @@
|
|||||||
# @Author: KevinMidboe
|
# @Author: KevinMidboe
|
||||||
# @Date: 2017-03-05 13:52:45
|
# @Date: 2017-03-05 13:52:45
|
||||||
# @Last Modified by: KevinMidboe
|
# @Last Modified by: KevinMidboe
|
||||||
# @Last Modified time: 2017-03-05 16:45:31
|
# @Last Modified time: 2017-03-05 16:53:40
|
||||||
|
|
||||||
import sqlite3, json, os
|
import sqlite3, json, os
|
||||||
from re import sub
|
from re import sub
|
||||||
|
|
||||||
dbPath = 'shows.db'
|
dbPath = 'shows.db'
|
||||||
|
|
||||||
|
consumer_key, consumer_secret = 'yvVTrxNtVsLkoHxKWxh4xvgjg', '39OW6Q8fIKDXvTPPCaEJDULcYaHC5XZ3fe7HHCGtdepBKui2jK'
|
||||||
|
access_token, access_token_secret = '3214835117-OXVVLYeqUScRAPMqfVw5hS8NI63zPnWOVK63C5I', 'ClcGnF8vW6DbvgRgjwU6YjDc9f2oxMzOvUAN8kzpsmbcL'
|
||||||
|
|
||||||
|
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
|
||||||
|
auth.set_access_token(access_token, access_token_secret)
|
||||||
|
api = tweepy.API(auth)
|
||||||
|
|
||||||
def unpackEpisodes():
|
def unpackEpisodes():
|
||||||
conn = sqlite3.connect(dbPath)
|
conn = sqlite3.connect(dbPath)
|
||||||
c = conn.cursor()
|
c = conn.cursor()
|
||||||
|
|||||||
Reference in New Issue
Block a user