I tried using the proxy instructed by PythonAnywhere but I am still getting the same error.
Code:
proxies = {'http': 'proxy.server:3128', 'https': 'proxy.server:3128'}
article_content = requests.get(f'https://api.worldnewsapi.com/extract-news?url={response["results"][article_index]["link"]}&analyze=false&api-key={extract_content_key}', proxies=proxies).json()
Error:
requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.worldnewsapi.com', port=443): Max retries exceeded with url: /extract-news?url=https://investorplace.com/market360/2023/08/bypassing-bitcoin-how-mara-stock-offers-an-alternative-crypto-play/&analyze=false&api-key={mykey} (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))