Skip to content

Commit

Permalink
README: list numbering patched
Browse files Browse the repository at this point in the history
  • Loading branch information
circulosmeos committed May 11, 2023
1 parent b4a28cd commit 4a34185
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ Download protected files

Download of protected files can be done manually exporting browers' auth cookies. With firefox or chrome browsers:

1. authenticate in google drive or get access to the file download (and stop there, as you want to download it with gdown.pl)
1. authenticate in google drive or get access to the file download (and stop there, as you want to download it with gdown.pl)

2. Now the browser has all the needed cookies: install [cookies-txt for firefox](https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/) and export them (all), or [editthiscookie for chrome](https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en) (in this case, change in **Options** the format of exportation to **Netscape HTTP Cookie File**)
2. Now the browser has all the needed cookies: install [cookies-txt for firefox](https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/) and export them (all), or [editthiscookie for chrome](https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en) (in this case, change in **Options** the format of exportation to **Netscape HTTP Cookie File**)

3. if using firefox and "cookies-txt" addon, open the `cookies.txt` exported file and remove the string "#HttpOnly_" from all lines. With vim this suffices: ":%s/^#HttpOnly_//" (and ":wq" to exit). If you're an experienced txt master, maintain only "^[^\s]*.google.com" lines, and remove from them the string "#HttpOnly_".
3. if using firefox and "cookies-txt" addon, open the `cookies.txt` exported file and remove the string "#HttpOnly_" from all lines. With vim this suffices: ":%s/^#HttpOnly_//" (and ":wq" to exit). If you're an experienced txt master, maintain only "^[^\s]*.google.com" lines, and remove from them the string "#HttpOnly_".

4. copy the (cookies.txt) modified content (if using firefox and cookies-txt) or copy directly from the clipboard (if using chrome and editthiscookie addon) to `gdown.cookie.temp` file in the same directory where you'll run `gdown.pl`. Note that `gdown.cookie.temp` will be deleted after each download, so retain its data in order to use it multiple times (for example make a master copy, and copy it to `gdown.cookie.temp` before each run).
4. copy the (cookies.txt) modified content (if using firefox and cookies-txt) or copy directly from the clipboard (if using chrome and editthiscookie addon) to `gdown.cookie.temp` file in the same directory where you'll run `gdown.pl`. Note that `gdown.cookie.temp` will be deleted after each download, so retain its data in order to use it multiple times (for example make a master copy, and copy it to `gdown.cookie.temp` before each run).

5. run `gdown.pl` with your protected link
5. run `gdown.pl` with your protected link

6. It should now download the file, and any other file which needs access permissions with the account used in (1). But only until that session finishes.
6. It should now download the file, and any other file which needs access permissions with the account used in (1). But only until that session finishes.

Version
=======
Expand Down

0 comments on commit 4a34185

Please sign in to comment.