try to wget tags.js
This commit is contained in:
@@ -37,6 +37,7 @@ class ReserveResultPojo:
|
||||
url_validated = None
|
||||
created_at = None
|
||||
validated_at = None
|
||||
ip_address = None
|
||||
|
||||
@staticmethod
|
||||
def from_firestore_dict(source):
|
||||
@@ -79,11 +80,16 @@ class ReserveResultPojo:
|
||||
ip_country = source['ip_country']
|
||||
else:
|
||||
ip_country = "FR"
|
||||
if 'current_ip' in source:
|
||||
current_ip = source['current_ip']
|
||||
else:
|
||||
current_ip = None
|
||||
|
||||
result = ReserveResultPojo(type=publish_type, phone=phone,
|
||||
url=url, mail=email,
|
||||
first_name=firstName, last_name=lastName)
|
||||
result.store = store
|
||||
result.ip_address = current_ip
|
||||
result.ip_country = ip_country
|
||||
if 'accepted' in source:
|
||||
accepted = source['accepted']
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
TAGS_JS_FILE_URL = "https://d.digital.hermes/tags.js"
|
||||
def download_tags_file(url):
|
||||
import wget
|
||||
_file_name = wget.download(url)
|
||||
print(_file_name)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
download_tags_file(TAGS_JS_FILE_URL)
|
||||
Reference in New Issue
Block a user