<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Openime Oniagbi on Medium]]></title>
        <description><![CDATA[Stories by Openime Oniagbi on Medium]]></description>
        <link>https://medium.com/@oniagbi?source=rss-f8d919d29fbc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m3VsnhyEGkaHEnX8yEXqbw.jpeg</url>
            <title>Stories by Openime Oniagbi on Medium</title>
            <link>https://medium.com/@oniagbi?source=rss-f8d919d29fbc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:00:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oniagbi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I built “IMDB” for my partner and me using Python’s Streamlit]]></title>
            <link>https://medium.com/@oniagbi/i-built-imdb-for-my-partner-and-me-using-pythons-streamlit-f6699e367394?source=rss-f8d919d29fbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6699e367394</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[streamlit]]></category>
            <category><![CDATA[tv-shows]]></category>
            <dc:creator><![CDATA[Openime Oniagbi]]></dc:creator>
            <pubDate>Fri, 15 Mar 2024 11:23:29 GMT</pubDate>
            <atom:updated>2024-03-15T11:23:29.597Z</atom:updated>
            <content:encoded><![CDATA[<p>This story started two years ago when my partner and I started competing against each other over who could recommend the best shows. The rules of this competition are simple, one of us recommends a show, we watch it together and the other person scores the show on a scale of 1–10.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZtOMiVv-wmBdxA0M12C05Q.jpeg" /><figcaption>The game in a notebook</figcaption></figure><p>Fast forward a couple of years to 2023 and we’ve seen close to 50 TV shows together and now use pages in a notebook to track the TV shows and scores. Awesome times! Anyway, this is around the same time I decided to take a Python course on Udemy because I wanted to upskill and ensure I knew enough about software development to be a more competent security engineer. During the course, I decided I was going to build a small project to practice what I had learned. I chose to turn our little notebook TV show game into a web application!</p><p>During the Python course, I decided to use Streamlit. It was introduced during the course and it seemed like the perfect platform for demonstrating small ideas. Furthermore, since this application was only going to be for my partner and me, I imagined there wouldn’t be much need for object-oriented programming (OOP).</p><p>The next decision was what features I wanted the application to have. I knew I wanted:</p><ul><li>Features that allowed us to add TV shows and their scores. This was the basic use of the notebook.</li><li>To use the scores to calculate the sum and average score for each of us to know who was winning (Not that I had any chance of winning). This part seemed easy.</li><li>To display the TV shows and the scores with full-on posters. I guessed I would need an API for this and was correct.</li><li>A recommendation system that suggested TV shows we would like based on the ones we had already watched and given high scores.</li><li>A general recommendation system for TV shows in case we wanted to find something new to watch. I wanted anyone to be able to use this also, not just us.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U6f4rIg_zo33UTIe8hfXYA.jpeg" /></figure><p>After my course, I got to build the web application. It took me two months because I was working two hours on weekdays after closing from work but I was elated when I finally completed it and it worked (as best I could get it to work, lol).</p><h4>The Homepage</h4><p>At the start of the project, I wanted the homepage to show a summary of the scores, which would be the average scores for my partner and me. After a while, I realized that the functionality to add TV shows would also be best placed on the homepage. However, I didn’t want that functionality to crowd the space on the homepage, so I settled on using Streamlit’s st.expander and nested a form inside it. I generated the avatars from Krzysztof Ebert’s <a href="https://stan-leigh-avatar-maker-app-avatar-app-4f6sov.streamlit.app/">Avatar Maker</a> to keep the interface simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j14-MIcfZ7tgTSx2Kg2Twg.png" /><figcaption>The homepage</figcaption></figure><h4>The TV Show pages</h4><p>Copying the notebook’s functionality, I wanted to have separate pages for our TV shows. I imagined that if I used a table, then it would make the interface clunky when I added the posters for the TV shows. As you can guess, I wanted to add those posters. Firstly because of aesthetics, and secondly because I wanted to work with external APIs. To get all of this to work, I decided to save the TV shows to separate CSVs for me and my partner, then using <a href="https://www.kaggle.com/datasets/asaniczka/full-tmdb-tv-shows-dataset-2023-150k-shows">TMDB’s dataset</a>, I wrote functions to get and save the image URLs. Why save the URLs? Well, the pages with the TV show images were taking minutes to load at the beginning, because of the repeated API calls. So, by saving those URLs, I could program the logic that allowed the web application to check the CSVs before making unnecessary API calls. Also, because I reused these functions on multiple pages, I decided to add them to a functions.py file and import them from there. The main issue I encountered in these pages was displaying the TV shows in columns without running into errors. After much Googling and Stack Overflowing, I settled on a combination of a while loop and a function. The while loop helped me add new rows of TV shows and ensured they all maintained five columns. I don’t know if there is a more elegant solution but this is the only one that worked for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_PoswTeahI1yViCb3CGz_Q.png" /><figcaption>TV shows page 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5PEyB8yc34qU2iuOWxN1Q.png" /><figcaption>TV shows page 2</figcaption></figure><h4>TV show recommendation system</h4><p>The last and hardest part was building the recommendation system. The Python course introduced me to content-based, collaborative-based, and popularity-based filtering in movie recommendation systems. Due to the kind of data I had in the dataset (linked above), I decided to use a content-based recommendation system that utilized multiple inputs to generate the recommendations. The course used the movie overview as the metric, but I was always asking myself if it was possible to combine multiple attributes. After much Googling, Stack Overflowing, a bit of ChatGPT, and multiple rounds of tests, I settled on a system that uses the genres, networks, and overview of TV shows to recommend similar shows. I used the system in two pages. The first page combines our top shows (shows we scored an 8.5 or higher) and recommends similar shows that we might enjoy. The second page lets users select a TV show on the list and get recommendations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_m0lVYunQ9vlBdPUquP0DA.png" /><figcaption>Recommended shows for us</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_RkQBln4gave1oPXA7Tzw.png" /><figcaption>Recommended shows for Game of Thrones</figcaption></figure><h4>Conclusion</h4><p>The most important experience from this project was how most of the features I added required a learning curve. Generally, if I wanted to add something to the application, it required me to learn and figure out how to integrate it into what I had built already. Sometimes, I had to change the initial code to fit in the new feature. This was an awesome experience and in the future, I hope to build things that are useful to more people than just my partner and me. Also, she says I must acknowledge that she was involved in this project. So, yes, she was!</p><p>There is a lot of code and smaller features that I haven’t discussed in this post but you can find the full code on <a href="https://github.com/ooniagbi/TVShowScoresApp">GitHub</a>, and I have also deployed a mini version containing just a few of our TV shows on <a href="https://onetvshows.streamlit.app/">Streamlit</a>. I’m open to ideas that can optimize the code and future project ideas!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6699e367394" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Buju, Mayorkun and The Disadvantage of Expectation]]></title>
            <link>https://medium.com/@oniagbi/buju-mayorkun-and-the-disadvantage-of-expectation-6b7a0d476b96?source=rss-f8d919d29fbc------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b7a0d476b96</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[album-review]]></category>
            <dc:creator><![CDATA[Openime Oniagbi]]></dc:creator>
            <pubDate>Sat, 30 Oct 2021 04:08:45 GMT</pubDate>
            <atom:updated>2024-03-12T11:07:37.672Z</atom:updated>
            <content:encoded><![CDATA[<p>Music and the music industry is a poor sample space to learn life lessons primarily because everything in that industry is usually exaggerated and different from what we have in the world of collared jobs. Successful musicians live a life so lavish that most “normal” people can only dream of, add the unconventional work hours, non-reliance on a monthly salary, ability to travel freely and you catch my drift; musicians live an exclusive life which makes learning life lessons from such a divergent lifestyle seem counterintuitive but that’s what I’ve chosen to do with hopefully, most of my Medium posts (or whatever it is Medium posts are called, Meets? Mosts?). Anyways, back to office, picture one of the biggest Nigerian artists releases an album and the best song on the album, ironically titled “The Best” has you on it and you’re arguably pretty much the shining light of that song. Fast forward to a year later, you release a single that charts Top 10 in Nigeria after which you announce your album, what do you think people’s reaction to that will be? Expectation. Positive Expectation. If we’re being honest, that is not really a bad thing. Okay, you can stop picturing now, this actually happened and it happened to Mayorkun, self-acclaimed Mayor of Lagos. Well done sir.</p><p>The positive expectation for Mayorkun’s album wasn’t unfounded. It was based on all the great work he’d done in the past year and seeing as he’s not exactly the biggest act out of Nigeria, or A-list yet, the expectation was this album would propel him into that sphere. Cue the sound of a balloon deflating. His album lacked both substance or catchy melodies. At least, he’s been known for having the latter. Granted, the album is a day old when I write this but the reactions can be summed up in one word, disappointment. Why are people disappointed? Because expectations.</p><p>Enter Buju, the real Bad and Buju. He really should name one of his albums that, at least I would if I had a stage name that cool. Anyways, Buju is arguably Nigerians hottest artist this year. Everything he has touched has turned gold. From features with Blaqbonez, Ladipoe, Timaya to his own singles like Outside and Testimony and you have pretty much Nigeria’s hottest artist. So when he announces an EP, what do you think the reaction will be? I know, I know, we’ve played this game before. The answer is expectation. Positive expectation. However, just like Mayorkun, the reaction to his project hasn’t been entirely positive. A little mixed if I’m being honest but still not the overwhelming positivity that was surrounding him before the drop. Personally, I think the EP is good. Ogechukwu, one of the best Nigerian songs I’ve heard this year, features The Cavemen. and is worth checking out. I believe most people haven’t loved the album because we’ve heard Buju sing most of the songs on that album already, and better. Quite simply, the content is same old Buju which is ironic since he’s supposed to be an upcoming artist but is it possible he’s oversaturated the market with his sound?</p><p>Expectation is a double-edged sword and like Joeboy’s single Alcohol, and Fireboy’s Peru and The Cavemen.’s new album proves, sometimes people love what they don’t expect. If expectation is the mother of disappointment, then maybe surprise is the path to endearment? Aren’t the albums we love more the ones we didn’t expect to even like? Aren’t the people we love now the same ones we really hated in the beginning?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b7a0d476b96" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>