Ran and updated the API extract script for Williams-Sonoma.

This commit is contained in:
Norm Rasmussen
2025-02-27 15:31:23 -05:00
parent 011f47d102
commit 46efc9a422
3 changed files with 7 additions and 4 deletions

View File

@ -0,0 +1 @@
<0E>˴<>M<EFBFBD><4D><EFBFBD>6<13>"<22>X5<58>'<27><>|<7C><>3]<5D><><EFBFBD><EFBFBD><EFBFBD>8F<38><46><EFBFBD>Z@<40><>CA<><41>eI<65><49>ҕ<EFBFBD>XDj<44><6A><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD>a<EFBFBD>n><3E><>I<EFBFBD>D<10>y0o<30>vxDܑ<44><DC91><EFBFBD>K#u<><75>r<EFBFBD>Ё)'>b<><62>䵎q<08><><EFBFBD>E}K<>sd<73>X<EFBFBD>#U<><06><>|<1A><>BJ<42>j9??5C<><43>1ׁx<D781>ˌ<EFBFBD><CB8C>b<0F>^<5E><><EFBFBD>B9 <18>y<EFBFBD>蹁m<E8B981>&<01><7A>

Binary file not shown.

View File

@ -2,19 +2,21 @@ import requests
import subprocess
import gzip
import urllib.request
import sys
import os
import base64
# Variables of the needed elements
extract_id = "ENTER_EXTRACT_ID"
auth_token = "ENTER_AUTH_TOKEN"
extract_id = sys.argv[2]
# auth_token = sys.argv[3]
base_url = "https://analytics.northpass.io/extracts"
encryption_key = "ENTER_ENCRYPTION_KEY"
encryption_key = sys.argv[3]
current_dir = "./"
# Set the API endpoint, authentication headers, and other parameters
headers = {
"accept": "application/json",
"X-Api-Key": "ENTER_API_KEY",
"X-Api-Key": sys.argv[1],
}