An open API service indexing awesome lists of open source software.

https://github.com/kartikmehta8/htmlaas

Why to use a third party API when you can yourself create one? Extract HTML content by tag name, class, id, links from HTML as a Service.
https://github.com/kartikmehta8/htmlaas

beautifulsoup4 fastapi python requests

Last synced: 3 months ago
JSON representation

Why to use a third party API when you can yourself create one? Extract HTML content by tag name, class, id, links from HTML as a Service.

Awesome Lists containing this project

README

        

![BANNER](https://github.com/kartikmehta8/HTMLaaS/assets/77505989/061ffb2d-9ac8-4367-a57c-65c5b7302363)


Why to use a third party API when you can yourself create one?

HTMLaaS offers users the ability to query and extract specific information from HTML documents. Users can retrieve the page `title`, extract all `links`, access the `entire HTML content`, and query elements by `tag names`, `classes`, and `IDs`. This simplifies working with HTML, allowing users to extract desired data efficiently.

### Technologies
```py
from fastapi import FastAPI
from pydantic import BaseModel
import requests
from bs4 import BeautifulSoup
```

### Run
```
pip install uvicorn
uvicorn app:app --reload
```

```
Visit /docs route for Swagger documentation.
```


Made & open-sourced with ❤️ by kartikmehta8