Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Shouldn't it automatically prompt me to use .css or .xpath after I enter the response?

No, the IDE can't know what type is the response variable unless you add a type hint (at least in callbacks not named parse, as Spider.parse() is typed and it looks like e.g. PyCharm analyzes its type hint).

I cannot use tab completion in my system shell, similar to:

Ah. The shell completion for scrapy is implemented in https://github.com/scrapy/scrapy/blob/master/extras/scrapy_bash_completion (pip install scrapy won't install it, of course).

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@FonzoSong
Comment options

@wRAR
Comment options

wRAR Jun 2, 2025
Maintainer

@FonzoSong
Comment options

@wRAR
Comment options

wRAR Jun 2, 2025
Maintainer

Answer selected by FonzoSong
@FonzoSong
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants