Selenium project allowing to automatically claim current free e-book at PacktPub.com using provided credentials.
ReCAPTCHA was introduced in the claiming process. Consider using the combination of my 2 userscripts (Grasemonkey/Tampermonkey) instead:
Note: Log into your PacktPub.com account and let browser remember you, before you activate above scripts.
In order to use this app you need to download one of the Selenium WebDrivers appropriate for the browser that you have installed on your PC.
Currently supported browsers are:
- Firefox (Mozilla GeckoDriver) ✅ tested
- Chrome (Google Chrome Driver) ✅ tested
- Opera (Opera)
- Edge (Microsoft Edge Driver)
- Internet Explorer - latest drivers can be downloaded from http://www.seleniumhq.org/download
Important: The brower must have support for jQuery in order to let app run properly.
For example, if you want to use Firefox, add environment variable with key webdriver.gecko.driver
and value containing path\to\your\gecko\driver.exe
. Alternatively, you can provide this variable during free-book-claimer execution as java VM variable -Dwebdriver.gecko.driver=path\to\your\gecko\driver.exe
.
Once you imported project, in your run configuration provide email
and password
(in that order!) as command-line arguments. They will be used to log in using your account at PacktPub.com.
Run the app and claim your free book with no effort!