Skip to content

Instantly share code, notes, and snippets.

@jso8910
Created July 1, 2020 01:31
Show Gist options
  • Save jso8910/6bf54975a005e8f89598dee599bc12e4 to your computer and use it in GitHub Desktop.
Save jso8910/6bf54975a005e8f89598dee599bc12e4 to your computer and use it in GitHub Desktop.
import requests
token = 'YOUR.TOKEN.HERE'
query = 'THING TO SEARCH'
when = 'EARLIEST IT CAN BE POSTED (RELATIVE)'
excluding = 'STRING TO EXCLUDE'
requiring = 'STRING TO REQUIRE'
response = requests.get('http://0.0.0.0:5000/api?query=' + query +
'&time=' + when +
'&exclude=' + excluding +
'&require=' + requiring + '
&token=' + token)
print(response.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment