0
tweets = []
try:
     response_json = connect_to_endpoint(search_url, headers, params)
    print("Response received successfully.")
except Exception as e:
    print(f"An error occurred: {e}")
    response_json = {}

ERROR IM GETTING

 File <string>:4
    print("Response received successfully.")
                                            ^
IndentationError: unindent does not match any outer indentation level

need to get the code RIGHT

New contributor
Olaitan Olupo is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.