Frikallo / stargazerz

Instantly Retrieve Email Addresses and Usernames of Stargazers from Designated Repositories, Achieving Unparalleled Speed and Efficiency - All Without the Need for an API Key.
https://pypi.org/project/stargazerz/
Apache License 2.0
10 stars 1 forks source link

ValueError: range() arg 3 must not be zero #1

Open ZekiJohn opened 1 month ago

ZekiJohn commented 1 month ago

I just run the example provided. didn't change anything but got this error

image

Carnewal commented 1 week ago

This happens because of the floor division to calculate the chunk_size returning 0 which is not valid

chunk_size = len(self.stargazers) // self.threads

To work around this you need to set threads to a value that would produce something > 1, for example

crawler = stargazerz.Crawler(threads=7, target="Frikallo/stargazerz")