/media/sda-magnetic/david/Dokumente-14/linux/mypython/mysupertest4.py


#!/usr/bin/python2
# -*- coding: utf-8 -*-

import tweepy

APP_KEY = "IL2cl4l0utXc1aStFKvZNkS0F"
APP_SECRET = "JtGkcWmyzQDWVpiVeM9mFUWSAYqjAux4z6p4qUVoSVuLuJlFps"
OAUTH_TOKEN = "1206083934603431936-fZ9vf2mVrNaIW04DoPBKMcb3Vcd1Op"
OAUTH_TOKEN_SECRET="TSlorK1nYa9LYfA2UIgvObX4tv9m50kKv2o2H4abhWQPY"

import tweepy

# Authenticate to Twitter
auth = tweepy.OAuthHandler(APP_KEY, APP_SECRET)
auth.set_access_token(OAUTH_TOKEN, OAUTH_TOKEN_SECRET)

# Create API object
api = tweepy.API(auth)

screen_name=""
#timeline = api.user_timeline(, count = 550)
timeline = api.user_timeline(screen_name=screen_name, count = 550, include_rts = False)
for tweet in timeline:
    print(f"{tweet.user.name} said {tweet.text}")
    api.destroy_status(tweet.id)