Core_twitter: A wrapper for the Python package Tweepy to interface with the Twitter API
Oct. 2015-
If you want to access the Twitter API through MATLAB, this code will help you do it. Further, this code was added to the MATLAB File Exchange (MFE) for everyone who has had trouble with the popular "twitty". Too often files found on the MFE are deprecated. This file will likely suffer the same fate, but I think it will remain robust for a while, because it is merely a wrapper for a well maintained Python package called Tweepy.
The object that is created by Core_twitter.m has only a single method, which can be used to update a user's Twitter status. However, Tweepy has much more functionality, which can be accessed through the API property of the Core_twitter object. Visit the Tweepy API github page to learn more about the many methods it contains and take a look at the Core_twitter.m to see an example of how Python and MATLAB are used together in the update_status method. The file has only a dozen lines of pertinent code, so be bold!
Please note, a compromise in using a Python package is that data structures returned by the Tweepy API are Python types, so some massaging is required to convert this data into standard MATLAB data types.
Citation pour cette source
Kyle (2024). Core_twitter: A wrapper for the Python package Tweepy to interface with the Twitter API (https://www.mathworks.com/matlabcentral/fileexchange/53691-core_twitter-a-wrapper-for-the-python-package-tweepy-to-interface-with-the-twitter-api), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Application Deployment > MATLAB Compiler SDK > Python Package Integration >
- MATLAB > External Language Interfaces > Python with MATLAB > Call Python from MATLAB >
- MATLAB > External Language Interfaces > Other languages > Twitter >
Tags
Remerciements
Inspiré par : twitty
A inspiré : Core_jsonparser: Import and Export JSON files using MATLAB
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.1.0 | Added a "readme" type file to better understand how to setup Python and MATLAB together for Twitter. |
||
1.0.0.0 |