Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Python 3 #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions adidas_account_creator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import requests
import time
from BeautifulSoup import BeautifulSoup
from bs4 import BeautifulSoup
from GmailDotEmailGenerator import GmailDotEmailGenerator

def account_successfully_created(response):
Expand Down Expand Up @@ -31,7 +31,7 @@ def account_successfully_created(response):
csrftoken = BeautifulSoup(r.text).find('input',
{ 'name': 'CSRFToken' }).get('value')

print "** Found CSRFToken: {0}".format(csrftoken)
print("** Found CSRFToken: {0}".format(csrftoken))

s.headers.update({
'Origin': 'https://cp.adidas.com',
Expand Down Expand Up @@ -63,7 +63,7 @@ def account_successfully_created(response):
} )


print "Username = {0}, Password = {1}, Account created? {2}".format(email, password, account_successfully_created(r))
print("Username = {0}, Password = {1}, Account created? {2}".format(email, password, account_successfully_created(r)))

time.sleep(5)
# print dir(r)
1 change: 1 addition & 0 deletions src/gmaildotemailgenerator
Submodule gmaildotemailgenerator added at f46482
5 changes: 5 additions & 0 deletions src/pip-delete-this-directory.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This file is placed here by pip to indicate the source was put
here by pip.

Once this package is successfully installed this source code will be
deleted (unless you remove this file).