Web Scraping using Python

Web Scraping using Python

Professional Development

10 Qs

quiz-placeholder

Similar activities

Santa Claus 2.0

Santa Claus 2.0

KG - Professional Development

10 Qs

Evaluation

Evaluation

Professional Development

13 Qs

IADCLASS

IADCLASS

University - Professional Development

10 Qs

PPK_OBEC CC Test

PPK_OBEC CC Test

Professional Development

10 Qs

PENGENALAN RUMAH BELAJAR

PENGENALAN RUMAH BELAJAR

Professional Development

10 Qs

KMKY Trainers Quiz

KMKY Trainers Quiz

Professional Development

10 Qs

Cualidad y veracidad de la información en internet

Cualidad y veracidad de la información en internet

Professional Development

5 Qs

Ingenieurbau Tragwerke Abschlussprüfung 2021

Ingenieurbau Tragwerke Abschlussprüfung 2021

Professional Development

15 Qs

Web Scraping using Python

Web Scraping using Python

Assessment

Quiz

Education

Professional Development

Hard

Created by

Meena Natarajan

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What protocol can be used to retrieve web pages using python?

urllib

bs4

HTTP

GET

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a python library that can be used to send and receive data over HTTP?

http

urllib

port

header

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does the following block of code do?

It creates a file named 'romeo.txt' in 'data.pr4e.org'

It finds the urls linked to 'data.pr4e.org' and prints it.

It opens a file named 'http://data.pr4e.org/romeo.txt' in local storage

It prints the contents of 'romeo.txt' after retrieving it from 'data.pr4e.org'

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the following regex match?

http[s]?://.+?

Exact match to 'http[s]?://.+?'

'http://' or 'http[s]://' followed by one or more character

'http://' or 'https://' followed by one or more characters.

'https://' followed by one or more characters.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does the following block of code do?

retrieves and displays the webpage

parses the html content of the "https://www.nytimes.com" webpage.

downloads the webpage

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which line of code correctly gets the first item in items and makes the most sense following the below code snippet?

soup = BeautifulSoup(response.content, 'html.parser') items = soup.find_all(class_='items')

first_item = items[0]

first_item = items.find(0)

first_item = items.get(0)

first_item = items.find[0]

first_item = soup.items[0]

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

How does one parse the HTML into a BeautifulSoup object given a response object?

soup = BeautifulSoup(response.text, 'html.parser')

soup = BeautifulSoup(response.content, 'html.parser')

soup = BeautifulSoup(response.string, 'html.parser')

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?