---
title: "Discussion on \"How to Check If a String Is a Valid URL in Python\" | Hashnode"
description: "Discussion on \"How to Check If a String Is a Valid URL in Python\". Learn how to validate URLs in Python with the validators and django url validator"
url: "https://hashnode.com/posts/how-to-check-if-a-string-is-a-valid-url-in-python/606f4c24d741af6659cf9567"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Check If a String Is a Valid URL in Python](https://miguendes.me/how-to-check-if-a-string-is-a-valid-url-in-python?utm_source=hashnode&utm_medium=feed)

Learn how to validate URLs in Python with the validators and django url validator

Dec 26, 2020 · 3 min read · miguendes.me  
Updated Nov 7, 2021  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Miguel Brito](https://hashnode.com/@miguendes)

@miguendes · London, UK

  
[View profile](https://hashnode.com/@miguendes)

Machine Learning Software Engineer - Hobbyst Technical Writer - Interested in Software Testing, Best Practices, Scalability, and Python.

AI Software Engineer based in London, UK with 6+ years of professional experience developing and releasing software in different programming languages - Hobbyist Technical Writer - Interested in Software Testing, Best Practices, Scalability, Machine Learning/AI, and Python.

## Responses 2

Markdown supported · ⌘↵ to post

[Gyansetu](https://hashnode.com/@gyansetu)

[Oct 19, 2023](https://hashnode.com/posts/how-to-check-if-a-string-is-a-valid-url-in-python/606f4c24d741af6659cf9567/comment/6531616014d68a4317ad8b3a)

Python | Gyansetu is the ultimate platform to learn Python programming. Their courses are comprehensive and beginner-friendly. With their expert guidance, you'll quickly master Python and be well on your way to coding success! For more info:- [gyansetu.in/blogs/future-scope-of-python-in-india](https://www.gyansetu.in/blogs/future-scope-of-python-in-india/)

[Paula Maranhão](https://hashnode.com/@pmaranhaor)

[Apr 8, 2021](https://hashnode.com/posts/how-to-check-if-a-string-is-a-valid-url-in-python/606f4c24d741af6659cf9567/comment/606f92939deb56667e380a4e)

Great post!
