import requests

# API URL
# You can change 'summarize' to different endpoints: sentiment, keywords, etc.
api_url = "https://www.summarizebot.com/api/summarize?apiKey=&size=20" \
          "&keywords=10" \
          "&fragments=15" \
          "&url=https://politics.theonion.com/john-kelly-resigns-in-last-ditch-effort-to-save-his-and-1830989628"
r = requests.get(api_url)
print(r.status_code)
json_res = r.json()
print(json_res)

220c8fe2604375669851d575184ea4401f478d06
<mask token>

<mask token>
print(r.status_code)
<mask token>
print(json_res)

<mask token>
api_url = (
    'https://www.summarizebot.com/api/summarize?apiKey=&size=20&keywords=10&fragments=15&url=https://politics.theonion.com/john-kelly-resigns-in-last-ditch-effort-to-save-his-and-1830989628'
    )
r = requests.get(api_url)
print(r.status_code)
json_res = r.json()
print(json_res)

import requests
api_url = (
    'https://www.summarizebot.com/api/summarize?apiKey=&size=20&keywords=10&fragments=15&url=https://politics.theonion.com/john-kelly-resigns-in-last-ditch-effort-to-save-his-and-1830989628'
    )
r = requests.get(api_url)
print(r.status_code)
json_res = r.json()
print(json_res)

import requests

# API URL
# You can change 'summarize' to different endpoints: sentiment, keywords, etc.
api_url = "https://www.summarizebot.com/api/summarize?apiKey=&size=20" \
          "&keywords=10" \
          "&fragments=15" \
          "&url=https://politics.theonion.com/john-kelly-resigns-in-last-ditch-effort-to-save-his-and-1830989628"
r = requests.get(api_url)
print(r.status_code)
json_res = r.json()
print(json_res)
