![twitter video download using python api twitter video download using python api](https://i.ytimg.com/vi/N20xJwPLTd0/hqdefault.jpg)
Interesting! And very helpful for my task. Probing deeper I saw that it was essentially a tool that queries twitter search engines via the browser using python libraries such as pyquery, urllib, requests, and Lxml. I had a problem to be solved which was to get old tweets programmatically, then I found out about the GetOldTweets-python tool originally developed by Jefferson Henrique in Python version 2.x, and later modified by Dmitri Mottl in Python version 3.x. Thank you Calculator, but the answer is not very helpul. And that was because of Twitter’s rate limits and time constraints using twitter’s API you can not mine tweets older than seven days, similarly, for a single search query, twitter only gives 100 results of the current week. I was soon to discover that going down that road would not be very helpful to my task which was to download twitter data on a specific discourse over the last 10 years, which would then be fed into several pipelines I had built for analysis.
![twitter video download using python api twitter video download using python api](https://i.ytimg.com/vi/dvAurfBB6Jk/maxresdefault.jpg)
I was opportuned to be in a team working on a project recently that was centered on Community Resilience and Studentification, and I needed to download and carry out some analysis on Old/Backdated Twitter data from about 10 years, naively I went about the very standard approach which was first creating a developer account with twitter, and then using Tweepy to query Twitter’s RESTful API in order to download the user tweets with some other meta-data such as retweets, likes, favorites, date and time, username, et cetera.