File size: 432 Bytes
51ded84
c111485
99d7409
51ded84
 
f126cb5
51ded84
 
99d7409
 
0a17e79
99d7409
 
 
 
 
 
5a00466
99d7409
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from flask import Flask
from SephoraDirect import SephoraScraper  # Import the Sephoradirect class
from fastapi import FastAPI

# Create an instance of the Sephoradirect class
sephora_direct = SephoraScraper()


app = FastAPI()

@app.get("/")
def read_root():
    print('request agye nhi')
    return {
        "hello" : "world"
    }
@app.get("/re")
def read():
    print('request agye')
    sephora_direct.run()
    return True