<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Reliance Wireless broadband auto-login (and logout) script(s)</title>
	<atom:link href="http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/</link>
	<description>Laziness. Impatience. Hubris.</description>
	<lastBuildDate>Tue, 07 Feb 2012 11:36:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: ravi nankani</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-26916</link>
		<dc:creator>ravi nankani</dc:creator>
		<pubDate>Mon, 12 Sep 2011 14:41:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-26916</guid>
		<description>Hi kunal , 
first of all congrats and thanks for the wonderful script . I would however like to suggest 1 change.
why not use import time and run time.sleep( duration ) in an infinite loop.. 
That way you dont need to schedule a cron job in the system  , and it will run beautifully on windows systems too .
Just a side suggestion , but you have done the hard part :P
cheers
Ravi</description>
		<content:encoded><![CDATA[<p>Hi kunal ,<br />
first of all congrats and thanks for the wonderful script . I would however like to suggest 1 change.<br />
why not use import time and run time.sleep( duration ) in an infinite loop..<br />
That way you dont need to schedule a cron job in the system  , and it will run beautifully on windows systems too .<br />
Just a side suggestion , but you have done the hard part :P<br />
cheers<br />
Ravi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shuvam</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-26795</link>
		<dc:creator>Shuvam</dc:creator>
		<pubDate>Mon, 01 Aug 2011 16:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-26795</guid>
		<description>Please could somebody upload a video somewhere with a link to show us how to use this wonderful script ??</description>
		<content:encoded><![CDATA[<p>Please could somebody upload a video somewhere with a link to show us how to use this wonderful script ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vashishtha</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-26703</link>
		<dc:creator>vashishtha</dc:creator>
		<pubDate>Tue, 05 Jul 2011 21:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-26703</guid>
		<description>Hey...

I am a new reliance broadband customer. I need this script to work but I keep facing this error:

Traceback (most recent call last):
  File &quot;C:\Reliance-autologin.py&quot;, line 24, in 
    resp = opener.open(&#039;http://reliancebroadband.co.in/reliance/logout.do&#039;, login_data)
  File &quot;C:\Python32\lib\urllib\request.py&quot;, line 364, in open
    req = meth(req)
  File &quot;C:\Python32\lib\urllib\request.py&quot;, line 1052, in do_request_
    raise TypeError(&quot;POST data should be bytes&quot;
TypeError: POST data should be bytes or an iterable of bytes. It cannot be str.

Please help. I am using Windows 7 with Python v3.2 (64 bit)</description>
		<content:encoded><![CDATA[<p>Hey&#8230;</p>
<p>I am a new reliance broadband customer. I need this script to work but I keep facing this error:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;C:\Reliance-autologin.py&#8221;, line 24, in<br />
    resp = opener.open(&#8216;<a href="http://reliancebroadband.co.in/reliance/logout.do&#039;" rel="nofollow">http://reliancebroadband.co.in/reliance/logout.do&#039;</a>, login_data)<br />
  File &#8220;C:\Python32\lib\urllib\request.py&#8221;, line 364, in open<br />
    req = meth(req)<br />
  File &#8220;C:\Python32\lib\urllib\request.py&#8221;, line 1052, in do_request_<br />
    raise TypeError(&#8220;POST data should be bytes&#8221;<br />
TypeError: POST data should be bytes or an iterable of bytes. It cannot be str.</p>
<p>Please help. I am using Windows 7 with Python v3.2 (64 bit)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elba</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-26484</link>
		<dc:creator>Elba</dc:creator>
		<pubDate>Thu, 12 May 2011 01:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-26484</guid>
		<description>Unless we get a storm system that stalls and dumps a lo﻿t of rain in the area in a short per﻿iod of time, the Corps of Engineers says that we should﻿ not be having the a﻿mount of flooding problems that Iow﻿a has been having.</description>
		<content:encoded><![CDATA[<p>Unless we get a storm system that stalls and dumps a lo﻿t of rain in the area in a short per﻿iod of time, the Corps of Engineers says that we should﻿ not be having the a﻿mount of flooding problems that Iow﻿a has been having.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sikha</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-26251</link>
		<dc:creator>Sikha</dc:creator>
		<pubDate>Fri, 25 Feb 2011 15:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-26251</guid>
		<description>I don&#039;t know how to use this script. Anybody help me?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know how to use this script. Anybody help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deep Dubey</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-16632</link>
		<dc:creator>Deep Dubey</dc:creator>
		<pubDate>Thu, 23 Sep 2010 22:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-16632</guid>
		<description>Hi Rahul. can you plz share how you soeted that out. i am also getting same error.

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi Rahul. can you plz share how you soeted that out. i am also getting same error.</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-16589</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Thu, 23 Sep 2010 06:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-16589</guid>
		<description>Sorry ... I got it sorted out.... :-)</description>
		<content:encoded><![CDATA[<p>Sorry &#8230; I got it sorted out&#8230;. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-16588</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Thu, 23 Sep 2010 06:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-16588</guid>
		<description>&gt;&gt;&gt; Python Auto_login.py
  File &quot;&quot;, line 1
    Python Auto_login.py
                    ^
SyntaxError: invalid syntax

I am getting an error like this when i try running this script...</description>
		<content:encoded><![CDATA[<p>&gt;&gt;&gt; Python Auto_login.py<br />
  File &#8220;&#8221;, line 1<br />
    Python Auto_login.py<br />
                    ^<br />
SyntaxError: invalid syntax</p>
<p>I am getting an error like this when i try running this script&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarang Gokhale</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-16146</link>
		<dc:creator>Sarang Gokhale</dc:creator>
		<pubDate>Wed, 15 Sep 2010 12:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-16146</guid>
		<description>i did a slight modification to the code and included the waiting time of 20hrs each time the login id successful (since my session resets every 24hrs)

import urllib, http.cookiejar, time, subprocess

username = &#039;1111111111111111&#039;
password = &#039;password&#039;
host = &quot;209.85.231.104&quot;

while True: 
	out = subprocess.call(&quot;ping -n 5 %s&quot; % host,
		stdout=None,
		stderr=None
	)
	if out == 1:
		jar = http.cookiejar.FileCookieJar(&quot;cookies&quot;)
		opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(jar))
		login_data = urllib.parse.urlencode({&#039;userId&#039; : username, &#039;password&#039; : password, &#039;action&#039; : &#039;doLoginSubmit&#039;})
		resp = opener.open(&#039;http://10.239.89.15/reliance/login.do&#039;, login_data)
		print(resp)
		time.sleep(5)
		check = subprocess.call(&quot;ping -n 1 %s&quot; % host,
		stdout=None,
		stderr=None
		)
		if check == 0:
			time.sleep(72000)
	time.sleep(60)

fyi the 209.85.231.104 is ip of google. i used it to check if the login is successful.</description>
		<content:encoded><![CDATA[<p>i did a slight modification to the code and included the waiting time of 20hrs each time the login id successful (since my session resets every 24hrs)</p>
<p>import urllib, http.cookiejar, time, subprocess</p>
<p>username = &#8217;1111111111111111&#8242;<br />
password = &#8216;password&#8217;<br />
host = &#8220;209.85.231.104&#8243;</p>
<p>while True:<br />
	out = subprocess.call(&#8220;ping -n 5 %s&#8221; % host,<br />
		stdout=None,<br />
		stderr=None<br />
	)<br />
	if out == 1:<br />
		jar = http.cookiejar.FileCookieJar(&#8220;cookies&#8221;)<br />
		opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(jar))<br />
		login_data = urllib.parse.urlencode({&#8216;userId&#8217; : username, &#8216;password&#8217; : password, &#8216;action&#8217; : &#8216;doLoginSubmit&#8217;})<br />
		resp = opener.open(&#8216;<a href="http://10.239.89.15/reliance/login.do&#039;" rel="nofollow">http://10.239.89.15/reliance/login.do&#039;</a>, login_data)<br />
		print(resp)<br />
		time.sleep(5)<br />
		check = subprocess.call(&#8220;ping -n 1 %s&#8221; % host,<br />
		stdout=None,<br />
		stderr=None<br />
		)<br />
		if check == 0:<br />
			time.sleep(72000)<br />
	time.sleep(60)</p>
<p>fyi the 209.85.231.104 is ip of google. i used it to check if the login is successful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kunal</title>
		<link>http://www.kunaldua.com/blog/2009/12/reliance-wireless-broadband-auto-login-script/comment-page-1/#comment-16131</link>
		<dc:creator>Kunal</dc:creator>
		<pubDate>Wed, 15 Sep 2010 09:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.kunaldua.com/blog/?p=330#comment-16131</guid>
		<description>You can simply schedule the login scripts to run every 10 minutes.</description>
		<content:encoded><![CDATA[<p>You can simply schedule the login scripts to run every 10 minutes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

