Browse Source

Minor updates to url-analyzer.py

master
Pekka Helenius 3 years ago
parent
commit
9cb367222d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      code/url-analyzer.py

+ 3
- 3
code/url-analyzer.py View File

@ -27,7 +27,7 @@ TODO: consistency of RDN usage in HTML data
######################################
#%matplotlib notebook
#%matplotlib inline
import matplotlib.pyplot as plt
from bs4 import BeautifulSoup as bs
@ -708,7 +708,7 @@ class write_operations(object):
fetch_json_data = json_url_data()
for u in urls:
print("Fetching URL data: %s" % u)
print("URL data: %s" % u)
try:
data_parts.update(fetch_json_data.get_url_data(u))
except:
@ -808,7 +808,7 @@ if __name__ == '__main__':
# Get URLs from an available JSON data
for key_url in json_data.keys():
print("Generating statistics: %s" % key_url)
print("Generate statistics: %s" % key_url)
fig = plt.figure()
fig_params = {


Loading…
Cancel
Save