= opener.open(url, params)
resp = usock.read()
usock.close()
...
regards,
Subeen.
--
http://mail.python.org/mailman/listinfo/python-list
,
Subeen.
http://love-python.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 6, 3:17 pm, James Pilling [EMAIL PROTECTED] wrote:
Hi im currently starting to learn python in sixth form at school any tips?
Just pickup a good book and make sure you code all the examples and
exercises yourself, even if it seems easy.
Have fun with Python!
regards,
Subeen.
http://love
tips and codes on
crawlers.
http://love-python.blogspot.com/
regards,
Subeen
http://love-python.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
at:
http://speed-dev.blogspot.com/2008/06/non-interactive-ssh-in-linux.html
regards,
Subeen.
--
http://mail.python.org/mailman/listinfo/python-list
a time-out mechanism that worked under all circumstances. My
client-side scripts would usually hang when the server quit
responding, which happened a lot.
You can avoid the problem using the following code:
import socket
timeout = 300 # seconds
socket.setdefaulttimeout(timeout)
regards,
Subeen
is slightly faster I
have heard, though I don't find the difference myself. Both are
compatible with *nix. For writing a good crawler, language is not
important, it's the technology which is important.
regards,
Subeen.
http://love-python.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python
On Jun 10, 12:15 am, Stefan Behnel [EMAIL PROTECTED] wrote:
subeen wrote:
can use urllib2 module and/or beautiful soup for developing crawler
Not if you care about a) speed and/or b) memory efficiency.
http://blog.ianbicking.org/2008/03/30/python-html-parser-performance/
Stefan
ya
.
--
http://mail.python.org/mailman/listinfo/python-list
check this link for http post:
http://love-python.blogspot.com/2008/04/get-content-html-source-of-url-by-http.html
regards,
Subeen
--
http://mail.python.org/mailman/listinfo/python-list
it via the main program.
I won't be working with an UI, hope that can be made easily in Python
somehow.
Cheers,
Guillermo
You can try this command: nohup python script.py
regards,
Subeen.
http://love-python.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
place for python blog - the idea is good. I also think that
python blog will help python to be more popular.
You can also take a look at my blog: http://love-python.blogspot.com/
and suggest me how to make it better.
regards,
Subeen.
--
http://mail.python.org/mailman/listinfo/python-list
a GUI application in Python.
--
Kam-Hung Soh a href=http://kamhungsoh.com/blog;Software Salariman/a
I also haven't used GUI in python yet. I basically write web crawlers/
spiders in Python where GUI is not essential.
regards,
Subeen
http://love-python.blogspot.com/
--
http://mail.python.org
On Apr 18, 12:31 pm, Adam [EMAIL PROTECTED] wrote:
Hi, everyone, I am using /usr/share/system-config-language/
language_gui.py in Python.
For some reason I have to bypass the firewall using a proxy. I read
the urllib reference and set http_proxy=my proxy. But it didn't
work. Is there anyway
? (If so, he didn't mention this in his book).
You have to set the path in your run time environment.
regards,
Subeen.
http://love-python.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
:
http://love-python.blogspot.com/2008/02/execute-linux-commands-in-python.html
regards,
subeen.
http://love-python.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
' is a good book for people who
have experience with other languages. It's available free here:
http://www.diveintopython.org/
regards,
Subeen
http://love-python.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
rstrip() works fine in python 2.4.3. May be the problem lies in
somewhere else.
I tried it in FC6 with Python 2.4.3:
url = abc.com\n
url.rstrip()
'abc.com'
regards,
Subeen.
http://love-python.blogspot.com/
On Feb 29, 2:30 am, dirkheld [EMAIL PROTECTED] wrote:
Hi,
I wrote some python code
://www.onlamp.com/pub/a/python/2005/06/02/logging.html
regards,
Subeen
http://love-python.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 25, 1:01 am, Tamer Higazi [EMAIL PROTECTED] wrote:
Question:
Which is the most loved template engine for python?
I am learning MAKO and I think it's good. But can't tell that it's the
best as I didn't try others. :)
regards,
Subeen.
http://love-python.blogspot.com/
--
http
This link may help:
http://love-python.blogspot.com/2008/02/execute-linux-commands-in-python.html
On Feb 23, 10:44 am, Max [EMAIL PROTECTED] wrote:
Is there a Python equivalent of C++'s system()?
TIA
--
http://mail.python.org/mailman/listinfo/python-list
Another way to avoid using global variables is to return more than one
values from the function.
Here is an example that may help you to understand it:
def foo(a, b, c):
a += c
b += c
return a, b
a = 5
b = 10
c = 2
print a, b
a, b = foo(a, b, c)
print a, b
regards,
Subeen.
http
Dive into Python is a very good book but it's for people who have
experience in other languages. I liked the book.
Whatever book you read, please take a look at the Python Tutorial:
http://docs.python.org/tut/tut.html, it will help.
regards,
Subeen.
http://love-python.blogspot.com/
On Feb 21
Searching for FF automation but still no luck.
Any other idea on how to locate the cache directory and then read the
directory ?
regards,
Subeen
http://love-python.blogspot.com/
On Feb 20, 3:20 am, Gabriel Genellina [EMAIL PROTECTED]
wrote:
Search for firefox automation
--
Gabriel
I think you should go for 'dictionary' that is a built-in data
structure of Python.
regards,
Subeen
http://love-python.blogspot.com/
On Feb 20, 7:32 pm, Jorge Vargas [EMAIL PROTECTED] wrote:
2008/2/20 Jarek Zgoda [EMAIL PROTECTED]: Jorge Vargas napisa³(a):
- attribute access (or index
the page in a file and parse it. But how to save
the page without human intervention (pressing ctrl+s) :) ?
Hope I could make it clear what I am trying to do...
Any clue?
regards,
Subeen.
http://love-python.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
You can use the round() function. And if you want to print, use %0.2f
regards,
Subeen.
http://love-python.blogspot.com/
On Feb 19, 9:36 am, [EMAIL PROTECTED] (Aahz) wrote:
In article [EMAIL PROTECTED],
katie smith [EMAIL PROTECTED] wrote:
in python im doing the problem 255/494
hmm... interesting
here is another way you can find prime numbers
http://love-python.blogspot.com/2008/02/find-prime-number-upto-100-nums-range2.html
On Feb 13, 9:31 pm, [EMAIL PROTECTED] wrote:
I was reading up on this site [http://www.noulakaz.net/weblog/
website.
Regards,
Subeen.
On Feb 12, 11:37 am, W. Watson [EMAIL PROTECTED] wrote:
PHP. Well, that's a new one on me. Google gave me some idea of what it's
about, and I found some code on how to do it. It requires yet another
programming language, which means finding the editor, etc.
Jon
Another way:
import urllib2
usock = urllib2.urlopen('http://abc.com')
data = usock.read()
usock.close()
print data
On Feb 12, 12:05 am, Stefan Behnel [EMAIL PROTECTED] wrote:
Hi,
shashank jain top-posted:
On Feb 11, 2008 11:15 PM, Stefan Behnel [EMAIL PROTECTED] wrote:
jainshasha
This website can be helpful for Python newbies: http://love-python.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
the next permutation and check if it's a valid
solution. Need to use recursion for this.
regards,
Subeen.
--
http://mail.python.org/mailman/listinfo/python-list
/to/quicksort.py. Make quicksort.py
write to a file the result. After the quicksort.py finishes, read the
file from your normal C# app.
Cheers.
Hi, what's the C# function to call python interpreter?
regards,
Subeen.
--
http://mail.python.org/mailman/listinfo/python-list
, the quicksort.py will be
called and it will sort the numbers.
regards,
Subeen
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 21, 7:24 pm, Chris Mellon [EMAIL PROTECTED] wrote:
On 8/21/07, Ant [EMAIL PROTECTED] wrote:
On Aug 21, 11:01 am, subeen [EMAIL PROTECTED] wrote:
Hi,
...
But I want to write the GUI and number generation program in C#.net.
When the user clicks Quick Sort button
34 matches
Mail list logo