This Streamlit app allows users to generate and customize a robots.txt file by selecting user-agents, specifying disallowed paths, enabling crawler delay, and providing a sitemap URL.
-
Clone the repository:
git clone https://github.com/ameygawade/streamlit-robots-txt-generator.git
-
Navigate to the project directory:
cd streamlit-robots-txt-generator
-
Create and activate a virtual environment (optional but recommended):
# On macOS and Linux python3 -m venv venv source venv/bin/activate # On Windows python -m venv venv .\venv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run robots_txt_generator.py
-
Use the app to customize your robots.txt file by selecting options and filling in the necessary fields.
-
Click on the "Generate robots.txt" button to create your robots.txt file.
-
Optionally, download the generated robots.txt file using the download button.
Here are some ideas for future enhancements to improve the app:
-
Validation and Error Handling: Add validation checks to ensure that required fields are not empty and input values are in the correct format.
-
Clearer User Instructions: Provide clearer instructions or tooltips for each input field to guide users on how to use the app effectively.
-
Preview Feature: Include a preview feature that shows users how their robots.txt file will look before they generate it.
-
Reset Button: Add a button to reset all fields to their default values, allowing users to start over if needed.
-
Improved UI: Enhance the UI with additional styling or layout improvements to make the app more visually appealing and user-friendly.
Feel free to fork this repository and contribute to its development! ```
-
Use the app to customize your robots.txt file by selecting options and filling in the necessary fields.
-
Click on the "Generate robots.txt" button to create your robots.txt file.
-
Optionally, download the generated robots.txt file using the download button.
Here are some ideas for future enhancements to improve the app:
-
Validation and Error Handling: Add validation checks to ensure that required fields are not empty and input values are in the correct format.
-
Clearer User Instructions: Provide clearer instructions or tooltips for each input field to guide users on how to use the app effectively.
-
Preview Feature: Include a preview feature that shows users how their robots.txt file will look before they generate it.
-
Reset Button: Add a button to reset all fields to their default values, allowing users to start over if needed.
-
Improved UI: Enhance the UI with additional styling or layout improvements to make the app more visually appealing and user-friendly.
Feel free to fork this repository and contribute to its development!