Skip to content

Chapter04_CrawlingModels.ipynb, Dealing with different website layouts have wrong codes #95

@yeop-sang

Description

@yeop-sang

line 25:
body = bs.find('div', {'class', 'post-body'}).text

A Parameter named 'attrs' should be dic type, but the example code and the book has wrong codes.

I recommed change the code like
body = bs.find('div', {'class': 'post-body'}).text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions