SlideShare a Scribd company logo
WebProgramming
Learning Objectives
By the end of this lesson, you will be able to:
Demonstrate Web Scraping
Demonstrate Web Frameworks
Explain Django
Web Scraping
Web Scraping
Web Scraping is a process of extracting information from a website or internet. Web scraping is one of
the most important techniques of data extraction from internet. It allows the extraction of unstructured
data from websites and convert it into structured data.
BASIC STEPS FOR WEB SCRAPING
Select
website
Authenticate
Generate
request
Process
Information
Web Scraping Applications
Web Scraping plays a major role in data extraction that helps in business Improvements. At present, a
website to any business is mandatory. This explains the importance of web scraping in information
extraction
Let’s see some of the applications of web scraping.
Data
Scienc
e
E-
Commerce
Sales
Finance
Web
Scrapping
Applications
Marketing
Different Methods of Web Scraping
There are different methods to extract information from websites. Authentication is an important aspect
for web scraping and every website has some restrictions for their content extraction.
Web scraping focuses on extracting data such as product costs, weather data, pollution check, criminal
data, stock price movements etc,. in our local database for analysis.
Copying
API
Keys
Socket
Programming
Web Scraping in Python
Python is one of the favorite languages for web scraping. Web scraping can be used for data analysis
when we have to analyze information from a website
The important libraries in Python that assists us in web scraping are:
Allows to scrape information from website in simple
steps.
Beautiful
Soup
Web scraping and automation
tool
Mechanize
Beautiful Soup Installation Steps
Execute conda install –c anaconda beautifulsoup4 in anaconda prompt
or
Execute pip install beautifulsoup4 in command prompt
Installation
starts
here
Demo: Web Scraping Using Beautiful Soup
Demo: Web Scraping Using Beautiful Soup
Demo: Web Scraping Using Beautiful Soup
Demo: Web Scraping Using Beautiful Soup
Do it yourself: Web Scraping Using Beautiful Soup
pip install beautifulsoup4
from urllib.request import urlopen
from bs4 import BeautifulSoup
url="https://timesofindia.com"
html=urlopen(url)
s=BeautifulSoup(html, 'lxml')
type(s)
title=s.title
title
text=s.get_text()
s.text
s.find_all('a')
links=s.find_all('a')
for link in links:
print(link.get("href"))
Django Framework
Django
Django is a high-level, popular Python framework for web development. Access to Django is
free & open source. Django is open-source and web apps can be created with less code. As a
framework, it is used for backend and front-end web development.
Fast Secure Scalable
Companies Using Django
Disqus
Instagram
YouTube
Bitbucket
Mozilla
Spotify
Important Attributes of Django
• A web browser is an interface for URL.
• A URL is the web address and the act of assigning functions to url is called
mapping.
• Django template is simply a text document or a Python string marked-
up using the Django template language. All the html files are stored in
templates.
• Static folder is used to store other CSS files, java files , images etc.
• Functions related to web apps are written inside view. It also renders
content to templates, puts information into model and gets information
from databases.
Important Attributes of Django
• Form fetches data from HTML form and helps connect to the model.
• Model is information about the object structure stored in a database. It
contains essential fields and data behavior. Information can be directly
edited in the database.
• Django automatically looks for an admin module in each application and
imports it. Registration of object in model is done through admin, which is
the mandatory first step for database management.
• Database is the collection of data at backend.
Technical Architecture
This is the technical architecture followed in Django:
Django Installation Steps
Write conda install -c anaconda django in anaconda prompt.
Knowledge Check
Which of the following is a web scraping library in
Python?
a. Beautiful Soup
b. Pandas
c. Numpy
d. None of the above
Knowledge
Check
1
Which of the following is a web scraping library in Python?
a. Beautiful Soup
b. Pandas
c. Numpy
d. None of the above
Knowledge
Check
1
The correct answer is a
Beautiful Soup is for web scraping, Pandas for data analysis, and Numpy for numerical
analysis.
Knowledge
Check
2
Data extraction is the most important aspect of web scraping.
a. False
b. True
Knowledge
Check
2
Data extraction is the most important aspect of web
scraping.
The correct answer is b
Web scraping means extracting information from a URL. So, data extraction is the most important aspect of
web scraping.
a. False
b. True
In Python, a=BeautifulSoup() is an expression, where a/an is
a. A constructor
b. An object
c. A class
d. A value returning function
Knowledge
Check
3
In Python, a=BeautifulSoup() is an expression, where a/an is
a. A constructor
b. An object
c. A class
d. A value returning function
Knowledge
Check
3
The correct answer is b
a is an object created using
BeautifulSoup().
What is the role of render_to_response method in Django?
a. Generating web response
b. Rendering data from
web
c. Rendering an HTML response
d. None of above
Knowledge
Check
4
What is the role of render_to_response method in Django?
a. Generating web response
b. Rendering data from
web
c. Rendering an HTML response
d. None of above
Knowledge
Check
4
The correct answer is c
In Django, render_to_response method is used to easily render an HTML
response.
Key Takeaways
Web scraping is a method of extracting information from a
URL.
Beautiful Soup is one of the simplest and most useful web
scraping libraries in Python.
Django is a high-level web framework used for web
development in Python.
Ad

