github-tooling / ghtopdep

:star: CLI tool for sorting dependents repo by stars
MIT License
261 stars 18 forks source link

Feature request: Include results for all packages #31

Open korthout opened 1 year ago

korthout commented 1 year ago

I've used ghtopdep to collect details about the usage of a project I maintain https://github.com/korthout/backport-action. This action is available under two packages and so dependents are tracked for each:

ghtopdep only looks at the dependents of the most popular package.

I would like ghtopdep to include the results of the other packages. Note that some dependents may be encountered in both packages, so duplicates should be removed.

zer0yu commented 10 months ago

Hi, you can try my tool written in Go. You can see example 5. I hope it will be helpful for your questions.

https://github.com/zer0yu/ghtracker

tobiasdiez commented 3 months ago

Workaround: Change https://github.com/github-tooling/ghtopdep/blob/992fa4dba2a2f7ffa2f1b8c72fc100d91d9ae7dd/ghtopdep/ghtopdep.py#L176 to

page_url = "{0}/network/dependents?dependent_type={1}&package_id=<package id>".format(url, destination.upper())

where the package id can be found in the url by navigating to the dependency graph of the repo and selecting the correct package.