What does Sex mean in Religion?

When talking about sex in religion, it is considered to be taboo. Something that should never be discussed about and is forbidden. When coming to college perspectives change. When talking about sex…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Simplest Dictionary web app using streamlit and beautifultsoup

Just type the word and get the most common meaning with this simple web app.

Important libraries used:

A few days ago, while attending a workshop on python, I got to know two libraries, Beautiful Soup and Streamlit.

I got the idea that a dictionary can also be created using these libraries. So I started working on the code.

I had three tasks to complete:

Beautiful Soup is a Python library for pulling data out of HTML and XML files. It works with your favourite parser to provide idiomatic ways of navigating, searching, and modifying the parse tree. It commonly saves programmers hours or days of work.

The initial code:

The next task was to convert this small code into a web app. Streamlit is an open-source app framework for Machine Learning and Data Science teams. Create beautiful data apps in hours, not weeks. All in pure Python. You can also add HTML code in the syntax while creating your web app.

To install streamlit, use the following command

pip install streamlit

There are many interesting functions in streamlit. some modifications were made to the original code. However, for this simple project, only the following ones were used:

st.title() : to add a title to the web app

st.subheader() : to add a subheader

st.write() : to display the output

st.sidebar.markdown() : to add a sidebar with markdown text.

To run the app on your local machine, you have to type the following command.

It will open the default browser and run the app. You can also change the look of the app as well. Click on the three bars on the top right corner of the page, then click on the settings. Apply the modifications as per your wish.

Now the two measure tasks were done. It was time to deploy the app on Heroku. Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud. Numerous programming languages are supported on Heroku such as Java, Node.js, Scala, Clojure, Python, PHP, and Go.

Deploying the app is easy but a careful process. Three important files are needed to be created.

web: sh setup.sh && streamlit run app.py

When this is done, the rest of the process is simple. Here are the steps:

At the end of this process, you will get a view app button. Click on it to visit the web app.

Add a comment

Related posts:

Cookies and Iframes

Sounds Familiar? It happened to me some time ago and it took some digging around to understand and diagnose the problem. This kind of scenario used to work without problems but now, with modern…

Developing an Agile Sales Approach

In 2016 we set ourselves the exciting but daunting challenge of merging two teams with different processes, approaches and ways of communicating. Rather than just choose one team’s methodology and…

Citrus Essential Oils

Citrus essential oils are so versatile. They differ from other essential oils in that they are not steam distilled. Here are the facts about how citrus oils are obtained, as well as cautions and…