Skip to content

Instantly share code, notes, and snippets.

@dbautistav
Last active March 10, 2018 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbautistav/363849dc51931dfdab4dc791601fc027 to your computer and use it in GitHub Desktop.
Save dbautistav/363849dc51931dfdab4dc791601fc027 to your computer and use it in GitHub Desktop.
flights-scrapy
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