Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/scrapy/parsel
/ functions
Functions
186 in github.com/scrapy/parsel
⨍
Functions
186
◇
Types & classes
27
Function
test_has_class_tab
()
tests/test_xpathfuncs.py:82
Function
test_has_class_unicode
()
tests/test_xpathfuncs.py:57
Function
test_has_class_uppercase
()
tests/test_xpathfuncs.py:65
Method
test_html_has_json
(self)
tests/test_selector_jmespath.py:48
Method
test_html_root
(self)
tests/test_selector.py:1026
Method
test_http_header_encoding_precedence
(self)
tests/test_selector.py:679
Method
test_invalid_json
(self)
tests/test_selector.py:1054
Method
test_invalid_type
(self)
tests/test_selector.py:1011
Method
test_invalid_xpath
Test invalid xpath raises ValueError with the invalid xpath
tests/test_selector.py:665
Method
test_invalid_xpath_unicode
Test *Unicode* invalid xpath raises ValueError with the invalid xpath
tests/test_selector.py:672
Method
test_jmestpath_with_re
(self)
tests/test_selector_jmespath.py:93
Method
test_json_css
(self)
tests/test_selector.py:1046
Method
test_json_has_html
Sometimes the information is returned in a json wrapper
tests/test_selector_jmespath.py:12
Method
test_json_root
(self)
tests/test_selector.py:1032
Method
test_json_selector_representation
(self)
tests/test_selector.py:1072
Method
test_json_type
(self)
tests/test_selector.py:1020
Method
test_json_types
(self)
tests/test_selector_jmespath.py:148
Method
test_json_xpath
(self)
tests/test_selector.py:1038
Method
test_list_elements_type
Test Selector returning the same type in selection methods
tests/test_selector.py:290
Method
test_make_links_absolute
(self)
tests/test_selector.py:589
Method
test_mixed_nested_selectors
(self)
tests/test_selector.py:419
Method
test_namespaces_adhoc
(self)
tests/test_selector.py:445
Method
test_namespaces_adhoc_variables
(self)
tests/test_selector.py:459
Method
test_namespaces_multiple
(self)
tests/test_selector.py:475
Method
test_namespaces_multiple_adhoc
(self)
tests/test_selector.py:502
Method
test_namespaces_simple
(self)
tests/test_selector.py:432
Method
test_nested_select_on_text_nodes
(self)
tests/test_selector.py:730
Method
test_nested_selector
(self)
tests/test_selector_csstranslator.py:200
Method
test_nested_selectors
Nested selector tests
tests/test_selector.py:347
Method
test_null_bytes_shouldnt_raise_errors
(self)
tests/test_selector.py:697
Method
test_pickle_selector
(self)
tests/test_selector.py:37
Method
test_pickle_selector_list
(self)
tests/test_selector.py:42
Method
test_pseudo_function_exception
(self, css: str, exc: type[Exception])
tests/test_selector_csstranslator.py:130
Method
test_pseudoclass_has
(self)
tests/test_selector_csstranslator.py:210
Method
test_re
(self)
tests/test_selector.py:595
Method
test_re_first
Test if re_first() returns first matched element
tests/test_selector.py:246
Method
test_re_intl
(self)
tests/test_selector.py:653
Method
test_re_replace_entities
(self)
tests/test_selector.py:620
Method
test_regexp
EXSLT regular expression tests
tests/test_selector.py:1096
Method
test_remove_attributes_namespaces
(self)
tests/test_selector.py:795
Method
test_remove_namespace_json
(self)
tests/test_selector.py:1084
Method
test_remove_namespaces
(self)
tests/test_selector.py:745
Method
test_remove_namespaces_embedded
(self)
tests/test_selector.py:762
Method
test_remove_pseudo_element_selector
(self)
tests/test_selector.py:910
Method
test_remove_pseudo_element_selector_list
(self)
tests/test_selector.py:898
Method
test_remove_root_element_selector
(self)
tests/test_selector.py:922
Method
test_remove_selector
(self)
tests/test_selector.py:889
Method
test_remove_selector_list
(self)
tests/test_selector.py:880
Method
test_replacement_char_from_badly_encoded_body
(self)
tests/test_selector.py:701
Method
test_replacement_null_char_from_body
(self)
tests/test_selector.py:876
Method
test_representation_slice
(self)
tests/test_selector.py:171
Method
test_representation_slice
(self)
tests/test_selector.py:1251
Method
test_representation_unicode_query
(self)
tests/test_selector.py:179
Method
test_representation_unicode_query
(self)
tests/test_selector.py:1254
Method
test_select_on_text_nodes
(self)
tests/test_selector.py:717
Method
test_select_on_unevaluable_nodes
(self)
tests/test_selector.py:706
Method
test_select_unicode_query
(self)
tests/test_selector.py:285
Method
test_selector_get_alias
Test if get() returns extracted value on a Selector
tests/test_selector.py:222
Method
test_selector_getall_alias
Test if get() returns extracted value on a Selector
tests/test_selector.py:230
Method
test_selector_over_text
(self)
tests/test_selector.py:658
Method
test_selector_simple
(self)
tests/test_selector_csstranslator.py:178
Method
test_selectorlist_get_alias
Test if get() returns first element for a selection call
tests/test_selector.py:238
Method
test_selectorlist_getall_alias
Nested selector tests using getall()
tests/test_selector.py:383
Method
test_set
EXSLT set manipulation tests
tests/test_selector.py:1145
Function
test_set_xpathfunc
()
tests/test_xpathfuncs.py:90
Function
test_shorten
( text: str, width: int, suffix: str, expected: str | type[Exception] )
tests/test_utils.py:34
Method
test_simple_selection
Simple selector tests
tests/test_selector.py:55
Method
test_simple_selection_with_variables
Using XPath variables
tests/test_selector.py:85
Method
test_simple_selection_with_variables_escape_friendly
Using XPath variables with quotes that would need escaping with string formatting
tests/test_selector.py:117
Method
test_slicing
(self)
tests/test_selector.py:338
Method
test_smart_strings
Lxml smart strings return values
tests/test_selector.py:810
Method
test_text_and_root_warning
(self)
tests/test_selector.py:1060
Method
test_text_or_root_is_required
(self)
tests/test_selector.py:322
Method
test_text_pseudo_element
(self, css: str, xpath: str)
tests/test_selector_csstranslator.py:119
Method
test_text_pseudo_element
(self)
tests/test_selector_csstranslator.py:185
Method
test_unknown_pseudo_class
(self, css: str, exc: type[Exception])
tests/test_selector_csstranslator.py:151
Method
test_unknown_pseudo_element
(self, css: str, exc: type[Exception])
tests/test_selector_csstranslator.py:140
Method
test_weakref_slots
Check that classes are using slots and are weak-referenceable
tests/test_selector.py:737
Method
test_weakref_slots
(self)
tests/test_selector.py:1257
Method
test_xml_entity_expansion
(self)
tests/test_selector.py:843
Method
xpath
Call the ``.xpath()`` method for each element in this list and return their results flattened as another :class:`SelectorList`.
parsel/selector.py:161
Method
xpath_attr_functional_pseudo_element
Support selecting attribute values using ::attr() pseudo-element
parsel/csstranslator.py:114
Method
xpath_element
(self, selector: Element)
parsel/csstranslator.py:70
Method
xpath_element
(self: TranslatorProtocol, selector: Element)
parsel/csstranslator.py:83
Method
xpath_pseudo_element
Dispatch method that transforms XPath to support pseudo-element
parsel/csstranslator.py:88
Method
xpath_text_simple_pseudo_element
Support selecting text nodes using ::text pseudo-element
parsel/csstranslator.py:124
← previous
101–186 of 186, ranked by callers