explaingit

souravbamotra/animepahe-cf-bypass

Analysis updated 2026-05-18

1JavaScriptAudience · developerComplexity · 3/5Setup · moderate

TLDR

A Node.js scraper that works around Cloudflare's bot protection to pull anime listings and direct video stream links from AnimePahe and Kwik.

Mindmap

mindmap
  root((AnimePahe Scraper))
    What it does
      Cloudflare bypass
      Anime search
      Stream extraction
    Tech stack
      Node.js
      Playwright
      CDP
    Process
      Harvest cookies
      Reuse in headless session
      Deobfuscate packer
    Use cases
      Automated scraping
      Stream link extraction

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Harvest Cloudflare clearance cookies by manually solving a challenge once in a visible browser.

USE CASE 2

Reuse saved cookies in a headless browser session to make requests that pass Cloudflare's checks.

USE CASE 3

Search anime titles and list their episodes programmatically.

USE CASE 4

Extract a direct short lived video stream link from an obfuscated Kwik embed page.

What is it built with?

JavaScriptNode.jsPlaywrightChrome DevTools Protocol

How does it compare?

souravbamotra/animepahe-cf-bypass0xmukesh/docusaurus-tutoriala15n/andrewscheuermann
Stars111
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-12-272015-01-11
MaintenanceDormantDormant
Setup difficultymoderateeasymoderate
Complexity3/52/51/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Node.js 18+, a local Google Chrome install, and a manual step to clear a Cloudflare challenge once.

No license information was found in the reviewed material.

In plain English

This project is a JavaScript scraper that pulls video listing and streaming information from two websites, AnimePahe and Kwik, while working around Cloudflare's automated bot protection. Cloudflare tries to detect scripts pretending to be a real browser by checking things like network fingerprints and browser flags, so this project takes the approach of controlling an actual installed copy of Google Chrome rather than a simulated one, connecting to it through Chrome's own developer protocol. The process works in two stages. First, a script opens a visible Chrome window and waits for a person to manually clear any Cloudflare challenge or captcha that appears. Once the site loads normally, the script saves the resulting clearance cookies and browser identification string to a local file. Second, a separate script reuses those saved credentials inside a hidden, headless Chrome session, since Cloudflare ties its clearance cookies to the exact browser fingerprint that earned them. With valid access established, the scraper can search for anime titles, list their episodes, and follow through to Kwik hosted video pages to extract a direct streaming link, including undoing a common form of JavaScript code obfuscation used to hide those links. A test script runs the full process end to end and prints out each step, from searching a title to producing a final playable stream address. The README warns that the final video playlist links expire within three to five minutes, so they should only be cached briefly, while the more stable Kwik page links can be stored for longer. Running the project requires Node.js version 18 or newer and a working Chrome installation on the same machine. The project has 1 star and no license information was found in the reviewed material.

Copy-paste prompts

Prompt 1
Walk me through how the refresher script harvests and saves Cloudflare clearance cookies.
Prompt 2
Explain why this project connects to a real Chrome instance via CDP instead of using a normal headless browser.
Prompt 3
Show me how the packer deobfuscation works to extract the direct stream URL from Kwik.
Prompt 4
Help me understand why the extracted .m3u8 links expire so quickly and how caching is handled.

Frequently asked questions

What is animepahe-cf-bypass?

A Node.js scraper that works around Cloudflare's bot protection to pull anime listings and direct video stream links from AnimePahe and Kwik.

What language is animepahe-cf-bypass written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, Playwright.

What license does animepahe-cf-bypass use?

No license information was found in the reviewed material.

How hard is animepahe-cf-bypass to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is animepahe-cf-bypass for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.