Skip to content

fix: LeetCode GraphQL extraction with newer api endpoint query#252

Merged
soxoj merged 1 commit into
soxoj:masterfrom
kaifcodec:fix-leetcode-extractor
Jun 1, 2026
Merged

fix: LeetCode GraphQL extraction with newer api endpoint query#252
soxoj merged 1 commit into
soxoj:masterfrom
kaifcodec:fix-leetcode-extractor

Conversation

@kaifcodec

Copy link
Copy Markdown
Contributor
  • Bypassed Cloudflare block on LeetCode: Standard profile pages throw a 403 Forbidden due to Cloudflare protection. Switched to fetching user data using the LeetCode GraphQL API endpoint via GET requests (using mutations in schemes.py).
  • Fixed End-to-End Test: Unskipped and updated test_leetcode_graphql_e2e in tests/test_e2e.py to directly fetch and validate user profile fields using the mutated GraphQL query URL.
  • Verified Data Extraction: Confirmed successful parsing of the username, full name, avatar image URL, country, company, school, and user ranking.

@kaifcodec kaifcodec force-pushed the fix-leetcode-extractor branch from e00da89 to 730645e Compare June 1, 2026 14:38
@soxoj

soxoj commented Jun 1, 2026

Copy link
Copy Markdown
Owner

@kaifcodec thanks!
Could you also update method of Leetcode check in Maigret? 🙏

@soxoj soxoj merged commit eec3960 into soxoj:master Jun 1, 2026
5 checks passed
@kaifcodec

Copy link
Copy Markdown
Contributor Author

Ok, I will take look on that.

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.

2 participants