Recommended

Guide for web scraping with Python libraries_ Beautiful Soup, Scrapy, and mor...
Guide for web scraping with Python libraries_ Beautiful Soup, Scrapy, and mor...
ThinkODC
 
Web scraping in python
Web scraping in python
Viren Rajput
 
Web Scraping using Python | Web Screen Scraping
Web Scraping using Python | Web Screen Scraping
CynthiaCruz55
 
Web Scraping Workshop
Web Scraping Workshop
GDSC UofT Mississauga
 
Web scrapping and how to do it using python.pptx
Web scrapping and how to do it using python.pptx
bakada6025
 
Web_Scraping_Presentation_today pptx.pptx
Web_Scraping_Presentation_today pptx.pptx
YuvrajTkd
 
Web Scrapping Using Python
Web Scrapping Using Python
ComputerScienceJunct
 
Web scraping with BeautifulSoup, LXML, RegEx and Scrapy
Web scraping with BeautifulSoup, LXML, RegEx and Scrapy
LITTINRAJAN
 
Scrappy
Scrappy
Vishwas N
 
Implementation of Web Application for Disease Prediction Using AI
Implementation of Web Application for Disease Prediction Using AI
BOHR International Journal of Data Mining and Big Data
 
Implementation ofWeb Application for Disease Prediction Using AI
Implementation ofWeb Application for Disease Prediction Using AI
BOHR International Journal of Computer Science (BIJCS)
 
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.pdf
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.pdf
dev670968
 
Tutorial on Web Scraping in Python
Tutorial on Web Scraping in Python
Nithish Raghunandanan
 
Introduction to Web Scraping using Python and Beautiful Soup
Introduction to Web Scraping using Python and Beautiful Soup
Tushar Mittal
 
Null 1
Null 1
MarcosHuenchullanSot
 
Pydata-Python tools for webscraping
Pydata-Python tools for webscraping
Jose Manuel Ortega Candel
 
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.ppt ...
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.ppt ...
dev670968
 
Weather data analysis presentation .pptx
Weather data analysis presentation .pptx
YuvrajTkd
 
Data-Analytics using python (Module 4).pptx
Data-Analytics using python (Module 4).pptx
DRSHk10
 
Getting started with Web Scraping in Python
Getting started with Web Scraping in Python
Satwik Kansal
 
Datasets, APIs, and Web Scraping
Datasets, APIs, and Web Scraping
Damian T. Gordon
 
AI-Driven News & Article Data Scraping: A Deep Dive into Content Extraction
AI-Driven News & Article Data Scraping: A Deep Dive into Content Extraction
Web Screen Scraping
 
Python ScrapingPresentation for dummy.pptx
Python ScrapingPresentation for dummy.pptx
norel46453
 
Python FDP self learning presentations..
Python FDP self learning presentations..
chaitra742243
 
What are the different types of web scraping approaches
What are the different types of web scraping approaches
Aparna Sharma
 
Intro to web scraping with Python
Intro to web scraping with Python
Maris Lemba
 
Web scraping using scrapy - zekeLabs
Web scraping using scrapy - zekeLabs
zekeLabs Technologies
 
Data web analytics scraping 12345_II.pptx
Data web analytics scraping 12345_II.pptx
utjimmyx
 
Python Conditional_Statements_and_Functions
Python Conditional_Statements_and_Functions
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Azure Fubdamentals (Az-900) presentation.
Azure Fubdamentals (Az-900) presentation.
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 

More Related Content

Similar to Web programming using python frameworks. (20)

Scrappy
Scrappy
Vishwas N
 
Implementation of Web Application for Disease Prediction Using AI
Implementation of Web Application for Disease Prediction Using AI
BOHR International Journal of Data Mining and Big Data
 
