Want to quickly get started making an API app that needs a user authentication piece? Let’s take a look at how to do that with FastAPI and Google Firebase in this tutorial. FastAPI is a new Python framework to facilitate the creation of APIs. Google Firebase Authentication is Google Cloud Platform’s authentication tool. It’s similarContinue reading “Python Firebase Authentication Integration with FastAPI”
Category Archives: APIs
Can Twitter Sentiment/Data Predict NFL Games? Week 16 2021
I’ve been writing about how Twitter Sentiment affects NFL Games for a few weeks on Medium now. It’s been quite an interesting dataset. My initial hypothesis going into this was that teams with higher pregame Twitter sentiment would win. I was shown wrong in the first 5 games I analyzed. From weeks 12 to 15,Continue reading “Can Twitter Sentiment/Data Predict NFL Games? Week 16 2021”
Using NLP to Get Insights from Twitter
I’m interested in analyzing the Tweets of a bunch of famous people so I can learn from them. I’ve built a program that will do this by pulling a list of recent tweets and doing some NLP on them. In this post we’re going to go over: Get all the Text for a Search TermContinue reading “Using NLP to Get Insights from Twitter”
Send API Requests Asynchronously in Python
Sending HTTP API requests in Python is simple. We can just use the requests library like we do in so many examples such as when we built our AI Content Moderation System, explored NLP libraries in Python, and Summarized November 2021 in Headlines. What if we could do it faster though? Using asyncio and aiohttp,Continue reading “Send API Requests Asynchronously in Python”
Scrape the Text from All Tweets for a Search Term
Twitter is such a treasure trove of interesting information. Recently, I’ve been using Twitter sentiment to predict NFL games. We can also see if we can use Twitter sentiment to predict the stock market. In this post, we’re going to go over how you can get all of the text from the last 100 TweetsContinue reading “Scrape the Text from All Tweets for a Search Term”
Ask NLP: The Media’s Portrayal of Obama Part 1
Recently, I’ve been playing with the NY Times Archived Headlines. As part of a series on exploring news headlines, I am also exploring how the news portrays presidents. While Joe Biden may be president now, I thought it would be apt to start with the internet’s favorite president, Barack Obama. In the recent post aboutContinue reading “Ask NLP: The Media’s Portrayal of Obama Part 1”
A Python Guide to the NY Times Movie Review Search
A while ago I wrote an article on How to Download Archived News Headlines using the NY Times API. In this post, we’re going to go over how to use the Movie Reviews API from the NY Times to pull movie review articles. The only non-native Python library you’ll need for this is the requestsContinue reading “A Python Guide to the NY Times Movie Review Search”
Twitter Sentiment for Stocks? Starbucks Week of 11/29/21
Starting last week, I began playing around with the Twitter API. I wrote an article on using it to analyze the general public’s sentiment on Black Friday. Analyzing the sentiment on Black Friday was cool, but had no real practical value to it. Personally, I’m interested in stocks so I wondered to myself, can TwitterContinue reading “Twitter Sentiment for Stocks? Starbucks Week of 11/29/21”
Search Twitter from Your Command Line with Python
Recently I was curious to see Twitter’s sentiment on Black Friday. It turns out, so was much of the internet, as I got hundreds of views on my post within hours. In this post, we’re going to walk through how you can search Twitter from your command line with Python. To follow this tutorial, you’llContinue reading “Search Twitter from Your Command Line with Python”
Summarized by AI: November 2021 in Headlines
In early November, we covered October in Headlines. Now that it’s December, let’s see what November was like in the NY Times headlines. To learn how to do this yourself, you can check out How to Build a Text Summarizer in Python. First, I’m going to show you the actual headlines the AI summarizer picked.Continue reading “Summarized by AI: November 2021 in Headlines”