Twitter API – Display all tweets with a certain hashtag?

This answer was written in 2010. The API it uses has since been retired. It is kept for historical interest only. Search for it. Make sure include_entities is set to true to get hashtag results. See Tweet Entities Returns 5 mixed results with Twitter.com user IDs plus entities for the term “blue angels”: GET http://search.twitter.com/search.json?q=blue%20angels&rpp=5&include_entities=true&with_twitter_user_id=true&result_type=mixed

Can we get email ID from Twitter oauth API?

This is now possible by filling out a form to request elevated permissions: Go to https://support.twitter.com/forms/platform Select “I need access to special permissions” Enter Application Name and ID. These can be obtained via https://apps.twitter.com/ — the application ID is the numeric part in the browser’s address bar after you click your app. Permissions Request: “Email … Read more

Going from twitter date to Python datetime date

Writing something like this should convert a twitter date to a timestamp. import time ts = time.strftime(‘%Y-%m-%d %H:%M:%S’, time.strptime(tweet[‘created_at’],’%a %b %d %H:%M:%S +0000 %Y’)) UPDATE For Python 3, as per 2020, you can do it in this way: from datetime import datetime # dtime = tweet[‘created_at’] dtime=”Fri Oct 09 10:01:41 +0000 2015″ new_datetime = datetime.strftime(datetime.strptime(dtime,’%a … Read more

Twitter – share button, but with image

Look into twitter cards. The trick is not in the button but rather the page you are sharing. Twitter Cards pull the image from the meta tags similar to facebook sharing. Example: <meta name=”twitter:card” content=”summary_large_image”> <meta name=”twitter:site” content=”@site_username”> <meta name=”twitter:title” content=”Top 10 Things Ever”> <meta name=”twitter:description” content=”Up than 200 characters.”> <meta name=”twitter:creator” content=”@creator_username”> <meta name=”twitter:image” … Read more

Sharing URL to Facebook, Twitter and email in Android?

I don’t know if that’s what you mean but you can use the Android built-in sharing menu… You can share a URL to Facebook, Twitter, Gmail and more (as long as the apps are installed on your device) using Intents: Intent i = new Intent(Intent.ACTION_SEND); i.setType(“text/plain”); i.putExtra(Intent.EXTRA_SUBJECT, “Sharing URL”); i.putExtra(Intent.EXTRA_TEXT, “http://www.url.com”); startActivity(Intent.createChooser(i, “Share URL”)); If … Read more

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