
How to Create a Horoscope API with Beautiful Soup and Flask
<p>Have you ever read your horoscope in the newspaper or seen it on television? Well, I'm not sure about other countries, but in my country of India, people still read their horoscopes.</p> <p>And this is where I got the idea for this tutorial. It might sound a bit old-fashioned, but the main focus here is not on the horoscope itself – it's just the vehicle for our learning.</p> <p>In this lab, we're going to scrape a website called <a href="https://www.horoscope.com/us/index.aspx">Horoscope.com</a> using Beautiful Soup and then create our own API using Flask. This API, if deployed on a public server, can then be used by other developers who would wish to create a website to show their horoscope or an app for the same.</p>
5

Virtual Personal Assistant Using Python
<p><span style="background-color: #f1c40f;">In this lab, we'll be creating a virtual personal assistant for ourselves using our favorite programming language, Python. We can perform several offline as well as online operations using the bot.</span></p> <p><span style="background-color: #f1c40f;">Do you remember J.A.R.V.I.S., Tony Stark's virtual personal assistant? I'm sure you do!</span></p> <p><img src="https://res.cloudinary.com/dlomjljb6/image/upload/v1637203906/media/blog/uploads/2021/11/18/juaraveinsy_t0njeo.png" alt="" width="342" height="427" /></p> <p>Have you ever wondered about creating your own personal assistant? Yes? Tony Stark can help us with that! Oops, did you forget he is no more? It's sad that he cannot save us anymore.</p> <p><img src="https://res.cloudinary.com/dlomjljb6/image/upload/v1637204137/media/blog/uploads/2021/11/18/tony-snap2_rv5gmh.jpg" alt="" width="415" height="218" /></p> <p>But hey, your favorite language Python can help you with that. Yes, you heard it right. We can create our own J.A.R.V.I.S. using Python. Let's roll it!</p>
7

How to create a URL Shortener using Flask?
<p>In this lab, we will build a <em>URL shortener</em>, a service that takes any URL and generates a shorter, more readable version like <a href="https://bitly.com/" target="_blank" rel="noopener">bit.ly</a>. For this purpose, we’re going to use Flask. The application will allow users to enter a URL and an optional custom short id and generate a shorter version. </p> <p>Originally posted on my blog: <a href="https://iread.ga/posts/37/url-shortener-using-flask" target="_blank" rel="noopener">https://iread.ga/posts/37/url-shortener-using-flask</a></p> <p> </p>
5

GUI Quiz Application using Tkinter and Open Trivia DB
<p>In this lab, we'll learn to build a <a href="https://en.wikipedia.org/wiki/Graphical_user_interface">Graphical User Interface</a> (GUI) <strong>Quiz Application</strong> using the <a href="https://docs.python.org/3/library/tkinter.html">Tkinter</a> Python built-in module. The task is to ask multiple-choice questions, collect user answers and finally display the results. Before coding the GUI, we'll first see how to fetch multiple-choice questions, their correct answers, and the choices from the <a href="https://opentdb.com/">Open Trivia DB API</a>. The <strong>Open Trivia Database</strong> provides a completely free JSON API for use in programming projects. Use of this API <strong>does not require</strong> an API Key. To make the task more interesting, we'll also randomize the order of choices. </p> <p>The following modules and concepts will be utilized in this project:</p> <ul> <li><a href="https://docs.python.org/3/library/tkinter.html">tkinter module</a></li> <li><a href="https://docs.python.org/3/library/random.html">random module</a></li> <li><a href="https://pypi.org/project/requests/">requests library</a></li> <li><a href="https://docs.python.org/3/tutorial/classes.html">Python Classes</a></li> </ul> <p>We'll be segregating our different functionalities into different classes and files.</p>
3



