Skip to content

[fakku] add "read" extractor and "decode" postprocessor#9161

Draft
conquerorxx2 wants to merge 7980 commits intomikf:masterfrom
conquerorxx2:fakku
Draft

[fakku] add "read" extractor and "decode" postprocessor#9161
conquerorxx2 wants to merge 7980 commits intomikf:masterfrom
conquerorxx2:fakku

Conversation

@conquerorxx2
Copy link
Copy Markdown

What this PR does

This adds initial support for downloading and unscrambling images from fakku.net.

1. Extractor (read)

  • Added the base logic to extract image URLs and JSON payloads from the reader.
  • Require cookies.txt to bypass Cloudflare challenge:
    gallery-dl --cookies cookies.txt <url>

2. Postprocessor (decode)

  • Added a custom image decoder module to stitch the 128x128 scrambled tiles back together.
  • Feedback needed: This is a rough initial design for the unscrambling logic. Please suggest on a better design for this module.

Known Limitations & TODOs:

  • Full Chapter Testing: I do not have an unlimited account, so it have only been able to test this on sample pages. I have not verified if the extractor handles full chapter pagination correctly.
  • Cloudflare Auto-Bypass: Currently relies on the user providing a cookies.txt file manually.

mikf and others added 30 commits January 25, 2026 11:15
Add chapter and manga extractors for ww2.mangafreak.me with support
for bonus chapters (e.g., 167e suffix).
- Fix image URL extraction pattern to handle img tags with id attribute
- Use self.groups pattern instead of custom __init__ methods
- Fix chapter list extraction to use correct table structure
- use BASE_PATTERN
- fix manga, manga_id, chapter_id extraction
- fix & extend 'manga' metadata results
- extend test results
- fix manga and title extraction
- fix 'chapter_minor'
- extend test results
Was inadvertently caused by recent changes to range predicates
Fixes regression introduced in c23beee
* [tiktok] extractor more story item list pages
* [tiktok] invert hasMore logic
* [tiktok] First draft of a challenge resolver
* use stdlib sha256 implementation
* simplify 'resolve_challenge()' code
* set cookie domain and expires timestamp
* base64 -> binascii
* Avoid incorrect padding exceptions

---------

Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
some revisions have string values for 'file' and 'attachments'
instead of the regular dicts
posts from '/v1/{service}/user/{creator_id}/post/{post_id}' already
include their revisions and don't need an additional API request
extract 'token' from a different location
- parent-directory
- parent-metadata
- parent-session
- parent-skip

- add general 'parent' option
* listal extractor
* add listal to init
* fix flake8 & formatting & extractor names/subcategories

* remove 're' import
* remove 'datetime' import
* update & simplify extractors
* update supportedsites
* add tests

---------

Co-authored-by: Mike Fährmann <mike_faehrmann@web.de>
for example '?order=asc&group=j0fsj3oem3&tlang=en'
fix '400 Bad Request' errors when retrieving
more than the first batch of posts.
@conquerorxx2 conquerorxx2 marked this pull request as ready for review March 2, 2026 07:37
@conquerorxx2 conquerorxx2 marked this pull request as draft March 2, 2026 07:37
@conquerorxx2 conquerorxx2 changed the title [Draft] Add extractor and decode postprocessor for fakku.net [Fakku] Add extractor and decode postprocessor for fakku.net Mar 2, 2026
@conquerorxx2 conquerorxx2 changed the title [Fakku] Add extractor and decode postprocessor for fakku.net [fakku] Add extractor and decode postprocessor for fakku.net Mar 2, 2026
@conquerorxx2 conquerorxx2 changed the title [fakku] Add extractor and decode postprocessor for fakku.net [fakku] add "read" extractor and "decode" postprocessor Mar 2, 2026
@conquerorxx2 conquerorxx2 deleted the fakku branch March 2, 2026 09:06
@conquerorxx2 conquerorxx2 restored the fakku branch March 2, 2026 09:06
@conquerorxx2 conquerorxx2 reopened this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.