Repository navigation
Accept prefilled Project Urls and add a local preprocessor - #36
Merged
Merged
Conversation
POST /datasets keeps any Project Url already filled in and only resolves blank rows against Devpost. app/preprocess.py fills that column locally in Playwright Chromium, so the upload can skip Devpost entirely. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /datasetsnow accepts aProject Urlcolumn. Rows with a value keep it (it must be anhttpsdevpost.comlink, or the row fails asINVALID_DEVPOST_URL), and only blank rows are resolved against Devpost. If every row is filled in, the server makes no Devpost requests.app/preprocess.py(uv run --group preprocess python -m app.preprocess export.csv -o resolved.csv) resolves submission URLs locally in Playwright Chromium. It keeps a Devpost login in a browser profile (--login,--profile), can show the browser so you can get past Cloudflare (--headed), and on a rerun of its own output retries only the blank rows. It needs noMDREDD_API_TOKEN.devpost.resolve_alltakes the cookie and concurrency as arguments, so the script runs without the server's settings.preprocessdependency group, so the Docker image (uv sync --no-dev) doesn't install it.DEVPOST_NOT_PROJECT_PAGEcode.Notes
Test plan
--loginand confirm it exits0resolved.csvand confirm the server sends no Devpost requests🤖 Generated with Claude Code