Skip to content

Instantly share code, notes, and snippets.

@nikop nikop/
Last active Dec 17, 2015

What would you like to do?
CDON Varastosaldo
import urllib, urllib.request
import http, http.cookiejar
import re
import argparse
parser = argparse.ArgumentParser()
args = parser.parse_args()
m3 ='(\d+)$',
o = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(http.cookiejar.CookieJar()))
data = {
'quantity': 10000,
'type': 'json',
'ticket': 'null',
post = urllib.parse.urlencode(data).encode('utf-8')
r ='', post)
t ='utf-8')
c ='')
t2 = str('utf-8'))
m ='input type="hidden" name="product-quantity-(\d+)" value="(\d+)"', t2)
m2 ='(\d+)">([^<]+)</a>', t2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.