Implementation ofWeb Application for Disease Prediction Using AI
Implementation ofWeb Application for Disease Prediction Using AI
BOHR International Journal of Computer Science (BIJCS)
 
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.pdf
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.pdf
dev670968
 
Tutorial on Web Scraping in Python
Tutorial on Web Scraping in Python
Nithish Raghunandanan
 
Introduction to Web Scraping using Python and Beautiful Soup
Introduction to Web Scraping using Python and Beautiful Soup
Tushar Mittal
 
Null 1
Null 1
MarcosHuenchullanSot
 
Pydata-Python tools for webscraping
Pydata-Python tools for webscraping
Jose Manuel Ortega Candel
 
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.ppt ...
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.ppt ...
dev670968
 
Weather data analysis presentation .pptx
Weather data analysis presentation .pptx
YuvrajTkd
 
Data-Analytics using python (Module 4).pptx
Data-Analytics using python (Module 4).pptx
DRSHk10
 
Getting started with Web Scraping in Python
Getting started with Web Scraping in Python
Satwik Kansal
 
Datasets, APIs, and Web Scraping
Datasets, APIs, and Web Scraping
Damian T. Gordon
 
AI-Driven News & Article Data Scraping: A Deep Dive into Content Extraction
AI-Driven News & Article Data Scraping: A Deep Dive into Content Extraction
Web Screen Scraping
 
Python ScrapingPresentation for dummy.pptx
Python ScrapingPresentation for dummy.pptx
norel46453
 
Python FDP self learning presentations..
Python FDP self learning presentations..
chaitra742243
 
What are the different types of web scraping approaches
What are the different types of web scraping approaches
Aparna Sharma
 
Intro to web scraping with Python
Intro to web scraping with Python
Maris Lemba
 
Web scraping using scrapy - zekeLabs
Web scraping using scrapy - zekeLabs
zekeLabs Technologies
 
Data web analytics scraping 12345_II.pptx
Data web analytics scraping 12345_II.pptx
utjimmyx
 
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.pdf
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.pdf
dev670968
 
Introduction to Web Scraping using Python and Beautiful Soup
Introduction to Web Scraping using Python and Beautiful Soup
Tushar Mittal
 
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.ppt ...
How Does Beautiful Soup Facilitate E-Commerce Website Scraping in Python.ppt ...
dev670968
 
Weather data analysis presentation .pptx
Weather data analysis presentation .pptx
YuvrajTkd
 
Data-Analytics using python (Module 4).pptx
Data-Analytics using python (Module 4).pptx
DRSHk10
 
Getting started with Web Scraping in Python
Getting started with Web Scraping in Python
Satwik Kansal
 
Datasets, APIs, and Web Scraping
Datasets, APIs, and Web Scraping
Damian T. Gordon
 
AI-Driven News & Article Data Scraping: A Deep Dive into Content Extraction
AI-Driven News & Article Data Scraping: A Deep Dive into Content Extraction
Web Screen Scraping
 
Python ScrapingPresentation for dummy.pptx
Python ScrapingPresentation for dummy.pptx
norel46453
 
Python FDP self learning presentations..
Python FDP self learning presentations..
chaitra742243
 
What are the different types of web scraping approaches
What are the different types of web scraping approaches
Aparna Sharma
 
Intro to web scraping with Python
Intro to web scraping with Python
Maris Lemba
 
Web scraping using scrapy - zekeLabs
Web scraping using scrapy - zekeLabs
zekeLabs Technologies
 
Data web analytics scraping 12345_II.pptx
Data web analytics scraping 12345_II.pptx
utjimmyx
 

More from Puneet Kumar Bhatia (MBA, ITIL V3 Certified) (20)

