├── README.md └── TwitterPython.py /README.md: -------------------------------------------------------------------------------- 1 | PythonTwitterApi 2 | ================ 3 | 4 | Python da Tweepy kütüphanesi ile twit atmak ve twitleri görmeye yarayan program. 5 | 6 | Programın çalıştırmak için önce : https://apps.twitter.com/ adresine giderek bir Twitter Api oluşturmalı. 7 | Daha sonra programda * lar ile bos bırkaılmıs yerlere aldıgınız apileri yazmalısınız. 8 | 9 | Daha sonra https://github.com/tweepy/tweepy adresinden tweepy kütüphanesini bilgisayara kurarak programımıza import etmeniz gerekmekte. 10 | 11 | Benım yaptıgımdan daha fazla şeyler yapmak istersenizda http://tweepy.readthedocs.org/en/v3.1.0/ incelemenizi tavsite ederim. 12 | 13 | Programın Ekran Görüntüsü: 14 | 15 | 16 | -------------------------------------------------------------------------------- /TwitterPython.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | import tweepy 5 | 6 | 7 | consumer_key = "**************************************" 8 | consumer_secret = "**************************************" 9 | access_token = "**************************************" 10 | access_token_secret = "**************************************" 11 | 12 | giris = tweepy.OAuthHandler(consumer_key, consumer_secret) 13 | giris.set_access_token(access_token, access_token_secret) 14 | 15 | api = tweepy.API(giris) 16 | 17 | 18 | def twitleriGor(): 19 | twitler = api.home_timeline() 20 | for twit in twitler: 21 | print twit.text 22 | print "**************" 23 | print twit.retweet_count 24 | 25 | 26 | def twitAt(): 27 | twit = raw_input("Twit At>> ") 28 | api.update_status(twit) 29 | 30 | 31 | twitleriGor() 32 | twitAt() 33 | 34 | # KAYNAK 35 | # http://tweepy.readthedocs.org/en/v3.1.0/ 36 | # https://github.com/tweepy/tweepy 37 | --------------------------------------------------------------------------------