Skip to content

Typo in code #1

Description

@SashiDareddy

article['title']= response.xpath('//h1/text()').get() or response.xpath('//h1/i/text()')

The second half of the code is missing a .get() which will store incorrectly parsed data.

The highlighted line should be:

article["title"] = response.xpath('//h1/text()').get() or response.xpath('//h1/i/text()').get()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions