Skip to content

Instantly share code, notes, and snippets.

View schmichael's full-sized avatar

Michael Schurter schmichael

View GitHub Profile
#!/bin/sh
# Create an index with a single nested field "foo"
echo -n "Deleting... "
curl -XDELETE localhost:9200/testmissing
echo ""
echo -n "Creating... "
curl -XPOST localhost:9200/testmissing -d '{
"settings": {
"number_of_shards": 1
from pyquery import PyQuery
import requests
from random import choice
url = 'http://www.johnsmarketplace.com/Kegs/'
query = 'td table tr'
def main():