Skip to content

Commit

Permalink
chg: [generator] logging updated
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed Feb 1, 2022
1 parent df73d5c commit e72f112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
beautifulsoup4==4.9.1
beautifulsoup4
pyOpenSSL==19.1.0
python-dateutil==2.8.1
requests==2.24.0
requests
dnspython
pyasn1
pyasn1-modules
1 change: 1 addition & 0 deletions tools/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def download_to_file(url, file):
user_agent = {
"User-agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0"}
try:
logging.info(f'download_to_file - fetching url: {url}')
r = requests.head(url, headers=user_agent)
url_datetime = parsedate(r.headers['Last-Modified']).astimezone()
file_datetime = datetime.datetime.fromtimestamp(
Expand Down

0 comments on commit e72f112

Please sign in to comment.