In [2]:
import praw

ci ="vyRCFHr35LLQZw"
secret = "GaZkaIYPYdJ-OG7qdjVfqg_fPDY"

reddit = praw.Reddit(client_id='my client id',
                     client_secret='my client secret',
                     user_agent='my user agent')

In [3]:
print(reddit.read_only)


True

In [15]:
import twitter

key='HxC75XpsCm7ZASuxlROfneTP8'
secret='ps108XgQ8fKl1o1SP0ATFN9WqXXFyaD8SjJn6e0Gy08pp2otOi'
token='364418406-qukuwMb8INFBu6O5B4n6NADa7v771O0ERu2Y9xaq'
token_secret='xmgtzf0LW73c4n35CUfw7SUK2xy3aJ18DxlMqb7iYDzRN'

api = twitter.Api(consumer_key=key,
                      consumer_secret=secret,
                      access_token_key=token,
                      access_token_secret=token_secret)

In [64]:
rq="q=boris%20sadkhin%20since%3A2010-08-10%20until%3A2017-08-16&src=typd"

searches = api.GetSearch(term="sadkhin", raw_query=None, geocode=None, since_id=None, max_id=None, until=None, since=None, count=15, lang=None, locale=None, result_type='mixed', include_entities=None)


first_status = searches[0]

In [74]:
import json


json1_data = json.loads(first_status.AsJsonString())

for data in json1_data:
    print(data,"\t",json1_data[data])
    
print (json1_data['user']['name'])


created_at 	 Thu Aug 17 17:33:39 +0000 2017
favorite_count 	 26
hashtags 	 []
id 	 898236394027589632
id_str 	 898236394027589632
lang 	 und
retweet_count 	 10
source 	 <a href="http://www.facebook.com/twitter" rel="nofollow">Facebook</a>
text 	 https://t.co/XT08xa9QHd
urls 	 [{'expanded_url': 'http://fb.me/1BMFVvTs7', 'url': 'https://t.co/XT08xa9QHd'}]
user 	 {'created_at': 'Sun Jul 24 14:07:02 +0000 2011', 'description': 'Fast & Effective Approach to #WeightLoss! Visit one of our #clinics @ #Brooklyn, #Manhattan, and #Queens', 'favourites_count': 22, 'followers_count': 2357, 'friends_count': 38, 'geo_enabled': True, 'id': 341517551, 'lang': 'en', 'listed_count': 1, 'location': 'Brooklyn, Queens, Manhattan', 'name': 'SadkhinComplex', 'profile_background_color': 'C0DEED', 'profile_background_image_url': 'http://pbs.twimg.com/profile_background_images/564919557299531776/QJXGpn4R.jpeg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/341517551/1423522410', 'profile_image_url': 'http://pbs.twimg.com/profile_images/564875376019533824/y5Y1Ps5d_normal.png', 'profile_link_color': '0084B4', 'profile_sidebar_fill_color': 'DDEEF6', 'profile_text_color': '333333', 'screen_name': 'Sadkhin_Complex', 'statuses_count': 1269, 'time_zone': 'Eastern Time (US & Canada)', 'url': 'http://t.co/Zp6SrJHdmV', 'utc_offset': -14400}
user_mentions 	 []
SadkhinComplex