nvuillam / github-dependents-info

Collect information about dependencies between a github repo and other repositories. Results available in JSON, markdown and badge
https://pypi.org/project/github-dependents-info/
MIT License
106 stars 7 forks source link

correct total dependents count #607

Open jzhang533 opened 5 months ago

jzhang533 commented 5 months ago

Description

Change to extract total_dependents

seems extracting total_dependents from the html page is incorrect, probably because GH has updated the page. this PR solve the issue.

before

github-dependents-info --repo nvuillam/github-dependents-info will output:

WARNING:root:WARNING: Unable to get integer from ""
WARNING:root:WARNING: Unable to get integer from ""
Total: 11
Public: 11 (145 stars)
Private: -11

after

github-dependents-info --repo nvuillam/github-dependents-info will output:

Total: 12
Public: 11 (145 stars)
Private: 1

a timedelay option

a timedelay option has been added, this controls how long to wait (use time.sleep) between two requests to github, this is useful for repository with a very long dependents list.

Related Issue

not found

Type of Change

Checklist

jzhang533 commented 3 weeks ago

@nvuillam Can you take a look at this PR sometime?