SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
To Tell the Truth
Write a program to query
https://www.pravdareport.com
https://pravda.ru
https://www.lefigaro.fr
https://www.independent.co.uk
and display everything between the first occurrence of the tags
and
Things like are called HTML tags. The ends the tag .
If a webpage contains
<title>Sophie, Sally and Jack
your program should print
Sophie, Sally and Jack
If no tags appear, print a message such as No was found in http://pravda.ru.
You may assume that if <title> and occur, they occur in the same line of the file.
Your program should handle any thrown exceptions with an informative message.
Grading Elements:
Submission adheres to your instructors rules for submissions and code quality and conventions.
Program opens network connections to each of the designated web sites
Program reads the designated web pages
Program scans the incoming datastream for the appropriate HTML tags
Program extracts the designated information, or prints a message if no such information is found
Program catches any exceptions and prints an informative
use java

Más contenido relacionado

Similar a To Tell the TruthWrite a program to query httpswww.pravdarepo.pdf

BarCamp KL H20 Open Social Hackathon
BarCamp KL H20 Open Social HackathonBarCamp KL H20 Open Social Hackathon
BarCamp KL H20 Open Social Hackathon
marvin337
 
Doing More with Less: Mash Your Way to Productivity
Doing More with Less: Mash Your Way to ProductivityDoing More with Less: Mash Your Way to Productivity
Doing More with Less: Mash Your Way to Productivity
kevinreiss
 
Week 1
Week 1Week 1
Week 1
A VD
 
Html advanced-reference-guide for creating web forms
Html advanced-reference-guide for creating web formsHtml advanced-reference-guide for creating web forms
Html advanced-reference-guide for creating web forms
satish 486
 
Computer Programming for Lawyers
Computer Programming for LawyersComputer Programming for Lawyers
Computer Programming for Lawyers
Nehal Madhani
 

Similar a To Tell the TruthWrite a program to query httpswww.pravdarepo.pdf (20)

Lecture 9 Professional Practices
Lecture 9 Professional PracticesLecture 9 Professional Practices
Lecture 9 Professional Practices
 
"Using Web 2.0 as a Weapon Against Corruption"
"Using Web 2.0 as a Weapon Against Corruption" "Using Web 2.0 as a Weapon Against Corruption"
"Using Web 2.0 as a Weapon Against Corruption"
 
Software Design
Software DesignSoftware Design
Software Design
 
Fantastic Voyage into the Web of Data
Fantastic Voyage into the Web of DataFantastic Voyage into the Web of Data
Fantastic Voyage into the Web of Data
 
BarCamp KL H20 Open Social Hackathon
BarCamp KL H20 Open Social HackathonBarCamp KL H20 Open Social Hackathon
BarCamp KL H20 Open Social Hackathon
 
Basic JavaScript Tutorial
Basic JavaScript TutorialBasic JavaScript Tutorial
Basic JavaScript Tutorial
 
Phishing
PhishingPhishing
Phishing
 
2 . web app s canners
2 . web app s canners2 . web app s canners
2 . web app s canners
 
Open Social
Open SocialOpen Social
Open Social
 
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-53
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-53Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-53
Deck 893ff61f-1fb8-4e15-a379-775dfdbcee77-12-53
 
Eo gaddis java_chapter_13_5e
Eo gaddis java_chapter_13_5eEo gaddis java_chapter_13_5e
Eo gaddis java_chapter_13_5e
 
Doing More with Less: Mash Your Way to Productivity
Doing More with Less: Mash Your Way to ProductivityDoing More with Less: Mash Your Way to Productivity
Doing More with Less: Mash Your Way to Productivity
 
Doing More with Less: Mash Your Way to Productivity
Doing More with Less: Mash Your Way to ProductivityDoing More with Less: Mash Your Way to Productivity
Doing More with Less: Mash Your Way to Productivity
 
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
 
Week 1
Week 1Week 1
Week 1
 
Django 1.10.3 Getting started
Django 1.10.3 Getting startedDjango 1.10.3 Getting started
Django 1.10.3 Getting started
 
How to Scrape Amazon Best Seller Lists with Python and BeautifulSoup.pdf
How to Scrape Amazon Best Seller Lists with Python and BeautifulSoup.pdfHow to Scrape Amazon Best Seller Lists with Python and BeautifulSoup.pdf
How to Scrape Amazon Best Seller Lists with Python and BeautifulSoup.pdf
 
