How To Develop Your Own Built-With Tool & Deploy It: Step-By-Step

I am Developer from Kashmir
Search for a command to run...

I am Developer from Kashmir
No comments yet. Be the first to comment.
As a regular user of WhatsApp, I've encountered my fair share of frustrations with its updates and status feature. From constant notifications to intrusive status updates, it seemed like I couldn't catch a break. On top of that, the temptation to res...

Speedtest.net is a popular online service that lets you test the speed and performance of your internet connection. It's been on my mind for a while to see if these speed tests are accurate! I even considered creating my own speed test app for a proj...
As a software developer, one of the most important decisions you will make when starting a new project is the choice of programming language. There are many factors to consider when making this choice, such as the popularity of the language, the size...

Yes, you heard it right! You can learn AJAX in 5 mins provided you have little concept of JavaScript and jQuery. The method I am sharing with you right now will probably boot your AJAX skills. Just for the record: AJAX is a developer’s dream because ...

With lots of programming language out there everyone here is getting confused about what to follow and what not to. All programming languages having their own limitations and their own pros and cons. At the beginning of this article, I will say tha...

This tutorial is based on python programming language and I will be discussing the tools that can we use to make your on website analyser.
1) built-with: this is the tool that we are going to use to receive information about tech stacks of the website and it's just when being called IT returns the object containing all information about the website it's little bit slow but can be optimised according to the taste.
2) fastAPI: we use this to serve our application.
3) ReactJS: this app is for those who just wanna go ahead and create their own front and so that where users can submit the website of which divine get details and on receiving can get the details about the website.
This is how our 'main.py looks like:
The value of our API
from fastapi import FastAPI
import builtwith
from fastapi.middleware.cors import CORSMiddleware
from fastapi.encoders import jsonable_encoder
from fastapi.responses import JSONResponse
from pydantic import BaseModel
import json
app = FastAPI()
# CORS origin fix
''' For specific domains '''
# origins = [
# "http://localhost.tiangolo.com",
# "https://localhost.tiangolo.com",
# "http://localhost",
# "http://localhost:8080",
# "http://localhost:3000v"
# ]
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
# How to page
@app.get("/")
async def root():
return {"message": "Hello World"}
# Main Handler For API
@app.get("/get/{url}")
async def root(url: str):
newUrl = 'http://' + url
print(newUrl)
data = builtwith.builtwith(newUrl)
return JSONResponse(content=builtwith.builtwith(newUrl))
# return {"message": "Hello World"}
For those who wanted see the full source code and the source code of a friend and that is made using react JS. Here is the GitHub repository.
https://glacial-taiga-01626.herokuapp.com/get/<exaple.com>