Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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