What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.
wget -O- "http://stackoverflow.com/reputation"
--14:06:46--  http://stackoverflow.com/reputation
           => `-'
Resolving stackoverflow.com... 64.34.119.12
Connecting to stackoverflow.com|64.34.119.12|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
14:06:47 ERROR 404: Not Found.

I assume credential login is required for http://stackoverflow.com/reputation

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 http://stackoverflow.com/reputation 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 stackoverflow.com Dec 22 '10 at 21:27

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

add comment

2 Answers

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
add comment

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 meta.stackoverflow.com soon –  ajreal Dec 22 '10 at 6:23
1  
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: api.stackoverflow.com/1.0/users/your-id-here/reputation It may do what the OP is looking to do... –  Jon Dec 22 '10 at 22:12
add comment

You must log in to answer this question.

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