Skip to content

Instantly share code, notes, and snippets.

@ddikman
Last active April 25, 2021 04:56
Show Gist options
  • Save ddikman/0528c2cdf2ce1f3f1556283417a2aadc to your computer and use it in GitHub Desktop.
Save ddikman/0528c2cdf2ce1f3f1556283417a2aadc to your computer and use it in GitHub Desktop.
Example Scrapy scraper
import scrapy
from scrapy.shell import inspect_response
class GreycastleSpider(scrapy.Spider):
name = "greycastle"
start_urls = [
'https://greycastle.se'
]
def parse(self, response):
inspect_response(response, self)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment