Skip to content →

Tag: API

Twitter in Economic Research (updated)

Introduction The purpose of this blog post is to provide information and examples for getting Twitter data for academic research. Specifically, I describe how to collect tweets according to specific criteria via the Twitter API using the Python library tweepy. The goal is to use tweepy for retrieving specific tweets and their properties (such as length, number of retweets, number of likes) for a specific hashtag. A comprehensive overview for the tweepy package describing all the functionality is given in the tweepy documentation. Finally, a few examples in an economic framework are given for the application of this kind of analysis. Access…

Leave a Comment

Privacy Preference Center

Necessary

Cookies that are necessary for the site to function properly.

gdpr, PHPSESSID

Advertising

Analytics

These are used to track user interaction and detect potential problems. These cookies help to improve services by providing analytical data on how users use this site.

_ga, _gid, _gat, NID

Other