0

I want to download a site with specific cookies set. I tried SiteSucker but found there are no options to set headers. So I could not set a cookie.

Are there other Mac tools or apps I can use?

2
  • I've added a rather general answer about how to use curl for this. If you need the answer to be more specifically tailored to the problem you are facing, please add details about how the cookies get created in the first place and how you identify their values.
    – nohillside
    Jul 30, 2019 at 6:11
  • 1
    wget can download an entire website; however, it is not a default utility in macOS and would need to be installed either compiled directly from source code or install via Homebrew. Jul 30, 2019 at 10:59

1 Answer 1

1

You can use curl in Terminal for this. Besides man curl there is a tutorial available explaining the different usage scenarios. To set/use cookies you can use either

curl -b "sessionID=123456789" www.example.com

to set a cookie value directly, or use the --dump-headers, -c and -b options for more elaborate cases.

2
  • this command cannot download entire site, it just download one page
    – Moon soon
    Jul 30, 2019 at 10:36
  • @TangMonk You can install wget via Homebrew which supports both cookies and recursive downloads.
    – nohillside
    Jul 30, 2019 at 11:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .