-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Counter #26
Fixed Counter #26
Conversation
phishing_sites = int(i[1]) | ||
safe_sites = int(i[2]) | ||
reported_sites = int(i[3]) | ||
# for i in counter_data(total=total,phishing=phishing,safe_site=safe_site,reported=reported): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the commented piece of code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore
@@ -95,10 +99,12 @@ def check(): | |||
if output is True: | |||
mysqldata_insert(seurl,inurl) # For appending data if it is a phising site | |||
phishing += 1 | |||
counter_data(total,phishing,safe_site,'w') | |||
counter_data(total,phishing,safe_site,reported,'w') | |||
print('Updated') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the print statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore
with open('counter_data.txt') as file: | ||
total_scanned, phishing_sites, safe_sites, reported_sites = (file.read()).split() | ||
|
||
counter = [['Sites Scanned', total_scanned], ['Safe Sites', safe_sites], ['Phishing Sites', phishing_sites], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To change:
- Remove the extra lines and commented code.
- Make changes so the reported variable is not saved as 0 every time the data will be written.
Fixed Counter