Skip to content

Instantly share code, notes, and snippets.

@Undo1
Created January 30, 2014 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Undo1/1e703bfa7211ce04b7d1 to your computer and use it in GitHub Desktop.
Save Undo1/1e703bfa7211ce04b7d1 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>
Log In
</title>
<link rel="stylesheet" href="http://cdn.sstatic.net/stackexchange/all.css?v=82a32adb1cfc" type="text/css" />
<link rel="shortcut icon" href="http://cdn.sstatic.net/stackexchange/img/favicon.ico" />
<link rel="apple-touch-icon" href="http://cdn.sstatic.net/stackexchange/img/apple-touch-icon.png" />
<link rel="search" type="application/opensearchdescription+xml" title="Stack Exchange" href="/opensearch.xml" />
<!--[if IE]>
<script src="http://cdn.sstatic.net/stackexchange/js/third-party/html5shiv.js?v=9f4cac0f1832"></script>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
</script>
<script src="http://cdn.sstatic.net/stackexchange/js/third-party/jquery.cookie.js?v=bafd924fa942">
</script>
<script src="http://cdn.sstatic.net/stackexchange/js/master.js?v=153a719c336e">
</script>
<script type="text/javascript">
$(function () {
genuwine.init(undefined);
});
var imagePath='http://cdn.sstatic.net/stackexchange/Img/';
var inboxUnviewedCount = -1;
</script>
<script src="http://cdn.sstatic.net/stackexchange/js/global-login.js?v=34fe03400da2">
</script>
<script type="text/javascript">
gauth.checkStackAuth('https://stackauth.com');
gauth.informStackAuth('https://stackauth.com');
</script>
<meta http-equiv="X-XRDS-Location" content="http://stackexchange.com/yadis" />
<link rel="stylesheet" href="http://cdn.sstatic.net/stackexchange/openid.css?v=ca6a354dcf1c" type="text/css" />
<script src="http://cdn.sstatic.net/stackexchange/js/third-party/openid-jquery.js?v=fe486601a14e">
</script>
<script type="text/javascript">
$(function () {
var customProviders = "";
var imgPath = "http://cdn.sstatic.net/stackexchange/Img/openid/openid-logos.png?v=3";
openid.init('openid_identifier', customProviders, imgPath, true);
});
</script>
<style type="text/css">
#openid-url-input { margin-bottom:30px; margin-left:30px; }
.large { font-size:140%; }
</style>
</head>
<body>
<noscript>
<div id="noscript-padding">
</div>
</noscript>
<div class="wrapper">
<div id="overlay-header">
</div>
<section id="topBar">
<div class="contentWrapper">
<div id="portalLink">
<a class="genu" href="http://stackexchange.com">
Stack Exchange
</a>
</div>
<div class="search">
<form action="/search">
<input id="search" class="search-box" type="text" name="q" size="31" title="search all sites" />
</form>
</div>
<nav id="top">
<ul>
<li>
<a href="/users/login?returnurl=%2fusers%2flogin">
log in
</a>
</li>
<li>
<a href="http://chat.stackexchange.com/">
chat
</a>
</li>
<li>
<a href="http://meta.stackoverflow.com">
meta
</a>
</li>
<li>
<a href="/about">
about
</a>
</li>
</ul>
</nav>
</div>
</section>
<header>
<div class="contentWrapper">
<a href="/">
<h1>
Stack Exchange
</h1>
</a>
<ul class="navMain">
<li>
<a href="/sites">
All Sites
</a>
</li>
<li>
<a href="/questions">
Hot Questions
</a>
</li>
<li>
<a href="/leagues">
Top Users
</a>
</li>
<li>
<a href="/newsletters">
Newsletters
</a>
</li>
<li>
<a href="/blogs">
Blogs
</a>
</li>
</ul>
</div>
</header>
<section id="content">
<div class="contentWrapper">
<div id="mainArea">
<div class="page-description">
<div class="form-error">
</div>
<form id="openid_form" action="/users/authenticate" method="post">
<input type="hidden" name="fkey" value="182ca4bf22db2a506837d6cbf9af74ee" />
<!-- OAuth form elemnents -->
<input type="hidden" id="oauth_version" name="oauth_version" />
<input type="hidden" id="oauth_server" name="oauth_server" />
<!-- Simple OpenID Selector -->
<div id="openid_choice">
<p>
Do you already have an account on one of these sites? Click the logo to
<b>
log in
</b>
with it here:
</p>
<div id="openid_btns">
</div>
</div>
<div>
<noscript>
<p>
OpenID is a service that allows you to log on to many different websites using a single identity.
Find out
<a href="http://openid.net/what/">
more about OpenID
</a>
and
<a href="http://openid.net/get/">
how to get an OpenID enabled account
</a>
.
</p>
</noscript>
</div>
<div id="forgot-password" style="display: none;">
<p>
If you&rsquo;ve forgotten or lost your login information
</p>
<p style="margin-left:30px; margin-bottom:30px;">
<b style="font-size:130%">
<a href="/users/account-recovery">
click here to recover your account
</a>
</b>
</p>
</div>
<div id="affiliate-signup">
<p>
If you don&rsquo;t already have an account on any of the above
</p>
<p style="margin-left:30px; margin-bottom:30px;">
<b style="font-size:130%">
<a onclick="openid.loadSignup()">
click here to sign up
</a>
</b>
</p>
</div>
<noscript>
<div id="noscript-stackexchange-login">
<p>
If you already have a Stack Exchange account
</p>
<p>
<form method="post" action="/users/authenticate">
<input type="hidden" name="fkey" value="182ca4bf22db2a506837d6cbf9af74ee" />
<input type="hidden" name="openid_identifier" value="https://openid.stackexchange.com/" />
<input type="submit" value="click here to sign in" class="noscript-link-button" />
</form>
</p>
</div>
</noscript>
<!-- /Simple OpenID Selector -->
<div id="simple-openid-selector">
<div id="openid_input_area">
</div>
<p>
Or, you can manually enter your OpenID
</p>
<table id="openid-url-input">
<tr>
<td class="vt large">
<input id="openid_identifier" name="openid_identifier" class="openid-identifier inputField" type="text" tabindex="100" />
</td>
<td class="vt large">
<input id="submit-button" type="submit" value="Log In" tabindex="101" class="openid-submit" />
</td>
</tr>
</table>
</div>
</form>
</div>
</div>
<div id="sideBar">
<div class="module">
<h3>
Why OpenID?
</h3>
<p>
It's a single username and password that allows you to log in to any OpenID-enabled site.
</p>
<p>
It works on thousands of websites.
</p>
<p>
It's an open standard.
</p>
<p class="ar">
<a href="http://openid.net/what/">
learn more &raquo;
</a>
<br />
</p>
</div>
</div>
<br class="cbo" />
</div>
</section>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-5620270-24']);
_gaq.push(['_setDomainName', '.stackexchange.com']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
_qoptions = { qacct: "p-c1rF4kxgLUzNc" };
</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js">
</script>
<noscript>
<img src="http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" style="display:none; border:none; height:1px; width:1px" alt="Quantcast" />
</noscript>
</div>
<!-- end wrapper -->
<footer id="footer">
<div class="contentWrapper">
<div class="footerLinksSpaced">
<p>
<a href="/about">
about
</a>
<a href="http://blog.stackexchange.com">
blog
</a>
<a href="/legal">
legal
</a>
<a href="/legal/privacy-policy">
privacy policy
</a>
<a href="/about/contact">
contact us
</a>
<a href="http://meta.stackoverflow.com">
feedback always welcome
</a>
<a href="https://plus.google.com/+StackExchange" class="google-plus-icon" title="follow us on Google+">
</a>
<a href="http://www.facebook.com/stackexchange" class="facebook-icon" title="like us on Facebook">
</a>
<a href="http://twitter.com/stackexchange" class="twitter-icon" title="follow us on Twitter">
</a>
</p>
</div>
<p>
site design / logo &copy; 2014 stack exchange, inc; user contributions licensed under
<a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">
cc-wiki
</a>
with
<a href="http://blog.stackoverflow.com/2009/06/attribution-required/" rel="license">
attribution required
</a>
</p>
<div class="footer-meta-info">
2014.1.29.828
</div>
</div>
</footer>
<noscript>
<div id="noscript-warning">
Stack Exchange works best with JavaScript enabled
</div>
</noscript>
<script type="text/javascript">
$('#search')
.focus(function() {
if (this.value == this.title) {
this.value = '';
$(this).removeClass('search-box-blur');
}
})
.blur(function() {
if (this.value == '') {
this.value = this.title;
$(this).addClass('search-box-blur');
}
})
.blur();
settings = {};
settings.contentPath = "http://cdn.sstatic.net/stackexchange";
</script>
</body>
</html>
Traceback (most recent call last):
File "test.py", line 19, in <module>
a.loginChat()
File "/home/parker/ChatExchange/ChatBrowser.py", line 32, in loginChat
authToken=chatlogin.find('input',{"name":"authToken"})['value']
TypeError: 'NoneType' object has no attribute '__getitem__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment