This is a Scrapy project to login quotes website with formrequest http://quotes.toscrape.com.
This project is only meant for educational purposes.
Request Form Data
Csrf_token Selection
This project Login with POST request. The extracted data looks like this sample:
'Url': 'http://quotes.toscrape.com/login',
'Form Data': 'csrf_token': csrf_token,
'username': 'foobar',
'password': 'foobar'
This project contains one spider and you can list them using the list
command:
$ scrapy list
scrapyFormRequestDemoSpider
Spider login with form data.
You can run a spider using the scrapy crawl
command, such as:
$ scrapy crawl scrapyFormRequestDemoSpider