import tweepy
import app_config

# Twitter API configuration
consumer_key = app_config.twitter["consumer_key"]
consumer_secret = app_config.twitter["consumer_secret"]

access_token = app_config.twitter["access_token"]
access_token_secret = app_config.twitter["access_token_secret"]

# Start
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth)

followers = api.followers(count=200)
for follower in followers:
    print follower.screen_name
import tweepy
import json
import unicodedata
import sqlite3

import app_config
import definitions

API_launch()

followers_list(followers_name[1])

create_db()

create_table()

tweet_info(followers_name[1],tweets_number=100)

Update Main.py to work with definitions.py
Update Main.py to work with definitions.py

functions are loaded from definitions.py and the database can be created without modifying functions
  import tweepy
+ import json
+ import unicodedata
+ import sqlite3
+ 
  import app_config
+ import definitions
  
+ API_launch()
- # Twitter API configuration
- consumer_key = app_config.twitter["consumer_key"]
- consumer_secret = app_config.twitter["consumer_secret"]
  
+ followers_list(followers_name[1])
- access_token = app_config.twitter["access_token"]
- access_token_secret = app_config.twitter["access_token_secret"]
  
+ create_db()
- # Start
- auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
- auth.set_access_token(access_token, access_token_secret)
  
- api = tweepy.API(auth)
+ create_table()
  
+ tweet_info(followers_name[1],tweets_number=100)
+ 
- followers = api.followers(count=200)
- for follower in followers:
-     print follower.screen_name
Update Main.py to work with definitions.py
## Code Before:
import tweepy
import app_config

# Twitter API configuration
consumer_key = app_config.twitter["consumer_key"]
consumer_secret = app_config.twitter["consumer_secret"]

access_token = app_config.twitter["access_token"]
access_token_secret = app_config.twitter["access_token_secret"]

# Start
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth)

followers = api.followers(count=200)
for follower in followers:
    print follower.screen_name
## Instruction:
Update Main.py to work with definitions.py
## Code After:
import tweepy
import json
import unicodedata
import sqlite3

import app_config
import definitions

API_launch()

followers_list(followers_name[1])

create_db()

create_table()

tweet_info(followers_name[1],tweets_number=100)