Python Conditional_Statements_and_Functions
Python Conditional_Statements_and_Functions
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Azure Fubdamentals (Az-900) presentation.
Azure Fubdamentals (Az-900) presentation.
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Azure - Basic concepts and overview.pptx
Azure - Basic concepts and overview.pptx
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Cloud Computing basics - an overview.pptx
Cloud Computing basics - an overview.pptx
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Ansible as configuration management tool for devops
Ansible as configuration management tool for devops
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Microsoft Azure - Basic concepts presentation
Microsoft Azure - Basic concepts presentation
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Introduction to the Nexus tool for DevOps
Introduction to the Nexus tool for DevOps
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Introduction to Monitoring Tools for DevOps
Introduction to Monitoring Tools for DevOps
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Introduction to Monitoring Tools for DevOps
Introduction to Monitoring Tools for DevOps
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Introduction to Devops and its applications
Introduction to Devops and its applications
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Container Orchestration using kubernetes
Container Orchestration using kubernetes
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Containerization using docker and its applications
Containerization using docker and its applications
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Containerization using docker and its applications
Containerization using docker and its applications
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Java Microservices_64 Hours_Day wise plan (002).pdf
Java Microservices_64 Hours_Day wise plan (002).pdf
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Java Microservices_64 Hours_Day wise plan (002).pdf
Java Microservices_64 Hours_Day wise plan (002).pdf
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Aws interview questions
Aws interview questions
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Changing paradigm in job market
Changing paradigm in job market
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Kaizen08
Kaizen08
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Writing first-hudson-plugin
Writing first-hudson-plugin
Puneet Kumar Bhatia (MBA, ITIL V3 Certified)
 
Ad

Recently uploaded (20)

Advance Doctor Appointment Booking App With Online Payment
Advance Doctor Appointment Booking App With Online Payment
AxisTechnolabs
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
dheeodoo
 
Which Hiring Management Tools Offer the Best ROI?
Which Hiring Management Tools Offer the Best ROI?
HireME
 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
 
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
2nd Sight Lab
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
 
Best MLM Compensation Plans for Network Marketing Success in 2025
Best MLM Compensation Plans for Network Marketing Success in 2025
LETSCMS Pvt. Ltd.
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
declaration of Variables and constants.pptx
declaration of Variables and constants.pptx
meemee7378
 
University Campus Navigation for All - Peak of Data & AI
University Campus Navigation for All - Peak of Data & AI
Safe Software
 
How Automation in Claims Handling Streamlined Operations
How Automation in Claims Handling Streamlined Operations
Insurance Tech Services
 
Humans vs AI Call Agents - Qcall.ai's Special Report
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
 
From Code to Commerce, a Backend Java Developer's Galactic Journey into Ecomm...
From Code to Commerce, a Backend Java Developer's Galactic Journey into Ecomm...
Jamie Coleman
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
 
Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
 
Advance Doctor Appointment Booking App With Online Payment
Advance Doctor Appointment Booking App With Online Payment
AxisTechnolabs
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Download Adobe Illustrator Crack free for Windows 2025?
Download Adobe Illustrator Crack free for Windows 2025?
grete1122g
 
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
dheeodoo
 
Which Hiring Management Tools Offer the Best ROI?
Which Hiring Management Tools Offer the Best ROI?
HireME
 
Azure AI Foundry: The AI app and agent factory
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
 
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
2nd Sight Lab
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
 
Best MLM Compensation Plans for Network Marketing Success in 2025
Best MLM Compensation Plans for Network Marketing Success in 2025
LETSCMS Pvt. Ltd.
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
declaration of Variables and constants.pptx
declaration of Variables and constants.pptx
meemee7378
 
University Campus Navigation for All - Peak of Data & AI
University Campus Navigation for All - Peak of Data & AI
Safe Software
 
How Automation in Claims Handling Streamlined Operations
How Automation in Claims Handling Streamlined Operations
Insurance Tech Services
 
Humans vs AI Call Agents - Qcall.ai's Special Report
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
 
From Code to Commerce, a Backend Java Developer's Galactic Journey into Ecomm...
From Code to Commerce, a Backend Java Developer's Galactic Journey into Ecomm...
Jamie Coleman
 
Key Challenges in Troubleshooting Customer On-Premise Applications
Key Challenges in Troubleshooting Customer On-Premise Applications
Tier1 app
 
Heat Treatment Process Automation in India
Heat Treatment Process Automation in India
Reckers Mechatronics
 
Digital Transformation: Automating the Placement of Medical Interns
Digital Transformation: Automating the Placement of Medical Interns
Safe Software
 
Ad

