Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzoul committed Apr 2, 2023
1 parent d082496 commit b58b0d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
*.env
*airlines_update.py
*cleanup.py
8 changes: 6 additions & 2 deletions airlines_update.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
from dotenv import load_dotenv
import os
import requests

load_dotenv(".env")

airline_headers = {
"X-RapidAPI-Key": "78cff0cd39mshe26bf15ae20c3cbp149cf8jsn5b10c6c19240",
"X-RapidAPI-Key": os.getenv("X_RAPIDAPI_KEY"),
"X-RapidAPI-Host": "iata-and-icao-codes.p.rapidapi.com"
}

Expand All @@ -10,7 +14,7 @@
headers=airline_headers
).json()

SHEETY_AUTH = ("zoul", "#72rv+vaesj7t#")
SHEETY_AUTH = ("zoul", os.getenv("SHEETY_AUTH"))

for i in range(len(airline_response)):
sheety_params = {
Expand Down
6 changes: 5 additions & 1 deletion cleanup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
from dotenv import load_dotenv
import os
import os
import requests
import json
from urllib.parse import urlencode
from ratelimit import limits
from retry import retry

load_dotenv(".env")

# CONFIGURATION
apiKey = "0cbd30c1b43d45e6842d72f5faa5675e"
apiKey = os.getenv("REBRANDLY_AUTH")
domainFullname = "flywithinbudget.link"

# CONSTRAINTS
Expand Down

0 comments on commit b58b0d5

Please sign in to comment.