Skip to content

Instantly share code, notes, and snippets.

View gokulapap's full-sized avatar

Gokul AP gokulapap

View GitHub Profile
@gokulapap
gokulapap / ocr.py
Last active January 19, 2023 16:01
A Simple OCR Script
import requests
from bs4 import BeautifulSoup
img = input("Enter the input image : ")
url = "https://ocr.asprise.com/api/v1/general"
files = {'file': open(img, 'rb')}
params = {"api_key": "TEST", "detect_table": "true", "filename": "img.jpg", "fileSize": 1000, "filetype":"image/jpeg"}
req = requests.post(url, params=params, files=files)
@gokulapap
gokulapap / transfer.sh
Created September 15, 2021 06:27
file sharing api
# copy this file to env and just use this api to upload files and get sharable link
# transfer.sh {path_of_file_to_upload}
# example : transfer ./test.pdf
curl http://transfer.sh --upload-file $1
@gokulapap
gokulapap / cookie_stealer.js
Last active April 1, 2025 07:35
simple cookie stealer script
@gokulapap
gokulapap / imgur.sh
Last active September 15, 2021 06:28
Upload image and get sharable links
#!/usr/bin/env bash
default_client_id=c9a6efb3d7932fd
client_id="${IMGUR_CLIENT_ID:=$default_client_id}"
# Function to output usage instructions
function usage {
echo "Usage: $(basename $0) [<filename|URL> [...]]" >&2
echo
echo "Upload images to imgur and output their new URLs to stdout. Each one's" >&2