Web programming using python frameworks.

  • 2. Learning Objectives By the end of this lesson, you will be able to: Demonstrate Web Scraping Demonstrate Web Frameworks Explain Django
  • 4. Web Scraping Web Scraping is a process of extracting information from a website or internet. Web scraping is one of the most important techniques of data extraction from internet. It allows the extraction of unstructured data from websites and convert it into structured data. BASIC STEPS FOR WEB SCRAPING Select website Authenticate Generate request Process Information
  • 5. Web Scraping Applications Web Scraping plays a major role in data extraction that helps in business Improvements. At present, a website to any business is mandatory. This explains the importance of web scraping in information extraction Let’s see some of the applications of web scraping. Data Scienc e E- Commerce Sales Finance Web Scrapping Applications Marketing
  • 6. Different Methods of Web Scraping There are different methods to extract information from websites. Authentication is an important aspect for web scraping and every website has some restrictions for their content extraction. Web scraping focuses on extracting data such as product costs, weather data, pollution check, criminal data, stock price movements etc,. in our local database for analysis. Copying API Keys Socket Programming
  • 7. Web Scraping in Python Python is one of the favorite languages for web scraping. Web scraping can be used for data analysis when we have to analyze information from a website The important libraries in Python that assists us in web scraping are: Allows to scrape information from website in simple steps. Beautiful Soup Web scraping and automation tool Mechanize
  • 8. Beautiful Soup Installation Steps Execute conda install –c anaconda beautifulsoup4 in anaconda prompt or Execute pip install beautifulsoup4 in command prompt Installation starts here
  • 9. Demo: Web Scraping Using Beautiful Soup
  • 10. Demo: Web Scraping Using Beautiful Soup
  • 11. Demo: Web Scraping Using Beautiful Soup
  • 12. Demo: Web Scraping Using Beautiful Soup
  • 13. Do it yourself: Web Scraping Using Beautiful Soup pip install beautifulsoup4 from urllib.request import urlopen from bs4 import BeautifulSoup url="https://timesofindia.com" html=urlopen(url) s=BeautifulSoup(html, 'lxml') type(s) title=s.title title text=s.get_text() s.text s.find_all('a') links=s.find_all('a') for link in links: print(link.get("href"))
  • 15. Django Django is a high-level, popular Python framework for web development. Access to Django is free & open source. Django is open-source and web apps can be created with less code. As a framework, it is used for backend and front-end web development. Fast Secure Scalable
  • 17. Important Attributes of Django • A web browser is an interface for URL. • A URL is the web address and the act of assigning functions to url is called mapping. • Django template is simply a text document or a Python string marked- up using the Django template language. All the html files are stored in templates. • Static folder is used to store other CSS files, java files , images etc. • Functions related to web apps are written inside view. It also renders content to templates, puts information into model and gets information from databases.
  • 18. Important Attributes of Django • Form fetches data from HTML form and helps connect to the model. • Model is information about the object structure stored in a database. It contains essential fields and data behavior. Information can be directly edited in the database. • Django automatically looks for an admin module in each application and imports it. Registration of object in model is done through admin, which is the mandatory first step for database management. • Database is the collection of data at backend.
  • 19. Technical Architecture This is the technical architecture followed in Django:
  • 20. Django Installation Steps Write conda install -c anaconda django in anaconda prompt.
  • 22. Which of the following is a web scraping library in Python? a. Beautiful Soup b. Pandas c. Numpy d. None of the above Knowledge Check 1
  • 23. Which of the following is a web scraping library in Python? a. Beautiful Soup b. Pandas c. Numpy d. None of the above Knowledge Check 1 The correct answer is a Beautiful Soup is for web scraping, Pandas for data analysis, and Numpy for numerical analysis.
  • 24. Knowledge Check 2 Data extraction is the most important aspect of web scraping. a. False b. True
  • 25. Knowledge Check 2 Data extraction is the most important aspect of web scraping. The correct answer is b Web scraping means extracting information from a URL. So, data extraction is the most important aspect of web scraping. a. False b. True
  • 26. In Python, a=BeautifulSoup() is an expression, where a/an is a. A constructor b. An object c. A class d. A value returning function Knowledge Check 3
  • 27. In Python, a=BeautifulSoup() is an expression, where a/an is a. A constructor b. An object c. A class d. A value returning function Knowledge Check 3 The correct answer is b a is an object created using BeautifulSoup().
  • 28. What is the role of render_to_response method in Django? a. Generating web response b. Rendering data from web c. Rendering an HTML response d. None of above Knowledge Check 4
  • 29. What is the role of render_to_response method in Django? a. Generating web response b. Rendering data from web c. Rendering an HTML response d. None of above Knowledge Check 4 The correct answer is c In Django, render_to_response method is used to easily render an HTML response.
  • 30. Key Takeaways Web scraping is a method of extracting information from a URL. Beautiful Soup is one of the simplest and most useful web scraping libraries in Python. Django is a high-level web framework used for web development in Python.