Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more 'Media' related regexes #114

Closed
wants to merge 4 commits into from
Closed

Conversation

apteryxxyz
Copy link

This adds media related regexes similar to the existing YouTube Video regex, in which they match the URL of something like a social media post.

Includes:

  • Twitter Status
  • Twitter User
  • Instagram Post
  • Instagram User
  • Reddit Post
  • Reddit User
  • Reddit Subreddit
  • Discord Invite

These will match URLs, so for example 'https://twitter.com/jack/status/20/', 'https://reddit.com/r/funny', 'https://discord.com/invite/hTKzmak', etc.

tests/test_regex_identifier.py Outdated Show resolved Hide resolved
pywhat/Data/regex.json Outdated Show resolved Hide resolved
@bee-san
Copy link
Owner

bee-san commented Jul 14, 2021

Hey! 👋🏻 I'm not sure on how okay I am at providing regex for specific sites when we already have a URL regex, is there any reason you'd want this? 😄 ❤️

@apteryxxyz
Copy link
Author

Hey! 👋🏻 I'm not sure on how okay I am at providing regex for specific sites when we already have a URL regex, is there any reason you'd want this? 😄 ❤️

Mainly just to add more 'media' regexes. The existing 3 YouTube regexes are the only [social] media ones, so similar regexes for other social networks seemed to fit.

@bee-san bee-san closed this Aug 24, 2021
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.

3 participants