Last active
March 10, 2018 21:16
-
-
Save dbautistav/363849dc51931dfdab4dc791601fc027 to your computer and use it in GitHub Desktop.
flights-scrapy
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
import scrapy | |
class FlightsSpider(scrapy.Spider): | |
name = "flights" | |
start_urls = [ 'https://www.google.com/flights/' ] | |
def parse(self, response): | |
title = response.css('title::text').extract_first() | |
print '##### THE TITLE IS: ' + title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment