feat: add Nexus Mods username module - #481
Merged
kaifcodec merged 3 commits intoJul 30, 2026
Merged
Conversation
kaifcodec
reviewed
Jul 29, 2026
brunolm
reviewed
Jul 29, 2026
Collaborator
There was a problem hiding this comment.
generic_validate(httpx) is Cloudflare-blocked — every request returns403(Just a moment...), so the module always errors and never returns taken/available. Live check: same URL viaimpersonate_request(..., allow_redirects=True)returns200for real profiles (Gopher,Pickysaurus,Dark0ne) and404for fakes. Switch toimpersonate_validateand useallow_redirects=True(curl_cffi kwarg, notfollow_redirects). Homepagewarmup_urlis optional; fingerprint alone was enough here.joined/last_activescrape display text (07 Sept 2004) while the same<time>elements expose ISOdateTime(e.g.2004-09-07T10:55:16.000Z). Prefer thedateTimeattribute for locale-independent, machine-sortable values.- Also extract
data-e2eid="unique-download-count"(present on live profiles, e.g.9.4m) intoextra, same pattern as the other e2e fields. - Avatar URLs are
https://avatars.nexusmods.com/<user_id>/100— optionally emit the numeric id intoextra(and/or preferog:imagefor the avatar).
Raw output:
Checking username: brunolm
[!] Nexusmods [https://www.nexusmods.com/profile/brunolm] (brunolm): Error (Unexpected status code: 403)
[i] Scan complete.
Total hits: 0
Matches the PR review: httpx hits Cloudflare (403), so the module never gets a profile response. No JSON file was written (nothing to save with only an error and no -o).
…from hydration data
Collaborator
Author
|
@brunolm Thank you for the suggestions, I applied them all. I also parsed some additional information from the page's hydration data. |
brunolm
approved these changes
Jul 30, 2026
kaifcodec
approved these changes
Jul 30, 2026
kaifcodec
left a comment
Owner
There was a problem hiding this comment.
@kristoisberg This is really a high quality module as it reveals the targets' email.
@brunolm Thanks for review on this.
MERGING IT!
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.
This PR adds an username module for the gaming site nexusmods.com. One of the simpler modules yet, since the site exposes E2E testing attributes for nearly everything of interest.