Skip to content

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.

Notifications You must be signed in to change notification settings

ameygawade/streamlit-robots_txt_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

streamlit-robots_txt_generator

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.

Usage

  1. Clone the repository:

    git clone https://github.com/ameygawade/streamlit-robots-txt-generator.git
  2. Navigate to the project directory:

    cd streamlit-robots-txt-generator
  3. 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
  4. Install the required dependencies:

    pip install -r requirements.txt
  5. Run the Streamlit app:

    streamlit run robots_txt_generator.py
  6. Use the app to customize your robots.txt file by selecting options and filling in the necessary fields.

  7. Click on the "Generate robots.txt" button to create your robots.txt file.

  8. Optionally, download the generated robots.txt file using the download button.

Future Enhancements

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! ```

  1. Use the app to customize your robots.txt file by selecting options and filling in the necessary fields.

  2. Click on the "Generate robots.txt" button to create your robots.txt file.

  3. Optionally, download the generated robots.txt file using the download button.

Future Enhancements

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!