Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
import scrapy
from scrapy.http import FormRequest, Request
class QuotesSpider(scrapy.Spider):
name = 'quoteslogin'
allowed_domains = ['quotes.toscrape.com']
start_urls = [
'http://quotes.toscrape.com/login'

Keybase proof

I hereby claim:

  • I am christiandietrich on github.
  • I am chd (https://keybase.io/chd) on keybase.
  • I have a public key whose fingerprint is 7353 2757 3F43 B3C8 CF86 A62A B1B3 7D3B 358C 202F

To claim this, I am signing this object:

<RoutingRules>
<RoutingRule>
<Condition>
<KeyPrefixEquals>old-slug</KeyPrefixEquals>
</Condition>
<Redirect>
<Protocol>http-or-https</Protocol>
<HostName>yourdomain.tld</HostName>
<ReplaceKeyPrefixWith>new-slug</ReplaceKeyPrefixWith>
<HttpRedirectCode>301</HttpRedirectCode>