Skip to content

StackExchange/so4t_search_log_report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stack Overflow Enterprise Search Logs

A Python script for Stack Overflow Enterprise that creates a report (CSV file) of users' search history. You can see an example of what the output looks like in the Examples directory.

Requirements

  • Stack Overflow Enterprise and a user account with admin permissions
  • Python 3.8 or higher (download)
  • Operating system: Linux, MacOS, or Windows
  • Chrome browser

Setup

Download and unpack the contents of this repository

To install the required open-source libraries for Python:

  • Open a terminal window (or, for Windows, a command prompt)
  • Navigate to the directory where you unpacked the files
  • Install the dependencies: pip3 install -r requirements.txt

Usage

In a terminal window, navigate to the directory where you unpacked the script. Run the script using the following format, replacing the URL with your own:

python3 soe_search_logs.py --url "https://SUBDOMAIN.stackenterprise.co"

At the beginning of the script, a small Chrome window will appear, prompting you to log in to your instance of Stack Overflow Enterprise. After logging in, the Chrome window will disappear, and the script will proceed in the terminal window.

The script typically takes less than a minute to run. As it runs, it will continue to update the terminal window with the status. When the script completes, it will indicate that the CSV has been exported, along with the file name. You can see an example of what the output looks like in the Examples directory.

Support, security, and legal

If you encounter problems using the script, please open a support issue with Stack Overflow. You are also welcome to clone and change the script to suit your needs. It is provided as-is, with no warranty or guarantee of any kind.

All data is handled locally on the device from which the script is run. The script does not transmit data to other parties, such as Stack Overflow.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages