Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
NightMachinery committed Jul 6, 2020
1 parent 663f406 commit 84eb7e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/zsh/auto-load/others/scraping.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ function wgetm() {
function curlm() {
curl --silent --fail --location --cookie-jar "$(mktemp)" --header "$(cookies-auto "$@")" "$@"
}
function cookies-copy() {
ec "theCookies=$(cookies-auto "$@") $(gq "$@")" | pbcopy
}
getcookies() {
mdoc "[cookiesFile= ] $0 <url>
Will output Chrome's cookies for the given URL in key=val;key2=val2
Expand Down

0 comments on commit 84eb7e9

Please sign in to comment.