Skip to content

koumadev/fuseex1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI URL Validator

This project is a FastAPI-based web application that validates and fetches information about a given URL.

Features

  • Accepts a URL as input.
  • Validates the URL's accessibility.
  • Extracts the title of the webpage.

Requirements

  • Python 3.10+
  • FastAPI
  • httpx
  • BeautifulSoup4

Installation

  1. Clone the repository:
    git clone https://github.com/koumadev/fuseex1.git
  2. Navigate to the project directory:
    cd fuseex1
  3. Install dependencies:
    pip install -r requirements.txt

Usage

  1. Start the FastAPI server:
    uvicorn main:app --reload
  2. Open Postman or a browser and test the endpoint:
    • Endpoint: POST /validate-url/
    • Request Body:
      {
        "url": "https://example.com"
      }

Example Response

{
  "url": "https://example.com",
  "status_code": 200,
  "title": "Example Domain"
}

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages