~ghost08/ratt

[PATCH 2/2] Add config for salesforce security advisories

Daniel Hecker <code@hummeline.de>
Details
Message ID
<20220106175954.2372-3-code@hummeline.de>
DKIM signature
missing
Download raw message
Patch: +33 -0
---
 confs/salesforce-security-advisories.yml | 33 ++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 confs/salesforce-security-advisories.yml

diff --git a/confs/salesforce-security-advisories.yml b/confs/salesforce-security-advisories.yml
new file mode 100644
index 0000000..db4b79c
--- /dev/null
+++ b/confs/salesforce-security-advisories.yml
@@ -0,0 +1,33 @@
# This configuration allows creating feeds for the security advisories of salesforce,
# as i could not find a feed on the website itself.

regex: https://security.salesforce.com/security-advisories
selectors:
  httpsettings:
    cookie: {}
    header: {}
    useragent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
      Chrome/90.0.4430.72 Safari/537.36
    insecure: false
  feed:
    title: title
    description: ""
    authorname: ""
    authoremail: ""
  item:
    container: div[class=tr]
    title: div.td:nth-of-type(3)
    link: a
    linkattr: href
    created: |
      date = sel:find("div.td:nth-of-type(1)"):text():gsub("^%s*(.-)%s*$","%1"):gsub("Sept", "Sep")
      print(date)
    createdformat: 2 Jan 2006
    description: div.td:nth-of-type(4)
    content: ""
    image: ""
    imageattr: src
  nextpage: ""
  nextpageattr: href
  nextpagecount: 0
  sort: ""
-- 
2.34.1
Reply to thread Export thread (mbox)