Which library is used to send HTTP GET requests in Python?
The requests library.
Which method returns the first matching element it finds?
find().
In an <a> tag, which attribute is used to store the link URL?
The href attribute.
What is the primary purpose of web scraping?
To automatically extract data from websites.
What is the shortcut method used to access the very first paragraph tag in a document?
soup.p.
Which library is used in Python to parse HTML content?
Beautiful Soup.
Which method is used to return all matching elements?
find_all().
Which attribute of an <img> tag contains the actual URL of the image?
The src attribute.
What should you always review on a website before you begin scraping it?
Terms of service (permissions)
Write the specific line of code required to import the Beautiful Soup library.
from bs4 import BeautifulSoup.
Which Python library is used to write data into CSV files?
The csv library.
What method is used to extract the text content from a specific tag?
The .text method.
What is it called when one HTML element is placed inside another element?
Nesting.
What is a puzzle used to verify that a website user is a human and not a bot?
A CAPTCHA.
True or False: The find_all() method is used to return only the first matching element.
False (It returns all matching elements; find() returns the first).
Which specific method is used to write a single row to a CSV file?
The writerow() method.
What is the process of breaking down HTML into parts that are easier for the program to understand?
Parsing.
True or False: It is always allowed to scrape any website without checking for permissions.
False.
Which method is used if you want to write multiple rows of data to a CSV file all at once?
The writerows() method.
Which challenge refers to websites that update their content automatically without needing a page refresh?
Dynamic content.
True or False: HTML tags are used to identify and locate data during the scraping process.
True.