Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates
wget -O- ""
           => `-'
Connecting to||:80... connected.
HTTP request sent, awaiting response... 404 Not Found
14:06:47 ERROR 404: Not Found.

I assume credential login is required for

So, what is the necessary login setting required for this?

The background story is the idiot (me) who tends to purge unselected answers (even with up votes) on SO, and my curiosity driving me to click button "Trigger Reputation Recalc" on does ...

So, long story short, since that, close to 2,000 reputation is purged (manage to recover about 1,000 reputation, but still missed the another 1,000)

And want to create a personal backup ...

share|improve this question

migrated from Dec 22 '10 at 21:27

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

Currently, the SO API doesn't support authentication, although it is scheduled for V2. So the answer to your question is that you have to lower yourself to web-scraping to do this.

But as Jon comments above, you don't need authentication for this: reputation is public information.

If you do want to write cookie-passing web-scraping code, you'll almost certainly find curl easier than wget, even if you have a reasonable grasp of wget. Look at Daniel Stenberg's tutorial; section 10 deals with cookies.

share|improve this answer

SO uses cookies rather than login credentials with each request. The whole OpenID thing would make it rather hard to provide credentials with each request. You would need to export your cookies from your browser so you can tell wget to send them along with your request.

Check here for a Firefox extension that will extract your cookies.

And here is an example of using cookies with wget and curl - not for SO specifically but it should point you in the right direction.

Alternatively, maybe the API might be able to do what you want easier?

share|improve this answer
i think i kind of off-topic, will move to soon – ajreal Dec 22 '10 at 6:23
Apparently the API supports no kind of authentication, and so can only access information that is visible to everyone. – Charles Stewart Dec 22 '10 at 21:33
couldn't you also, ya know, push a cookie in the post header? or does wget not allow sending a header to the server? (nm, the link says how to do that, duh) – jcolebrand Dec 22 '10 at 21:55
@Charles Stewart there's a fair amount of information that's visible to everyone: It may do what the OP is looking to do... – Jon Dec 22 '10 at 22:12

You must log in to answer this question.

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