Skip to content

Instantly share code, notes, and snippets.

@bitsgalore
Created June 23, 2020 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitsgalore/167562939d73c56b4d8f51b6ba6bdb0d to your computer and use it in GitHub Desktop.
Save bitsgalore/167562939d73c56b4d8f51b6ba6bdb0d to your computer and use it in GitHub Desktop.
#! /usr/bin/env python3
from warcio.capture_http import capture_http
import requests
def main():
# Existing warc.gz file (created with wget, then compressed using warcio's
# 'recompress' command)
with capture_http("ziklies.home.xs4all.nl.warc.gz"):
for indexOnder in range(1, 8):
for indexMidden in range(1, 8):
for indexTop in range(1, 8):
vOnder = str(indexOnder) + 'a'
vMidden = str(indexMidden) + 'b'
vTop = str(indexTop) + 'c'
requests.post("http://ziklies.home.xs4all.nl/cgi-bin/barbie.cgi",
data={'onder':vOnder, 'midden':vMidden, 'top':vTop})
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment