Menu

I built a Chess.com connector for Cognee so my AI agent remembers my games
πŸ“°

I built a Chess.com connector for Cognee so my AI agent remembers my games

DEV Community: pythonΒ·Manthan RajpurohitΒ·5 days ago
#gbNEvqYS
#devtopython#devto#dev#connector#chess
Reading 0:00
15s threshold

I play Chess.com. Four months of rapid games, a Bronze-league rating, openings I keep losing, blunders I keep repeating β€” and all of it locked inside the Chess.com app. I can't ask it "which openings do I lose most as Black?" without clicking through archive pages like an archaeologist. So for Mergetober I built a data-source connector that feeds a public Chess.com profile straight into Cognee's memory layer. Personal AI chess coach: unlocked.

The wall: Cloudflare

Honest version of how this started: my first API call returned literally nothing β€” empty response, json.tool choking on char 0. The status code told the story: 403 , Cloudflare's "Just a moment..." challenge, hitting every default request. The docs said the public API is open; the edge said prove you're a browser.

One header fixed it:

User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Enter fullscreen mode

Exit fullscreen mode

403 β†’ 200.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.