Response blank after being assigned to a Selector
See original GitHub issue$ scrapy shell "http://httpbin.org/ip"
...
In [1]: print response
<200 http://httpbin.org/ip>
In [2]: sel = Selector(text='', response=response)
In [3]: print sel.response
<200 about:blank>
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Why does AngularJS include an empty option in select?
In short: the empty option means that no valid model is selected (by valid I mean: from the set of options). You need...
Read more >empty - CSS-Tricks
The CSS :empty pseudo-class selects any element that does not contain children for a given selector.
Read more >Selectors - W3C
The case-sensitivity of attribute names and values in selectors depends on the document language. Multiple attribute selectors can be used to refer to...
Read more >CSS selectors - CSS: Cascading Style Sheets - MDN Web Docs
Selects an element based on the value of its id attribute. There should be only one element with a given ID in a...
Read more >Selectors | jQuery API Documentation
Selects all elements with the given tag name. Also in: Selectors > Content Filter · :empty Selector. Select all elements that have no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Digenis your patch looks fine.
@eLRuLL this usage of
text
argument was never intended AFAIK. You can pass url inbase_url
argument: scrapy.Selector wraps parsel.Selector to 1) provide backwards compatibility and 2) an ability to pass response instead of text.