python-progressbar
python-progressbar copied to clipboard
ValueError: Value 40 is out of range, should be between 0 and 39
Hello WoLpH, I hope you are doing well.
Thank you for your amazing project, it's very helpful.
Description
I get the following error:
Traceback (most recent call last):
File "C:\Users\Menna\Desktop\funny\memes\delete.py", line 66, in <module>
for url in pbar(data):
File "C:\Users\Menna\AppData\Local\Programs\Python\Python310\lib\site-packages\progressbar\bar.py", line 550, in __next__
self.update(self.value + 1)
File "C:\Users\Menna\AppData\Local\Programs\Python\Python310\lib\site-packages\progressbar\bar.py", line 661, in update
raise ValueError(
ValueError: Value 40 is out of range, should be between 0 and 39
Code
-
Save the code below as
main.pyhttps://pastebin.com/xrm7kZkU -
Install waybackpack (GitHub repo)
pip install waybackpack -
Run the following command:
main.py -u tiredarabwoman -from 20220126 -
After a minute, you'll get this prompt: 2 deleted Tweets have been found. Would you like to download them all? Type yes or no. Type yes and press Enter. You should get the error above.
Versions
- Python version: 3.10.0
- Python distribution/environment: Command Prompt
- Operating System: Windows 10
- Package version: 4.0.0
Thank you again.