Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add x.com URL support to TwitterRipper - #2188

Merged
soloturn merged 1 commit into
RipMeApp:mainfrom
smz202000:add-x-com-support
Aug 8, 2026
Merged

Add x.com URL support to TwitterRipper#2188
soloturn merged 1 commit into
RipMeApp:mainfrom
smz202000:add-x-com-support

Conversation

@smz202000

Copy link
Copy Markdown
Contributor

Description

This PR adds support for x.com URLs in the TwitterRipper, in addition to the existing twitter.com support. Since Twitter rebranded to X, many users share x.com URLs that previously failed to rip.

Changes

  • Updated sanitizeURL regex patterns to accept both twitter.com and x.com URLs using non-capturing groups (?:twitter|x)
  • Added canRip() override to match both twitter.com and x.com hostnames
  • Added x.com URL test cases for both user timeline and search ripping
  • The Twitter API endpoints (api.twitter.com) remain unchanged since the API still uses twitter.com

Testing

  • Existing twitter.com tests continue to pass
  • New x.com URL tests have been added (tagged as flaky, matching existing test conventions)
  • URL parsing and group numbering verified to work correctly with non-capturing groups

Addresses the x.com support request from issue #2068

- Update sanitizeURL regex patterns to accept both twitter.com and x.com URLs
- Add canRip() override to match both twitter.com and x.com hostnames
- Use non-capturing group (?:twitter|x) to avoid breaking group numbering
- Add x.com URL test cases for both user timeline and search

Closes RipMeApp#2068 (mega-thread request for x.com support)
@soloturn
soloturn merged commit f100c63 into RipMeApp:main Aug 8, 2026
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