mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
parent
4d5e29f26b
commit
dbf6c4601f
1 changed files with 12 additions and 0 deletions
|
@ -322,6 +322,18 @@ post_data
|
||||||
post_data_type
|
post_data_type
|
||||||
(*Optional*) Specifies the ``Content-Type`` of the request body (``post_data``). By default, this is ``application/x-www-form-urlencoded``.
|
(*Optional*) Specifies the ``Content-Type`` of the request body (``post_data``). By default, this is ``application/x-www-form-urlencoded``.
|
||||||
|
|
||||||
|
This source can also work with XML to some extent, e.g. it can parse an RSS feed like this:
|
||||||
|
|
||||||
|
.. code-block:: toml
|
||||||
|
|
||||||
|
[ProxmoxVE]
|
||||||
|
source = "htmlparser"
|
||||||
|
url = "https://my.proxmox.com/en/announcements/tag/proxmox-ve/rss"
|
||||||
|
is_xml = true
|
||||||
|
xpath = "//item/title"
|
||||||
|
from_pattern = 'Proxmox VE ([\d.]+) released!'
|
||||||
|
to_pattern = '\1'
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
An additional dependency "lxml" is required.
|
An additional dependency "lxml" is required.
|
||||||
You can use ``pip install 'nvchecker[htmlparser]'``.
|
You can use ``pip install 'nvchecker[htmlparser]'``.
|
||||||
|
|
Loading…
Add table
Reference in a new issue