New Site? readnovelfull.com
Quote:
Originally Posted by junni
I've been fiddling around in python and got a rough understanding of it, so i tried to make an adapter for the readnovelfull.com website, since it is similar to novelfull.com. I got it working, but i am sure the code could be way pretty. Anyways, if anyone is interested on it, here it goes.
|
For a first attempt, this is remarkably good.
In fact, the only obvious flaw I found was with
status processing; it didn't work with 'Ongoing' stories and FFF standardizes
status to
Completed and
In-Progress. (Some sites do also have additional states.)
I changed it to:
Code:
if soup.find("a", href=re.compile("/completed-novel"), class_="text-primary"):
self.story.setMetadata("status", "Completed")
else:
self.story.setMetadata("status", "In-Progress")
However, I hesitate to add this site, because (like novelfull.com), it doesn't work except through flaresolverr. And as ffnet has shown, just because that works today, doesn't mean it will work tomorrow. I'm getting very tired of wrestling with cloudflare and even more tired of dealing with users about it.
That said, attached is a plugin test version containing junni's code (plus status change). If there are other users who would find this useful, ever with the flaresolverr limitation, I'll add it to the official repo.
Quote:
Originally Posted by junni
P.S. i don't know how to use github, so i'm sorry if i can't post it there, or if i'm permitted to post here.
|
If you want to contribute regularly (which I do encourage), you should eventually take the time to learn to use github. But you wouldn't be the only contributor who didn't.
An attached zip file instead of a inline would be better, but I don't think MR allows that until you have 10 posts or something like that. At least you used [code] tags.