Closed lebenoa closed 9 months ago
I confirm this edit works. Too bad it doesn't work for lolibooru :p
I confirm this edit works. Too bad it doesn't work for lolibooru :p
I looked into it a lil bit. It seems that lolibooru
you're talking about doesn't expose neither .xml
nor .json
API (of the post itself) as I have read the API documentation and tried multiple combination of path.
The only way to get it working might be web scraping for now. but I don't have a plan to do it
AIBooru fix by adding default header
Somehow if the
user-agent
is blank (urllib supply onlyConnection: Close
afaik), AIBooru will return403: FORBIDDEN
so this PR added youruser-agent
header to the default headers when making requestsTesting on my PC and it work like a charm
https://user-images.githubusercontent.com/76484203/217029192-a42bebfc-9254-4c39-919b-89e003f7f69c.mp4
P.S. Sorry for my English. I am not a native speaker of English.