MCPcopy Create free account

hub / github.com/psf/requests-html / functions

Functions84 in github.com/psf/requests-html

↓ 15 callersMethodfind
Given a CSS Selector, returns a list of :class:`Element <Element>` objects or a single one. :param selector: CSS Selector to use.
requests_html.py:180
↓ 11 callersFunctionget
()
tests/test_requests_html.py:15
↓ 8 callersMethodclose
If a browser was created close it first.
requests_html.py:733
↓ 5 callersMethod__init__
(self, *, session: Union['HTMLSession', 'AsyncHTMLSession'] = None, url: str = DEFAULT_URL, html: _HTML, defau
requests_html.py:413
↓ 4 callersMethodrender
Reloads the response in Chromium, and replaces HTML content with an updated version, with JavaScript executed. :param retries: The nu
requests_html.py:541
↓ 4 callersMethodstatus
Prints things in bold.
setup.py:46
↓ 3 callersMethodarender
Async version of render. Takes same parameters.
requests_html.py:612
↓ 3 callersFunctionasync_get
AsyncSession cannot be created global since it will create a different loop from pytest-asyncio.
tests/test_requests_html.py:23
↓ 3 callersMethodnext
Attempts to find the next page, if there is one. If ``fetch`` is ``True`` (default), returns :class:`HTML <HTML>` object of next page.
requests_html.py:433
↓ 2 callersMethod_async_render
Handle page creation and js rendering. Internal use for render/arender methods.
requests_html.py:502
↓ 2 callersFunction_get_first_or_list
(l, first=False)
requests_html.py:676
↓ 2 callersMethod_make_absolute
Makes a given link absolute.
requests_html.py:306
↓ 2 callersMethodxpath
Given an XPath selector, returns a list of :class:`Element <Element>` objects or a single one. :param selector: XPath Selector to use
requests_html.py:236
↓ 1 callersMethod__anext__
(self)
requests_html.py:491
↓ 1 callersMethod_from_response
(cls, response, session: Union['HTMLSession', 'AsyncHTMLSession'])
requests_html.py:659
↓ 1 callersMethodclose
If a browser was created close it first.
requests_html.py:761
↓ 1 callersMethodpq
`PyQuery <https://pythonhosted.org/pyquery/>`_ representation of the :class:`Element <Element>` or :class:`HTML <HTML>`.
requests_html.py:144
↓ 1 callersMethodrun
Pass in all the coroutines you want to run, it will wrap each one in a task, run it and wait for the result. Return a list with all
requests_html.py:767
↓ 1 callersMethodsearch
Search the :class:`Element <Element>` for the given Parse template. :param template: The Parse template to use.
requests_html.py:274
↓ 1 callersFunctiontest_containing
()
tests/test_requests_html.py:78
↓ 1 callersFunctionuser_agent
Returns an apparently legit user-agent, if not requested one of a specific style. Defaults to a Chrome-style User-Agent.
requests_html.py:665
Method__aiter__
(self)
requests_html.py:488
Method__init__
(self, message)
requests_html.py:65
Method__init__
(self, *, element, default_encoding: _DefaultEncoding = None, html: _HTML = None, url: _URL)
requests_html.py:79
Method__init__
(self, *, element, url: _URL, default_encoding: _DefaultEncoding = None)
requests_html.py:378
Method__init__
(self, session: Union['HTMLSession', 'AsyncHTMLSession'])
requests_html.py:646
Method__init__
(self, mock_browser : bool = True, verify : bool = True, browser_args : list = ['--no-sandbox
requests_html.py:691
Method__init__
(self, **kwargs)
requests_html.py:721
Method__init__
Set or create an event loop and a thread pool. :param loop: Asyncio loop to use. :param workers: Amount of threads to use fo
requests_html.py:743
Method__iter__
(self)
requests_html.py:474
Method__next__
(self)
requests_html.py:485
Method__repr__
(self)
requests_html.py:385
Method__repr__
(self)
requests_html.py:430
Methodabsolute_links
All found links on page, in absolute form (`learn more <https://www.navegabem.com/absolute-or-relative-links.html>`_).
requests_html.py:329
Methodadd_next_symbol
(self, next_symbol)
requests_html.py:499
Methodattrs
Returns a dictionary of the attributes of the :class:`Element <Element>` (`learn more <https://www.w3schools.com/tags/ref_attributes.asp>`_).
requests_html.py:390
Methodbase_url
The base URL for the page. Supports the ``<base>`` tag (`learn more <https://www.w3schools.com/tags/tag_base.asp>`_).
requests_html.py:341
Methodbrowser
(self)
requests_html.py:712
Methodbrowser
(self)
requests_html.py:725
Functioncount_chromium_process
()
tests/test_requests_html.py:34
Methodencoding
The encoding string to be used, extracted from the HTML and :class:`HTMLResponse <HTMLResponse>` headers.
requests_html.py:119
Methodfinalize_options
(self)
setup.py:53
Methodfull_text
The full text content (including links) of the :class:`Element <Element>` or :class:`HTML <HTML>`.
requests_html.py:174
Methodgen
()
requests_html.py:294
Methodget_next
()
requests_html.py:440
Methodhtml
Unicode representation of the HTML content (`learn more <http://www.diveintopython3.net/strings.html>`_).
requests_html.py:100
Methodhtml
(self)
requests_html.py:652
Methodinitialize_options
(self)
setup.py:50
Methodlinks
All found links on page, in as–is form.
requests_html.py:291
Methodlxml
`lxml <http://lxml.de>`_ representation of the :class:`Element <Element>` or :class:`HTML <HTML>`.
requests_html.py:154
Methodraw_html
Bytes representation of the HTML content. (`learn more <http://www.diveintopython3.net/strings.html>`_).
requests_html.py:90
Methodrequest
Partial original request func and run it in a thread.
requests_html.py:756
Methodresponse_hook
Change response enconding and replace it by a HTMLResponse.
requests_html.py:705
Methodrun
(self)
setup.py:56
Methodsearch_all
Search the :class:`Element <Element>` (multiple times) for the given parse template. :param template: The Parse template to use.
requests_html.py:282
Functiontest1
()
tests/test_internet.py:36
Functiontest2
()
tests/test_internet.py:39
Functiontest3
()
tests/test_internet.py:42
Functiontest_absolute_links
(url, link, expected)
tests/test_requests_html.py:161
Functiontest_anchor_links
()
tests/test_requests_html.py:144
Functiontest_async_browser_session
()
tests/test_requests_html.py:338
Functiontest_async_file_get
(async_get)
tests/test_requests_html.py:50
Functiontest_async_links
(async_get)
tests/test_requests_html.py:108
Functiontest_async_pagination
(event_loop)
tests/test_internet.py:20
Functiontest_async_render
(async_get)
tests/test_requests_html.py:198
Functiontest_async_run
()
tests/test_internet.py:33
Functiontest_attrs
()
tests/test_requests_html.py:89
Functiontest_bare_arender
()
tests/test_requests_html.py:241
Functiontest_bare_js_async_eval
()
tests/test_requests_html.py:285
Functiontest_bare_js_eval
()
tests/test_requests_html.py:263
Functiontest_bare_render
()
tests/test_requests_html.py:219
Functiontest_browser_process
()
tests/test_requests_html.py:328
Functiontest_browser_session
Test browser instaces is created and properly close when session is closed. Note: session.close method need to be tested together with browse
tests/test_requests_html.py:307
Functiontest_browser_session_fail
HTMLSession.browser should not be call within an existing event loop>
tests/test_requests_html.py:320
Functiontest_class_seperation
()
tests/test_requests_html.py:56
Functiontest_css_selector
()
tests/test_requests_html.py:64
Functiontest_file_get
()
tests/test_requests_html.py:43
Functiontest_html_loading
()
tests/test_requests_html.py:134
Functiontest_links
()
tests/test_requests_html.py:98
Functiontest_pagination
()
tests/test_internet.py:7
Functiontest_render
()
tests/test_requests_html.py:177
Functiontest_search
()
tests/test_requests_html.py:117
Functiontest_xpath
()
tests/test_requests_html.py:124
Methodtext
The text content of the :class:`Element <Element>` or :class:`HTML <HTML>`.
requests_html.py:167