Giter VIP home page Giter VIP logo

Comments (3)

spier avatar spier commented on September 5, 2024 1

At least when searching for repos on github.com, you can search like this:
org:meltwater is:public topic:drone

That would return all public repos from my org meltwater containing the topic drone.

I see that in your code you use this right now:
all_repos = gh.repositories()

Instead it might be something similar to this, of course replacing things accordingly based on your .env:
all_repos = gh.search_repositories("org:meltwater is:public topic:drone")

Note: I didn't try this out yet.

from innersource-crawler.

spier avatar spier commented on September 5, 2024

I noticed that in the current implementation you are fetching all repos accessible via the GH Access Token, rather than searching for repos with a given topic only.

Searching by topic would likely bring down the amount of API calls you need quite a bit as well.

Did you choose the current implementation because you don't want to limit this to a single GitHub org?

from innersource-crawler.

zkoppert avatar zkoppert commented on September 5, 2024

@spier Good question! I did it this way because I couldn't figure out how to only fetch repos with a given topic. That would be much more efficient! Any ideas on how to do that?

from innersource-crawler.

Related Issues (9)

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.