Beautiful Soup Flashcards

1
Q

4 main types of object classes?

A

BeautifulSoup

Tag

NavigableString

Comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

most important features of a tag

A

name and attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You can access a tag’s attributes by?

A

Treating the tag like a dictionary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how do you access a tags attributes?

A

.attrs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what class sis used to contain these bits of text within tags

A

NavigableString

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a regular expression in python?

A

a regular expression is a special sequence of characters that helps you match or fins other strings or sets of strings, using specialized syntax held in a pattern.

Regular expressions are widely used in UNIX world.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly