Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,10 @@ def get_backlinks(api_login, api_key, target_url, filters):
|
|
25 |
# Making the API request
|
26 |
response = requests.post("https://api.dataforseo.com/v3/backlinks/backlinks/live", json=post_data, headers=headers)
|
27 |
|
|
|
|
|
|
|
|
|
28 |
# Check if the response contains 'results' key
|
29 |
if response.status_code == 200 and 'results' in response.json():
|
30 |
# Extract the results
|
|
|
25 |
# Making the API request
|
26 |
response = requests.post("https://api.dataforseo.com/v3/backlinks/backlinks/live", json=post_data, headers=headers)
|
27 |
|
28 |
+
# Log the full response for debugging
|
29 |
+
st.text("API Response:")
|
30 |
+
st.json(response.json()) # This will display the full JSON response in the Streamlit app
|
31 |
+
|
32 |
# Check if the response contains 'results' key
|
33 |
if response.status_code == 200 and 'results' in response.json():
|
34 |
# Extract the results
|