Coder Social home page Coder Social logo

list-saved-searches's Introduction

A short script to list users and organizations that have saved searches, and the number of saved searches associated with each user or org.

Note: This script works for Sourcegraph instances before version 3.0.0.

To run:

  1. Clone this repository and cd into it.
  2. Run pipenv install
  3. Create a Sourcegraph access token at https://$YOUR_SOURCEGRAPH_INSTANCE_URL/users/$USERNAME/settings/tokens. The user associated with the token should be a site admin of the Sourcegraph instance you are querying.
  4. Run pipenv run python list-saved-searches.py https://$YOUR_SOURCEGRAPH_INSTANCE_URL $YOUR_SITE_ADMIN_ACCESS_TOKEN.

Running the script will output the users and organizations that have saved searches associated with them, and the number of saved searches associated with each:

Username      # saved searches
----------  ------------------
beyang                       2
ryan                         1
sqs                          2
felix                        1
keegan                       1
ijt                          1


Org name                      # saved searches
--------------------------  ------------------
Sourcegraph                                  1

To only output users or orgs with multiple saved searches, add --multiple to the end of the command.

list-saved-searches's People

Contributors

attfarhan avatar

Watchers

Quinn Slack avatar Issac Trotts avatar Dominic Cooney avatar Cezary Bartoszuk avatar Rishabh Mehrotra avatar Yink Teo avatar  avatar Rob Rhyne avatar Steve Yegge avatar Nelson Araujo avatar Kerberos avatar Christy Haragan avatar James Cloos avatar Rijnard van Tonder avatar Felipe Janer avatar Rafał Gajdulewicz avatar  avatar Murat Sutunc avatar Will Dollman avatar  avatar  avatar Christina Forney avatar Bill Creager avatar  avatar Chris Sells avatar Alex Fogg avatar Ryan avatar Prosper Otemuyiwa avatar Stephen Gutekanst avatar  avatar Rik avatar Sanjeev Sekar avatar  avatar TJ DeVries avatar Dulani Wallace avatar Taiyab Raja avatar  avatar Samson Goddy avatar Christoph Hegemann avatar Cesar Jimenez avatar Shivasurya avatar Rok Novosel avatar Jason Gornall avatar  avatar Vincent avatar Ryan Aznar avatar Serina Clark avatar Daniel Dides avatar Geoffrey Gilmore avatar Kevin Wojkovich avatar Megan avatar Rami avatar DJ Shinndig avatar Bill Caplan avatar Maedah Batool avatar  avatar Warren Gifford avatar Adham Khalifa avatar Nate Tang avatar Mohammad Alam avatar Ben Gordon avatar Erik Seliger avatar  avatar Alicja Suska avatar Robert Lin avatar  avatar  avatar

Forkers

isabella232

list-saved-searches's Issues

Dependency Dashboard

This issue contains a list of Renovate updates and their statuses.

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.