Last active
September 29, 2018 10:01
-
-
Save rafikahmed/a836b258d544db4762c236889bd572c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse(self, response): | |
for joke in response.xpath("//div[@class='jokes']"): | |
yield { | |
'joke_text': joke.xpath(".//div[@class='joke-text']/p").extract_first() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment