Skip to main content
Ease of reading edit. Added source fences with language codes.
Source Link
bad_coder
  • 28k
  • 8
  • 51
  • 132

The users page is doing XMLhttpRequestsXMLhttpRequests to update the list of users as you type. You can use it to just get the information for one user at a time.

curl -F filter="username_in_lowercase" https://stackoverflow.com/users/browser-filter

curl -F filter="username_in_lowercase" https://stackoverflow.com/users/browser-filter

egE.g:

curl -F filter="sam hasler" https://stackoverflow.com/users/browser-filter

curl -F filter="sam hasler" https://stackoverflow.com/users/browser-filter
<table style="width:940px; margin-left:20px; margin-top:-10px;">
    <tr>
    <td>

<div class="user-info">
    
    <div class="user-action-time"><br /></div>
    <div class="user-gravatar32"><a href="/users/2541/sam-hasler"><img src="http://www.gravatar.com/avatar/5377323bbe24824de512a6a077fc77a3?s=32&d=identicon&r=PG" height=32 width=32 /></a></div>
    <div class="user-details"><a href="/users/2541/sam-hasler">Sam Hasler</a><br/><span class="reputation-score" title="reputation score">3,289</span><span title="5 silver badge(s)"><span class="badge2">&#9679;</span><span class="badgecount">5</span></span><span title="21 bronze badge(s)"><span class="badge3">&#9679;</span><span class="badgecount">21</span></span></div>
    
</div>
    </tr>
</table>        
<div style="float:right; margin-bottom:20px;">
    <div class="pager">

</div> 
</div>
<table style="width:940px; margin-left:20px; margin-top:-10px;">
    <tr>
    <td>

<div class="user-info">
    
    <div class="user-action-time"><br /></div>
    <div class="user-gravatar32"><a href="/users/2541/sam-hasler"><img src="http://www.gravatar.com/avatar/5377323bbe24824de512a6a077fc77a3?s=32&d=identicon&r=PG" height=32 width=32 /></a></div>
    <div class="user-details"><a href="/users/2541/sam-hasler">Sam Hasler</a><br/><span class="reputation-score" title="reputation score">3,289</span><span title="5 silver badge(s)"><span class="badge2">&#9679;</span><span class="badgecount">5</span></span><span title="21 bronze badge(s)"><span class="badge3">&#9679;</span><span class="badgecount">21</span></span></div>
    
</div>
    </tr>
</table>        
<div style="float:right; margin-bottom:20px;">
    <div class="pager">

</div> 
</div>
curl -s -F filter="username in lowercase" https://stackoverflow.com/users/browser-filter | grep reputation-score | sed -e "s/<[^>]*>/ /g;s/&#9679;//g"
curl -s -F filter="username in lowercase" https://stackoverflow.com/users/browser-filter | grep reputation-score | sed -e "s/<[^>]*>/ /g;s/&#9679;//g"
      Sam Hasler   3,289     5      21
Sam Hasler   3,289     5      21

The users page is doing XMLhttpRequests to update the list of users as you type. You can use it to just get the information for one user at a time.

curl -F filter="username_in_lowercase" https://stackoverflow.com/users/browser-filter

eg:

curl -F filter="sam hasler" https://stackoverflow.com/users/browser-filter

<table style="width:940px; margin-left:20px; margin-top:-10px;">
    <tr>
    <td>

<div class="user-info">
    
    <div class="user-action-time"><br /></div>
    <div class="user-gravatar32"><a href="/users/2541/sam-hasler"><img src="http://www.gravatar.com/avatar/5377323bbe24824de512a6a077fc77a3?s=32&d=identicon&r=PG" height=32 width=32 /></a></div>
    <div class="user-details"><a href="/users/2541/sam-hasler">Sam Hasler</a><br/><span class="reputation-score" title="reputation score">3,289</span><span title="5 silver badge(s)"><span class="badge2">&#9679;</span><span class="badgecount">5</span></span><span title="21 bronze badge(s)"><span class="badge3">&#9679;</span><span class="badgecount">21</span></span></div>
    
</div>
    </tr>
</table>        
<div style="float:right; margin-bottom:20px;">
    <div class="pager">

