Skip to content

Commit

Permalink
Merge pull request #18 from ThreeGiantNoobs/update_doc
Browse files Browse the repository at this point in the history
updated docs
  • Loading branch information
k4anubhav authored Oct 2, 2021
2 parents 10f33d3 + dd01b8f commit 7b78a6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions NOOB.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This scrapper can scrape through [Chegg.com](https://www.chegg.com) and create an html file to save the content locally.
The repository can be used in Chegg-Scraping Bots or for downloading the webpage.
###How To Use ??
First of all, download the latest release from [here](https://github.com/ThreeGiantNoobs/chegg-scraper/releases/latest)
First, download the latest release from [here](https://github.com/ThreeGiantNoobs/chegg-scraper/releases/latest)

After unzipping, install the requirements by using

Expand All @@ -22,8 +22,8 @@ Now in order to run the file, use

There are 2 optional arguments

-url or -u --> To enter the page url
-cookie or -c --> To enter the cookies file path
--url or -u --> To enter the page url
--cookie or -c --> To enter the cookies file path

Cookies are supported in 2 formats, ``cookie.txt`` or ``cookie.json``
For .txt format, copy the cookie from `document.cookies` from the Browser console
Expand All @@ -33,7 +33,7 @@ Once the cookie file is made, You need to add the cookie file in the project fol

####Example for Usage

python Downloader.py -c path/to/the/file -u "https://chegg.com/using-chegg-scraper"
python Downloader.py -c path/to/the/cookie/file.txt -u "https://chegg.com/using-chegg-scraper"
If the cookie is saved as cookie.txt or cookie.json in the project folder you can run the following as:

python Downloader.py -u "https://chegg.com/using-chegg-scraper"
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ Download Chegg homework-help questions to html files, these html files are self
<li>
You will not need you chegg account to open these files later.
</li>
<li>
(Optional) It's preferred to have internet access to load css, and some js . [preffer to host files eg: localhost or someOtherDomain]
</li>
</details>


Expand Down Expand Up @@ -102,9 +99,9 @@ Download Chegg homework-help questions to html files, these html files are self

```
ALL ARGUMENTS ARE OPTIONAL
-u or -url > URL of Chegg
-c or -cookie > Path of Cookie file (Defualt: cookie.txt)
-s or -save > file path, where you want to save, put inside " "
-u or --url > URL of Chegg
-c or --cookie > Path of Cookie file (Defualt: cookie.txt)
-s or --save > file path, where you want to save, put inside " "
```
Expand Down

0 comments on commit 7b78a6d

Please sign in to comment.