joshuadunlop commited on
Commit
7f81f12
·
verified ·
1 Parent(s): 90ac6ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -30,9 +30,6 @@ def get_backlinks(api_login, api_key, target_url, filters):
30
  # Check if the response contains 'results' key and handle the JSON structure appropriately
31
  if response.status_code == 200:
32
  response_data = response.json()
33
-
34
- # Debugging: Print out the keys of the response_data
35
- st.text(f"Keys in response JSON: {list(response_data.keys())}")
36
 
37
  if 'tasks' in response_data:
38
  # Assuming there is only one task and one result within each task
@@ -67,7 +64,7 @@ api_key = st.sidebar.text_input("API Key", type="password")
67
 
68
  # Filters input
69
  st.sidebar.title("Filters")
70
- st.text ("A maximum of 8 filters is allowed through the API, that includes one for every comma separated value below, one for every value not equal to 0 in the boxes below, one for language, and one for each button ticked.")
71
  url_from_not_contain = st.sidebar.text_input("URL from does not contain (comma-separated)", value="keyword,blogspot,/search,/tag")
72
  backlink_spam_score = st.sidebar.number_input("Backlink Spam Score ≤", value=20)
73
  page_from_rank_value = st.sidebar.number_input("Page From Rank Value ≥", value=0)
 
30
  # Check if the response contains 'results' key and handle the JSON structure appropriately
31
  if response.status_code == 200:
32
  response_data = response.json()
 
 
 
33
 
34
  if 'tasks' in response_data:
35
  # Assuming there is only one task and one result within each task
 
64
 
65
  # Filters input
66
  st.sidebar.title("Filters")
67
+ st.sidebar.text ("A maximum of 8 filters are allowed through the API. That includes one for every comma-separated value below, one for every value not equal to 0 in the boxes, one for language, and one for each button ticked.")
68
  url_from_not_contain = st.sidebar.text_input("URL from does not contain (comma-separated)", value="keyword,blogspot,/search,/tag")
69
  backlink_spam_score = st.sidebar.number_input("Backlink Spam Score ≤", value=20)
70
  page_from_rank_value = st.sidebar.number_input("Page From Rank Value ≥", value=0)