</div> 
</div>
curl -s -F filter="username in lowercase" https://stackoverflow.com/users/browser-filter | grep reputation-score | sed -e "s/<[^>]*>/ /g;s/&#9679;//g"
      Sam Hasler   3,289     5      21

The users page is doing XMLhttpRequests to update the list of users as you type. You can use it to just get the information for one user at a time.

curl -F filter="username_in_lowercase" https://stackoverflow.com/users/browser-filter

E.g:

curl -F filter="sam hasler" https://stackoverflow.com/users/browser-filter
<table style="width:940px; margin-left:20px; margin-top:-10px;">
    <tr>
    <td>

<div class="user-info">
    
    <div class="user-action-time"><br /></div>
    <div class="user-gravatar32"><a href="/users/2541/sam-hasler"><img src="http://www.gravatar.com/avatar/5377323bbe24824de512a6a077fc77a3?s=32&d=identicon&r=PG" height=32 width=32 /></a></div>
    <div class="user-details"><a href="/users/2541/sam-hasler">Sam Hasler</a><br/><span class="reputation-score" title="reputation score">3,289</span><span title="5 silver badge(s)"><span class="badge2">&#9679;</span><span class="badgecount">5</span></span><span title="21 bronze badge(s)"><span class="badge3">&#9679;</span><span class="badgecount">21</span></span></div>
    
</div>
    </tr>
</table>        
<div style="float:right; margin-bottom:20px;">
    <div class="pager">

</div> 
</div>
curl -s -F filter="username in lowercase" https://stackoverflow.com/users/browser-filter | grep reputation-score | sed -e "s/<[^>]*>/ /g;s/&#9679;//g"
Sam Hasler   3,289     5      21
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

It's also possible to fetch the HTML for user badges.

The users page is doing XMLhttpRequests to update the list of users as you type. You can use it to just get the information for one user at a time.

curl -F filter="username_in_lowercase" http://stackoverflow.com/users/browser-filterhttps://stackoverflow.com/users/browser-filter

eg:

curl -F filter="sam hasler" http://stackoverflow.com/users/browser-filterhttps://stackoverflow.com/users/browser-filter

returns:

<table style="width:940px; margin-left:20px; margin-top:-10px;">
    <tr>
    <td>

<div class="user-info">
    
    <div class="user-action-time"><br /></div>
    <div class="user-gravatar32"><a href="/users/2541/sam-hasler"><img src="http://www.gravatar.com/avatar/5377323bbe24824de512a6a077fc77a3?s=32&d=identicon&r=PG" height=32 width=32 /></a></div>
    <div class="user-details"><a href="/users/2541/sam-hasler">Sam Hasler</a><br/><span class="reputation-score" title="reputation score">3,289</span><span title="5 silver badge(s)"><span class="badge2">&#9679;</span><span class="badgecount">5</span></span><span title="21 bronze badge(s)"><span class="badge3">&#9679;</span><span class="badgecount">21</span></span></div>
    
</div>
    </tr>
</table>        
<div style="float:right; margin-bottom:20px;">
    <div class="pager">

</div> 
</div>

If you want to know your rep and badge count from the command line just use this:

curl -s -F filter="username in lowercase" httphttps://stackoverflow.com/users/browser-filter | grep reputation-score | sed -e "s/<[^>]*>/ /g;s/&#9679;//g"

Currently for me this gives the output:

      Sam Hasler   3,289     5      21

It's also possible to fetch the HTML for user badges.

The users page is doing XMLhttpRequests to update the list of users as you type. You can use it to just get the information for one user at a time.

curl -F filter="username_in_lowercase" http://stackoverflow.com/users/browser-filter

eg:

curl -F filter="sam hasler" http://stackoverflow.com/users/browser-filter

returns:

<table style="width:940px; margin-left:20px; margin-top:-10px;">
    <tr>
    <td>

