From 2e4f9b94e2860eb0a158de43a612309c7f25ec0d Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 29 Jan 2017 00:51:24 -0800 Subject: [PATCH 1/4] Add Visual Studio project --- .gitignore | 1 + adidas-account-creator.pyproj | 28 ++++++++++++++++++++++++++++ adidas-account-creator.sln | 20 ++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .gitignore create mode 100644 adidas-account-creator.pyproj create mode 100644 adidas-account-creator.sln diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..88dbff1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vs/ diff --git a/adidas-account-creator.pyproj b/adidas-account-creator.pyproj new file mode 100644 index 0000000..afe6bd7 --- /dev/null +++ b/adidas-account-creator.pyproj @@ -0,0 +1,28 @@ + + + + Debug + 2.0 + {c6ef2f76-5ae4-4641-900c-126cb1e2e53a} + + adidas_account_creator.py + + . + . + {888888a0-9f3d-457c-b088-3a5042f75d52} + Standard Python launcher + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets + + + + + + + \ No newline at end of file diff --git a/adidas-account-creator.sln b/adidas-account-creator.sln new file mode 100644 index 0000000..46674b6 --- /dev/null +++ b/adidas-account-creator.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "adidas-account-creator", "adidas-account-creator.pyproj", "{C6EF2F76-5AE4-4641-900C-126CB1E2E53A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C6EF2F76-5AE4-4641-900C-126CB1E2E53A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C6EF2F76-5AE4-4641-900C-126CB1E2E53A}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal From b5bf8470f169e2d32a47fdae7b8788abb197cab5 Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 29 Jan 2017 00:56:38 -0800 Subject: [PATCH 2/4] Add GmailDotEmailGenerator subproject --- src/gmaildotemailgenerator | 1 + src/pip-delete-this-directory.txt | 5 +++++ 2 files changed, 6 insertions(+) create mode 160000 src/gmaildotemailgenerator create mode 100644 src/pip-delete-this-directory.txt diff --git a/src/gmaildotemailgenerator b/src/gmaildotemailgenerator new file mode 160000 index 0000000..f464823 --- /dev/null +++ b/src/gmaildotemailgenerator @@ -0,0 +1 @@ +Subproject commit f464823b1a0a6f5fed1d90f1e50015bf02881dae diff --git a/src/pip-delete-this-directory.txt b/src/pip-delete-this-directory.txt new file mode 100644 index 0000000..c8883ea --- /dev/null +++ b/src/pip-delete-this-directory.txt @@ -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). From 590746a6a6f111ff4c478f3a544d14bab925e194 Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 29 Jan 2017 00:57:17 -0800 Subject: [PATCH 3/4] Update to Python 3 --- adidas_account_creator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adidas_account_creator.py b/adidas_account_creator.py index 62476f8..d1bd67e 100644 --- a/adidas_account_creator.py +++ b/adidas_account_creator.py @@ -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): @@ -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', @@ -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) From fe38120d5695e466e6100976ee770609475bf58b Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 15 Feb 2017 21:36:18 -0800 Subject: [PATCH 4/4] Remove Visual Studio project --- .gitignore | 1 - adidas-account-creator.pyproj | 28 ---------------------------- adidas-account-creator.sln | 20 -------------------- 3 files changed, 49 deletions(-) delete mode 100644 .gitignore delete mode 100644 adidas-account-creator.pyproj delete mode 100644 adidas-account-creator.sln diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 88dbff1..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.vs/ diff --git a/adidas-account-creator.pyproj b/adidas-account-creator.pyproj deleted file mode 100644 index afe6bd7..0000000 --- a/adidas-account-creator.pyproj +++ /dev/null @@ -1,28 +0,0 @@ - - - - Debug - 2.0 - {c6ef2f76-5ae4-4641-900c-126cb1e2e53a} - - adidas_account_creator.py - - . - . - {888888a0-9f3d-457c-b088-3a5042f75d52} - Standard Python launcher - - - - - - - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets - - - - - - - \ No newline at end of file diff --git a/adidas-account-creator.sln b/adidas-account-creator.sln deleted file mode 100644 index 46674b6..0000000 --- a/adidas-account-creator.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "adidas-account-creator", "adidas-account-creator.pyproj", "{C6EF2F76-5AE4-4641-900C-126CB1E2E53A}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C6EF2F76-5AE4-4641-900C-126CB1E2E53A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C6EF2F76-5AE4-4641-900C-126CB1E2E53A}.Release|Any CPU.ActiveCfg = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal