Make all Python scripts executable and add findAlreadyTreatedCommentsCount.py to find how many comments were already treated

This commit is contained in:
Benjamin Loison 2023-01-07 15:45:31 +01:00
parent 3758405f52
commit 3ae0f4e924
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8
6 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/usr/bin/python3
PREFIX = 'Comments per second: '
alreadyTreatedCommentsCount = 0
with open('nohup.out') as f:
lines = f.read().splitlines()
for line in lines:
if PREFIX in line:
alreadyTreatedCommentsCount += int(line.split(PREFIX)[-1])
print(alreadyTreatedCommentsCount)

0
findLatestTreatedCommentsForChannelsBeingTreated.py Normal file → Executable file
View File

0
findTreatedChannelWithMostComments.py Normal file → Executable file
View File

0
findTreatedChannelWithMostSubscribers.py Normal file → Executable file
View File

0
removeChannelsBeingTreated.py Normal file → Executable file
View File

0
retrieveTop100SubscribersFrance.py Normal file → Executable file
View File