~ghost08/ratt

Add config for catmanga.org v1 APPLIED

Mubashir Haroon
Mubashir Haroon: 1
 Add config for catmanga.org

 1 files changed, 28 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~ghost08/ratt/patches/23474/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Add config for catmanga.org Export this patch

Mubashir Haroon
---
 confs/catmanga.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 confs/catmanga.yml

diff --git a/confs/catmanga.yml b/confs/catmanga.yml
new file mode 100644
index 0000000..e4f6c7f
--- /dev/null
+++ b/confs/catmanga.yml
@@ -0,0 +1,28 @@
regex: https://catmanga.org/series/.*
selectors:
    #settings for all http requests for the website
    httpsettings:
        cookie: {}
        header: {}
        useragent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
    #css selectors to get the feed data
    feed:
        title: .css-1xo73o4
        description: .css-fo0pm6
        authorname:
        authoremail:
    #css selectors to get item data
    item:
        #the item container
        container: .css-1bgihxk > a
        #all subsequent attributes of the item are selected from the subtree of the item container
        title: p
        link: |-
                link = sel:attr("href")
                print("https://catmanga.org" .. link)
        linkattr: href
        created:
        createdformat:
        description:
        image:
        imageattr:
-- 
2.32.0
Wow thanks, you're the first one to contribute to ratt :)
So keep going!

Vlado