Netskope Global Technical Success (GTS)
Export URL Categories from Netskope UI Using Developer Tools
Netskope Cloud Version - 127
Objective
Demonstrate how to use Firefox Developer Tools to extract included and excluded URL lists from Netskope custom categories and convert them into CSV format.
Prerequisites
- Netskope tenant access
- Firefox Browser
- Python installed on your system (version 3.x recommended)
Context
Administrators often need to review or document the URLs within a custom category defined in the Netskope console. While the data is accessible via the UI, this document outlines a method using Firefox Developer Tools to extract both the included and excluded URL lists from custom categories and convert them into CSV format for easier analysis, reporting, and sharing.
Steps
1. Open Firefox and log in to your Netskope admin console.
2. Navigate to: Policies > Profiles > Custom Categories
3. Press F12 or right-click anywhere on the page and select "Inspect" to open the Developer Tools.
4. Go to the Network tab, then reload the page to capture the network activity.
Look for a POST request to the following endpoint:
https://<tenant-name>.goskope.com/web_category/readAllWebCategory

5. Right-click the request and select "Edit and Resend".

6. In the Request Body, locate the line:
"limit": 100

7. Change it to:
"limit": 1000
Note: Set the limit value to match the total number of custom categories you have. For example, if you have 2000 custom categories, set "limit": 2000.
8. Click "Send" to resend the modified request.

9. View the response in the Developer Tools panel. It will contain the full list of URL categories in JSON format.

10. Copy the response data and save it in a Notepad or text file


11. Open the Python code and replace the input file path with the location of your saved JSON file, then execute the script to generate the CSV.
Note : The Python script provided in this document is meant as a reference to help convert the exported JSON data into CSV format. This script is attached for convenience. Any errors related to script execution, environment setup, or file handling are outside the scope of standard support. Customers are expected to review, modify, and maintain the script as needed to suit their specific environment and requirements.


Output

Terms and Conditions
- All documented information undergoes testing and verification to ensure accuracy.
- In the future, it is possible that the application's functionality may be altered by the vendor. If any such changes are brought to our attention, we will promptly update the documentation to reflect them.
Notes
- This article is authored by Netskope Global Technical Success (GTS).
- For any further inquiries related to this article, please contact Netskope GTS by submitting a support case with 'Case Type – How To Questions'.