Sentiment Analysis for Stock Price Prediction in Python
Now we have our API set up; we can begin pulling tweet data. We will focus on Tesla for this article. We will be using the requests library to interact with the Twitter API. We can search for the most recent tweets given a query through the /tweets/search/recent endpoint. We need two more parts before sending our request, (1) authorization and (2) a search query.
Dec-5-2020, 04:10:32 GMT