Avoid Twitter API limitation with Tweepy

For anyone who stumbles upon this on Google, tweepy 3.2+ has additional parameters for the tweepy.api class, in particular: wait_on_rate_limit – Whether or not to automatically wait for rate limits to replenish wait_on_rate_limit_notify – Whether or not to print a notification when Tweepy is waiting for rate limits to replenish Setting these flags to True … Read more

Twitter API – get tweets with specific id

You can access specific tweets by their id with the statuses/show/:id API route. Most Python Twitter libraries follow the exact same patterns, or offer ‘friendly’ names for the methods. For example, Twython offers several show_* methods, including Twython.show_status() that lets you load specific tweets: CONSUMER_KEY = “<consumer key>” CONSUMER_SECRET = “<consumer secret>” OAUTH_TOKEN = “<application … Read more

spannable on android for textView

I want to make the font bold and ıtalic with spannable for this u will need to make o.content text as SpannableString then set it to TextView as : SpannableString spannablecontent=new SpannableString(o.content.toString()); spannablecontent.setSpan(new StyleSpan(android.graphics.Typeface.BOLD_ITALIC), 0,spannablecontent.length(), 0); // set Text here tt.setText(spannablecontent); EDIT : you can also use Html.fromHtml for making text Bold and Italic in … Read more

TWTweetComposeViewController deprecated in IOS6

There’re some change with using Social network between iOS 5 & iOS 6. 1. About library: in iOS 6 we use Social framework instead of Twitter Framework. 2. We use SLComposeViewController instead of TWTweetComposeViewController. 3.Please compare some api with the following code: if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; SLComposeViewControllerCompletionHandler myBlock = ^(SLComposeViewControllerResult result){ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)