Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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