Html advanced-reference-guide for creating web forms
Html advanced-reference-guide for creating web formsHtml advanced-reference-guide for creating web forms
Html advanced-reference-guide for creating web forms
 
How to Scrape Amazon Best Seller Lists with Python and BeautifulSoup.pptx
How to Scrape Amazon Best Seller Lists with Python and BeautifulSoup.pptxHow to Scrape Amazon Best Seller Lists with Python and BeautifulSoup.pptx
How to Scrape Amazon Best Seller Lists with Python and BeautifulSoup.pptx
 
Computer Programming for Lawyers
Computer Programming for LawyersComputer Programming for Lawyers
Computer Programming for Lawyers
 

Más de ambikacomputer4301

This is neuroscience course (masters) 1. What percent.pdf
This is neuroscience course (masters)  1. What percent.pdfThis is neuroscience course (masters)  1. What percent.pdf
This is neuroscience course (masters) 1. What percent.pdf
ambikacomputer4301
 
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdfthis is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
ambikacomputer4301
 
this is all of the information that I have please help Lab 5 In.pdf
this is all of the information that I have please help  Lab 5 In.pdfthis is all of the information that I have please help  Lab 5 In.pdf
this is all of the information that I have please help Lab 5 In.pdf
ambikacomputer4301
 
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdfThis is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
ambikacomputer4301
 
This application is used to keep track of inventory information. A c.pdf
This application is used to keep track of inventory information. A c.pdfThis application is used to keep track of inventory information. A c.pdf
This application is used to keep track of inventory information. A c.pdf
ambikacomputer4301
 
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdfTitle Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
ambikacomputer4301
 
This assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdfThis assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdf
ambikacomputer4301
 

Más de ambikacomputer4301 (20)

This is neuroscience course (masters) 1. What percent.pdf
This is neuroscience course (masters)  1. What percent.pdfThis is neuroscience course (masters)  1. What percent.pdf
This is neuroscience course (masters) 1. What percent.pdf
 
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdfthis is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
 
this is all of the information that I have please help Lab 5 In.pdf
this is all of the information that I have please help  Lab 5 In.pdfthis is all of the information that I have please help  Lab 5 In.pdf
this is all of the information that I have please help Lab 5 In.pdf
 
This is a question from AI check if it is correct In which of the .pdf
This is a question from AI check if it is correct  In which of the .pdfThis is a question from AI check if it is correct  In which of the .pdf
This is a question from AI check if it is correct In which of the .pdf
 
This is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdfThis is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdf
 
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdfThis is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
 
This is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdfThis is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdf
 
This application is used to keep track of inventory information. A c.pdf
This application is used to keep track of inventory information. A c.pdfThis application is used to keep track of inventory information. A c.pdf
This application is used to keep track of inventory information. A c.pdf
 
Todas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdfTodas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdf
 
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdfTodas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdf
 
To what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdfTo what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdf
 
This data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdfThis data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdf
 
To examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdfTo examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdf
 
To create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdfTo create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdf
 
To complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdfTo complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdf
 
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdfTitle Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
 
This assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdfThis assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdf
 
Tide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdfTide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdf
 
Throughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdfThroughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdf
 
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdfThree students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Último (20)

Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 

To Tell the TruthWrite a program to query httpswww.pravdarepo.pdf

  • 1. To Tell the Truth Write a program to query https://www.pravdareport.com https://pravda.ru https://www.lefigaro.fr https://www.independent.co.uk and display everything between the first occurrence of the tags and Things like are called HTML tags. The ends the tag . If a webpage contains <title>Sophie, Sally and Jack your program should print Sophie, Sally and Jack If no tags appear, print a message such as No was found in http://pravda.ru. You may assume that if <title> and occur, they occur in the same line of the file. Your program should handle any thrown exceptions with an informative message. Grading Elements: Submission adheres to your instructors rules for submissions and code quality and conventions. Program opens network connections to each of the designated web sites Program reads the designated web pages Program scans the incoming datastream for the appropriate HTML tags Program extracts the designated information, or prints a message if no such information is found Program catches any exceptions and prints an informative use java