Step-by-Step Procedure to Fetch Data, Create a Bio, and Generate a Website#
The following file has been created with a single prompt in ChatGPT
Describe a step by step procedure of how I can fetch data about a famous person. Make their simple bio with some nice details and structure and use this with ChatGPT to generate a website about this person.
I want you to show how to create a Markdown file and then convert it using Pandoc to HTML. You can also add how to generate directly HTML file with nice styling. Make this into a step by step procedure and let me download as Markdown file.
Step 1: Fetching Data#
Choose a Famous Person: Select a well-known person you want to create a bio for. Example: Marie Curie.
Gather Information:
Basic Information: Full name, birth date, death date, nationality.
Career Highlights: Major achievements, awards, significant contributions.
Personal Life: Family, education, interesting anecdotes.
Sources: Use reliable sources like Wikipedia, official websites, and biographies.
Step 2: Writing the Bio#
Structure the Bio:
Introduction: Brief overview of the person.
Early Life and Education: Background, early influences, education.
Career: Major milestones, achievements, and contributions.
Personal Life: Family, hobbies, personal anecdotes.
Legacy: Impact and significance in their field.
Example Bio:
# Marie Curie
## Introduction
Marie Curie was a pioneering physicist and chemist who made groundbreaking contributions to science. She was the first woman to win a Nobel Prize and remains the only person to win Nobel Prizes in two different scientific fields.
## Early Life and Education
Marie Curie, born Maria Skłodowska on November 7, 1867, in Warsaw, Poland, showed an early aptitude for science. Despite facing numerous obstacles due to her gender, she pursued higher education at the University of Paris, where she earned degrees in physics and mathematics.
## Career
Marie Curie's research on radioactivity led to the discovery of two elements, polonium and radium. She coined the term "radioactivity" and developed techniques for isolating radioactive isotopes. Curie won her first Nobel Prize in Physics in 1903, shared with her husband Pierre Curie and Henri Becquerel, and her second in Chemistry in 1911.
## Personal Life
Marie married Pierre Curie in 1895, and they had two daughters, Irène and Ève. The Curies' partnership was both personal and professional, with their shared passion for science driving their research. Despite Pierre's tragic death in 1906, Marie continued their work, balancing her scientific pursuits with raising her children.
## Legacy
Marie Curie's discoveries have had a profound impact on science and medicine. Her pioneering work in radioactivity paved the way for developments in cancer treatment and nuclear energy. Curie's legacy as a trailblazer for women in science endures, inspiring generations of scientists worldwide.
Step 3: Creating a Markdown File#
Write the Bio in Markdown: Use a text editor (e.g., VS Code, Notepad++) to create a
.md
file.
# Marie Curie
## Introduction
Marie Curie was a pioneering physicist and chemist who made groundbreaking contributions to science. She was the first woman to win a Nobel Prize and remains the only person to win Nobel Prizes in two different scientific fields.
## Early Life and Education
Marie Curie, born Maria Skłodowska on November 7, 1867, in Warsaw, Poland, showed an early aptitude for science. Despite facing numerous obstacles due to her gender, she pursued higher education at the University of Paris, where she earned degrees in physics and mathematics.
## Career
Marie Curie's research on radioactivity led to the discovery of two elements, polonium and radium. She coined the term "radioactivity" and developed techniques for isolating radioactive isotopes. Curie won her first Nobel Prize in Physics in 1903, shared with her husband Pierre Curie and Henri Becquerel, and her second in Chemistry in 1911.
## Personal Life
Marie married Pierre Curie in 1895, and they had two daughters, Irène and Ève. The Curies' partnership was both personal and professional, with their shared passion for science driving their research. Despite Pierre's tragic death in 1906, Marie continued their work, balancing her scientific pursuits with raising her children.
## Legacy
Marie Curie's discoveries have had a profound impact on science and medicine. Her pioneering work in radioactivity paved the way for developments in cancer treatment and nuclear energy. Curie's legacy as a trailblazer for women in science endures, inspiring generations of scientists worldwide.
Step 4: Converting Markdown to HTML Using Pandoc#
Install Pandoc:
Follow installation instructions from the Pandoc official website.
Convert Markdown to HTML:
Open a terminal or command prompt.
Navigate to the directory containing your
.md
file.Run the following command:
pandoc -s -o marie_curie.html marie_curie.md
Example Command:
pandoc -s -o marie_curie.html marie_curie.md
Step 5: Generating an HTML File with Nice Styling#
Create a CSS File:
Create a file named
style.css
with the following content:
body {
font-family: Arial, sans-serif;
margin: 20px;
line-height: 1.6;
}
h1, h2, h3 {
color: #333;
}
h1 {
border-bottom: 2px solid #333;
padding-bottom: 10px;
}
h2 {
margin-top: 30px;
}
h3 {
margin-top: 20px;
}
Modify Pandoc Command to Include CSS:
Use the
--css
option to include the CSS file.Example Command:
pandoc -s -c style.css -o marie_curie.html marie_curie.md
Example HTML Output:
<!DOCTYPE html>
<html>
<head>
<title>Marie Curie</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Marie Curie</h1>
<h2>Introduction</h2>
<p>Marie Curie was a pioneering physicist and chemist who made groundbreaking contributions to science. She was the first woman to win a Nobel Prize and remains the only person to win Nobel Prizes in two different scientific fields.</p>
<h2>Early Life and Education</h2>
<p>Marie Curie, born Maria Skłodowska on November 7, 1867, in Warsaw, Poland, showed an early aptitude for science. Despite facing numerous obstacles due to her gender, she pursued higher education at the University of Paris, where she earned degrees in physics and mathematics.</p>
<h2>Career</h2>
<p>Marie Curie's research on radioactivity led to the discovery of two elements, polonium and radium. She coined the term "radioactivity" and developed techniques for isolating radioactive isotopes. Curie won her first Nobel Prize in Physics in 1903, shared with her husband Pierre Curie and Henri Becquerel, and her second in Chemistry in 1911.</p>
<h2>Personal Life</h2>
<p>Marie married Pierre Curie in 1895, and they had two daughters, Irène and Ève. The Curies' partnership was both personal and professional, with their shared passion for science driving their research. Despite Pierre's tragic death in 1906, Marie continued their work, balancing her scientific pursuits with raising her children.</p>
<h2>Legacy</h2>
<p>Marie Curie's discoveries have had a profound impact on science and medicine. Her pioneering work in radioactivity paved the way for developments in cancer treatment and nuclear energy. Curie's legacy as a trailblazer for women in science endures, inspiring generations of scientists worldwide.</p>
</body>
</html>
Step 6: Download the Markdown File#
Here is the link to download the Markdown file: marie_curie.md
By following these steps, you can create a well-structured bio and convert it into a stylish HTML page using Markdown and Pandoc.