<gh_stars>1-10
import requests

url = "https://ocrly-image-to-text.p.rapidapi.com/"

querystring = {"imageurl":"https://4ww1y37tl91gmoej12r01u1c-wpengine.netdna-ssl.com/wp-content/uploads/2019/08/TextDocument.png","filename":"sample.jpg"}

headers = {
    'x-rapidapi-key': "<KEY>",
    'x-rapidapi-host': "ocrly-image-to-text.p.rapidapi.com"
    }

response = requests.request("GET", url, headers=headers, params=querystring)

f = open("test.txt", "w")
f.write(response.text)

import requests

url = "https://ocrly-image-to-text.p.rapidapi.com/"

querystring = {"imageurl":"https://4ww1y37tl91gmoej12r01u1c-wpengine.netdna-ssl.com/wp-content/uploads/2019/08/TextDocument.png","filename":"sample.jpg"}

headers = {
    'x-rapidapi-key': "<KEY>",
    'x-rapidapi-host': "ocrly-image-to-text.p.rapidapi.com"
    }

response = requests.request("GET", url, headers=headers, params=querystring)

f = open("test.txt", "w")
f.write(response.text)