<div class="user-info">
    
    <div class="user-action-time"><br /></div>
    <div class="user-gravatar32"><a href="/users/2541/sam-hasler"><img src="http://www.gravatar.com/avatar/5377323bbe24824de512a6a077fc77a3?s=32&d=identicon&r=PG" height=32 width=32 /></a></div>
    <div class="user-details"><a href="/users/2541/sam-hasler">Sam Hasler</a><br/><span class="reputation-score" title="reputation score">3,289</span><span title="5 silver badge(s)"><span class="badge2">&#9679;</span><span class="badgecount">5</span></span><span title="21 bronze badge(s)"><span class="badge3">&#9679;</span><span class="badgecount">21</span></span></div>
    
</div>
    </tr>
</table>        
<div style="float:right; margin-bottom:20px;">
    <div class="pager">

</div> 
</div>

If you want to know your rep and badge count from the command line just use this:

curl -s -F filter="username in lowercase" http://stackoverflow.com/users/browser-filter | grep reputation-score | sed -e "s/<[^>]*>/ /g;s/&#9679;//g"

Currently for me this gives the output:

      Sam Hasler   3,289     5      21

It's also possible to fetch the HTML for user badges.

The users page is doing XMLhttpRequests to update the list of users as you type. You can use it to just get the information for one user at a time.

curl -F filter="username_in_lowercase" https://stackoverflow.com/users/browser-filter

eg:

curl -F filter="sam hasler" https://stackoverflow.com/users/browser-filter

returns:

<table style="width:940px; margin-left:20px; margin-top:-10px;">
    <tr>
    <td>

<div class="user-info">
    
    <div class="user-action-time"><br /></div>
    <div class="user-gravatar32"><a href="/users/2541/sam-hasler"><img src="http://www.gravatar.com/avatar/5377323bbe24824de512a6a077fc77a3?s=32&d=identicon&r=PG" height=32 width=32 /></a></div>
    <div class="user-details"><a href="/users/2541/sam-hasler">Sam Hasler</a><br/><span class="reputation-score" title="reputation score">3,289</span><span title="5 silver badge(s)"><span class="badge2">&#9679;</span><span class="badgecount">5</span></span><span title="21 bronze badge(s)"><span class="badge3">&#9679;</span><span class="badgecount">21</span></span></div>
    
</div>
    </tr>
</table>        
<div style="float:right; margin-bottom:20px;">
    <div class="pager">

</div> 
</div>

If you want to know your rep and badge count from the command line just use this:

curl -s -F filter="username in lowercase" https://stackoverflow.com/users/browser-filter | grep reputation-score | sed -e "s/<[^>]*>/ /g;s/&#9679;//g"

Currently for me this gives the output:

      Sam Hasler   3,289     5      21
Post Migrated Here from stackoverflow.com (revisions)
Post Made Community Wiki
Source Link
Sam Hasler
  • 4.2k
  • 3
  • 31
  • 36

It's also possible to fetch the HTML for user badges.

The users page is doing XMLhttpRequests to update the list of users as you type. You can use it to just get the information for one user at a time.

curl -F filter="username_in_lowercase" http://stackoverflow.com/users/browser-filter

eg:

curl -F filter="sam hasler" http://stackoverflow.com/users/browser-filter

returns:

<table style="width:940px; margin-left:20px; margin-top:-10px;">
    <tr>
    <td>

<div class="user-info">
    
    <div class="user-action-time"><br /></div>
    <div class="user-gravatar32"><a href="/users/2541/sam-hasler"><img src="http://www.gravatar.com/avatar/5377323bbe24824de512a6a077fc77a3?s=32&d=identicon&r=PG" height=32 width=32 /></a></div>
    <div class="user-details"><a href="/users/2541/sam-hasler">Sam Hasler</a><br/><span class="reputation-score" title="reputation score">3,289</span><span title="5 silver badge(s)"><span class="badge2">&#9679;</span><span class="badgecount">5</span></span><span title="21 bronze badge(s)"><span class="badge3">&#9679;</span><span class="badgecount">21</span></span></div>
    
</div>
    </tr>
</table>        
<div style="float:right; margin-bottom:20px;">
    <div class="pager">

</div> 
</div>

If you want to know your rep and badge count from the command line just use this:

curl -s -F filter="username in lowercase" http://stackoverflow.com/users/browser-filter | grep reputation-score | sed -e "s/<[^>]*>/ /g;s/&#9679;//g"

Currently for me this gives the output:

      Sam Hasler   3,289     5      21