Because Chegg only gave few days (free trial) to access their solutions for free when I rent their books so I decided to create a web crawler to save all the needed solutions.
You will need to install Visual C++ Runtime 2013 in order to run the application.
I created this prototype after few hours so I just used simple and easy to implement, but the idea can be replicate in any languages.
- C# winform (You need to have Visual Studio)
- I used HtmlAgilityPack for parsing Html.
- I used awesome CefSharp for interacting with web pages.
First, you need to have a Chegg account that has access to the book solutions you are going to crawl.
After that, go to Chegg website and grab the login redirect url of the first solution page. For example: https://www.chegg.com/auth?action=login&redirect=https%3A%2F%2Fwww.chegg.com%2Fhomework-help%2Fsurvey-of-accounting-8th-edition-chapter-a-problem-1e-solution-9781337517386&reset_password=0
Run the application, provide the url into the first box, username, password and finally the result folder.
Step 1: Go to your the solution page that you need to download (remember to log out before doing this)
Step 2: Click Sign in and copy the URL:
Step 3: Open the program. Copy the URL to the URL box. Enter your username and password (if you login with FB, you don't need), output folder. Click execute