Skip to content

Commit

Permalink
Debugging 7
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyRAFFY committed Aug 13, 2024
1 parent 2901554 commit 93dfe68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scrappey_proxy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
saved_cookies = []
saved_headers = {}

proxy = f"http://{PROXY_USERNAME}:{PROXY_PASSWORD}@{PROXY_INTERNAL_IP}:{PROXY_INTERNAL_PORT}"
proxy = f"{PROXY_USERNAME}:{PROXY_PASSWORD}@{PROXY_INTERNAL_IP}:{PROXY_INTERNAL_PORT}"
proxies = {"http": proxy, "https": proxy}

app = Flask(__name__)
Expand Down
2 changes: 1 addition & 1 deletion scrappey_proxy/scrappey.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ScrappeyResponse:
def get_scrappey(request: V1RequestBase, proxy_url: str | None = None):
logger.info(f"Calling scrappey for URL : {request.url}")

proxy_url = f"http://{PROXY_USERNAME}:{PROXY_PASSWORD}@{PROXY_EXTERNAL_IP}:{PROXY_EXTERNAL_PORT}"
proxy_url = f"https://{PROXY_USERNAME}:{PROXY_PASSWORD}@{PROXY_EXTERNAL_IP}:{PROXY_EXTERNAL_PORT}"
logger.debug(f"Using {proxy_url} as scrappey's proxy")

get_request_result = scrappey.get({"url": request.url, "proxy": proxy_url})
Expand Down

0 comments on commit 93dfe68

Please sign in to comment.