Skip to content

Instantly share code, notes, and snippets.

@icosane
Last active August 10, 2021 21:03
Show Gist options
  • Save icosane/937eae3b4422622a3da26ab62d3075c9 to your computer and use it in GitHub Desktop.
Save icosane/937eae3b4422622a3da26ab62d3075c9 to your computer and use it in GitHub Desktop.
very simple Pythonista script to search for anime images in Safari using SauceNao
import appex
from objc_util import UIApplication, nsurl
if appex.get_attachments():
url = appex.get_attachments()[0]
app = UIApplication.sharedApplication()
search = 'https://saucenao.com/search.php?&url='
best = search + url
app.openURL_(nsurl(best))
appex.finish()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment