The app analyzes the readability of content from a provided URL, using various metrics to assess its complexity and clarity. It generates a comprehensive report, including scores like Flesch Reading Ease and SMOG Index, alongside visualizations for better understanding.
This app is rate limited using Unkey. So you can only make 3 requests per 3 minutes.
- Python 3.x
- Streamlit
- Requests library
- An account with Unkey with Root Key
- Firecrawl with valid API Key
-
Go to unkey ratelimits
-
Create a new namespace with name
firecrawl.streamlit
-
Go to settings/root-keys and create a root key with Ratelimit permissions
-
You can follow this link to create the root key with ratelimit permissions https://app.unkey.com/settings/root-keys/new?permissions=ratelimit..create_namespace,ratelimit..read_namespace,ratelimit..limit,ratelimit..update_namespace,ratelimit.*.delete_namespace
-
Add it in the .env file
UNKEY_ROOT_KEY
-
Clone this repository:
git clone https://github.com/harshsbhat/unkey-streamlit-firecrawl.git cd unkey-streamlit-firecrawl
-
Set up a virtual environment (optional but recommended): :
python3 -m venv venv # For Linux/macOS source venv/bin/activate # For Linux/macOS python -m venv venv # For Windows venv\Scripts\activate # For Windows
-
Set up your environment variables: Create a .env file in the project root and add the following variables. Get the Unkey rootkey from unkey dashboard. You can also get the Firecrawl API key from Firecrawl
FIRECRAWL_API_KEY="" UNKEY_ROOT_KEY=""
-
Install the required dependencies
pip install -r requirements.txt
-
Run the app
streamlit run app.py
https://www.loom.com/share/dab87938ac9f453fadab5673881e59d5?sid=7266731d-8c90-4184-a04f-d0f10708a562