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


Loading…
Cancel
Save