scapy

2008-08-09 Thread jonbutler88
I have macpython 2.5 installed, but I cant seem to get scapy installed. I have downloaded scapy.py, and put it in site-packages, for both my /Library/Python/2.5/site-packages and the one located in / System. Scapy fails to import. Is there another site-packages? Or a better way to install it? I am

Re: HTMLParser error

2008-05-22 Thread jonbutler88
On May 22, 9:59 am, alex23 <[EMAIL PROTECTED]> wrote: > On May 22, 6:22 pm, [EMAIL PROTECTED] wrote: > > > Still getting very odd errors though, this being the latest: > > > Traceback (most recent call last): > >   File "spider.py", line 38, in > > [...snip...] > >     raise InvalidURL("nonnumeric

Re: HTMLParser error

2008-05-22 Thread jonbutler88
On May 22, 2:40 am, alex23 <[EMAIL PROTECTED]> wrote: > On May 22, 8:18 am, [EMAIL PROTECTED] wrote: > > > Sorry, im new to both python and newsgroups, this is all pretty > > confusing. So I need a line in my __init__ function of my class? The > > spider class I made inherits from HTMLParser. Its j

Re: HTMLParser error

2008-05-21 Thread jonbutler88
On May 21, 11:08 am, alex23 <[EMAIL PROTECTED]> wrote: > On May 21, 8:04 pm, alex23 <[EMAIL PROTECTED]> wrote: > > > Is your Spider class a subclass ofHTMLParser? Is it over-riding > > __init__? If so, is it doing something like: > > >     super(Spider, self).__init__() > > > If this is your issue[

Re: Typeerror

2008-05-21 Thread jonbutler88
On May 21, 9:58 am, Freaky Chris <[EMAIL PROTECTED]> wrote: > This is a simple error, you are passing the variable res as an interger to > use for a slice when what ever you are storing in res isn't an integer. > > Chris > > > > Beema shafreen wrote: > > > Hi all, > > I getting the following error

Re: HTMLParser error

2008-05-21 Thread jonbutler88
On May 21, 9:53 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Wed, 21 May 2008 01:18:00 -0700 (PDT), [EMAIL PROTECTED] > declaimed the following in comp.lang.python: > > > Any ideas of how to fix this? Im using python 2.5.2 on mac osx > >         In the absence of minimal runable code repro

HTMLParser error

2008-05-21 Thread jonbutler88
Just writing a simple website spider in python, keep getting these errors, not sure what to do. The problem seems to be in the feed() function of htmlparser. Traceback (most recent call last): File "spider.py", line 38, in s.crawl(site) File "spider.py", line 30, in crawl self.parse(u