Re: PEP for module naming conventions

2011-03-11 Thread David Marek
Hi,

Have you read PEP 8? http://python.org/dev/peps/pep-0008/
I don't think it's possible to be sure that the name of your module
won't conflict with system module name (if you'll follow conventions).

You can find the list of all PEPs at http://python.org/dev/peps/

-- 
David Marek
dav...@atrey.karlin.mff.cuni.cz
http://davidmarek.cz


On Fri, Mar 11, 2011 at 10:52 PM, Tim Johnson  wrote:
> I need to be better informed on naming conventions for modules.  For
> instance, I need to create a new module and I want to make sure that
> the module name will not conflict with any future or current python
> system module names.
>
> There may be a PEP for this, if so, a URL to such a PEP would
> suffice for my inquiry. Also, if there is an index of PEPs, a link
> to such would also be appreciated.
>
> thanks
> --
> Tim
> tim at johnsons-web.com or akwebsoft.com
> http://www.akwebsoft.com
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A Question on URLLIB

2011-03-15 Thread David Marek
You are doing fine so far :-)

However, urllib is quite low level module. Do you know mechanize
http://wwwsearch.sourceforge.net/mechanize/ ? I have used it in my
crawler. If you want to crawl a specific site for known data then
Scrapy http://scrapy.org/ could be useful too.

David Marek
dav...@atrey.karlin.mff.cuni.cz
http://davidmarek.cz

On Tue, Mar 15, 2011 at 7:10 AM, joy99  wrote:
> Dear Group,
> I am trying to construct a web based crawler with Python and for that
> I am using the URLLIB module, and  by doing
> import urllib and then trying with urllib.urlopen("url).
> Am I going fine?
> If some one can kindly highlight if I am doing any mistake.
> Best Regards,
> Subhabrata Banerjee.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list