Commit d692c3ca authored by Melroy van den Berg's avatar Melroy van den Berg

small fixes

parent 7bf07d6e
......@@ -63,7 +63,7 @@ try:
mp.load_marktplaats_form(data)
except (KeyboardInterrupt, SystemExit):
print (TextColor.OKGREEN + "Exit, bye bye.")
print (TextColor.OKGREEN + "Exit, bye bye." + TextColor.ENDC)
if mp:
# close connection
mp.close()
......
......@@ -44,8 +44,7 @@ class Marktplaats(MozRepl):
Input(s): url - page to load
blocking_url - url (beginning of url) that waits until changed differently (blocking until changed to another URL)
"""
# Keep bucket empty, not interested
url = "https://www.marktplaats.nl/syi/" + data['category'].value + "/plaatsAdvertentie.html?bucket=&complete=true&origin=HEADER&title=Test&attribute[condition]=31&attribute[level]=1950&attribute[orientation]=1955&price.bidding=free-bidding&description=blah&price.value=25,50&acceptPaypal=true&contactInformation.sellerName=Melroy&contactInformation.phoneNumber=0628814764&contactInformation.postCode=6605DW"
url = "https://www.marktplaats.nl/syi/" + data['category'].value + "/plaatsAdvertentie.html?title=Test&description=blah&price.value=25,50&acceptPaypal=true&price.bidding=free-bidding&attribute[condition]=31&attribute[level]=1950&attribute[orientation]=1955"
blocking_url = b'"' + url.encode('utf-8')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment