Search code examples
twittertweepy

Licensed API for twitter


Right now I'm using a free API called tweepy in Python to download tweets from twitter with a particular hashtag within a timeframe.

Mainly two problems I'm facing in tweepy:

  1. It doesn't download an media files and just provides a link for it within that tweet
  2. It doesn't download tweets that doesn't have text in them. (except the hashtag)

So, I was wondering if I use a licensed API (please recommend if any in mind) then will it download each and every tweet with that hashtag and within that timeline.


Solution

  • Tweepy is a Python library that provides an interface to the Twitter API. Twitter has an API itself; Tweepy is a Python way of talking to the Twitter API.

    The Twitter API only provides links to images and media. It is down to your own code to download the actual content. Tweepy doesn’t make any difference here. You will need to adapt your code to grab any media content from any URL in the Tweet object.

    It doesn't download tweets that doesn't have text in them. (except the hashtag)

    I do not know what this means. Tweepy as a library does not download anything at all. It requests information from the Twitter API. You need to write code to download anything you want to keep.