Title: URL Validation: Add support for other schemes apart from https, http, ftp · Issue #327 · python-validators/validators · GitHub
Open Graph Title: URL Validation: Add support for other schemes apart from https, http, ftp · Issue #327 · python-validators/validators
X Title: URL Validation: Add support for other schemes apart from https, http, ftp · Issue #327 · python-validators/validators
Description: Given in the documentation link, the validator does not return True if I use a different scheme such as rtmp or rtsp. foo://admin:hunter1@example.com:8042/over/there?name=ferret#nose \_/ \___/ \_____/ \_________/ \__/\_________/ \_______...
Open Graph Description: Given in the documentation link, the validator does not return True if I use a different scheme such as rtmp or rtsp. foo://admin:hunter1@example.com:8042/over/there?name=ferret#nose \_/ \___/ \___...
X Description: Given in the documentation link, the validator does not return True if I use a different scheme such as rtmp or rtsp. foo://admin:hunter1@example.com:8042/over/there?name=ferret#nose \_/ \___/ \___...
Opengraph URL: https://github.com/python-validators/validators/issues/327
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"URL Validation: Add support for other schemes apart from https, http, ftp","articleBody":"Given in the documentation [link](https://python-validators.github.io/validators/reference/url/), the validator does not return `True` if I use a different scheme such as `rtmp` or `rtsp`.\r\n\r\n\r\n```\r\n foo://admin:hunter1@example.com:8042/over/there?name=ferret#nose\r\n \\_/ \\___/ \\_____/ \\_________/ \\__/\\_________/ \\_________/ \\__/\r\n | | | | | | | |\r\nscheme username password hostname port path query fragment\r\n```\r\n\r\nAn example of this is\r\n\r\n`rtmp://192.168.1.123:1935/live/test`\r\n\r\nIf I run this code:\r\n\r\n```\r\nimport validators\r\n\r\nstreamurl = \"rtmp://192.168.1.123:1935/live/test\"\r\nprint(validators.url(streamurl))\r\n```\r\n\r\nThe output is:\r\n\r\n`\r\nValidationError(func=url, args={'value': 'rtmp://192.168.1.123:1935/live/test'})\r\n`\r\n\r\nIt would be nice if the URL validator supports other schemes. Thanks.\r\n","author":{"url":"https://github.com/dvignacioglobal","@type":"Person","name":"dvignacioglobal"},"datePublished":"2024-03-12T02:37:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/327/validators/issues/327"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c8862485-ba0f-926f-4dfa-58d4922b5564 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D768:1D9D:3B9DD7:4F5F69:698E26A6 |
| html-safe-nonce | 6f77ebfd16bd1b0bd9e289137cfacb3a1bf6b4c503a283f3b5d4d2eede2d16bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzY4OjFEOUQ6M0I5REQ3OjRGNUY2OTo2OThFMjZBNiIsInZpc2l0b3JfaWQiOiIyNDY0OTE3MjAwNzg1MjU0MDU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e3778e905ac55b11736d5e3a90a8667cd81e25dc5b31acbfedfa51cb2301e971 |
| hovercard-subject-tag | issue:2180603172 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-validators/validators/327/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0427ea7b0dac53044972592f206fe34f0fe20892845d7425ef7fa3c2912bdec/python-validators/validators/issues/327 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0427ea7b0dac53044972592f206fe34f0fe20892845d7425ef7fa3c2912bdec/python-validators/validators/issues/327 |
| og:image:alt | Given in the documentation link, the validator does not return True if I use a different scheme such as rtmp or rtsp. foo://admin:hunter1@example.com:8042/over/there?name=ferret#nose \_/ \___/ \___... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dvignacioglobal |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-validators/validators git https://github.com/python-validators/validators.git |
| octolytics-dimension-user_id | 113113270 |
| octolytics-dimension-user_login | python-validators |
| octolytics-dimension-repository_id | 13642984 |
| octolytics-dimension-repository_nwo | python-validators/validators |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13642984 |
| octolytics-dimension-repository_network_root_nwo | python-validators/validators |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f1e729d231ea1ea5a098d21f1491b75bea53631 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width