* add formrequest version of spider and checker#46
Open
canercandan wants to merge 1 commit intoholgerd77:masterfrom
Open
* add formrequest version of spider and checker#46canercandan wants to merge 1 commit intoholgerd77:masterfrom
canercandan wants to merge 1 commit intoholgerd77:masterfrom
Conversation
Owner
|
Hi, could you please provide more context, what this pull request is for? |
Author
|
Hi @holgerd77 , This is about using the web authentication feature that Scrapy actually supports. Here is an example: http://doc.scrapy.org/en/0.16/topics/request-response.html#request-usage-examples To use both these new classes, the only thing you have to do is to use the new classes FormRequestDjangoSpider instead of DjangoSpider and FormRequestDjangoChecker instead of DjangoChecker and set a few parameters such as username, password and their respective input form names. Here is a usage example: spiders.py checkers.py I guess we can improve it by moving parameters to the admin panel. |
|
https://github.com/scrapy/loginform I am using this and it works great. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.