just realized the default danbooru parser for hydrus just scrapes the html page instead of using the official API
damn that’s bad
just realized the default danbooru parser for hydrus just scrapes the html page instead of using the official API
damn that’s bad
lesson learned
hydrus uses python and thus uses \g<1> instead of the usual pcre’s $1
@bronze
disagree. dunno about other sites, but danbooru’s rest api is very well documented and easier to reason about
i’m also kinda biased since i have some experience with it
i forgot a single question mark :bap:
after much trial and error (and somehow missing this part of the documentation), i now understand why the default danbooru parser scrapes the html instead of using the rest api
hydrus’s limitation means you can’t access other urls when processing the current url, which means no artist notes for you, because the artist commentary is in another endpoint entirely. not the case with the html page obviously. kinda sucks, but oh well
and because this uses rest api, in order to access posts with banned tags (loli, shota, etc.) i had to override the global http headers (or uses the one inside the url class itself) instead of using my browser’s session id cookies
anyway, this was quite a fun exercise
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.