-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: object of type 'NoneType' has no len() #1
Comments
No problem, I'll fix this up on Wednesday, most other dorks should work fine. Please let me know if you find one that doesn't ;) |
How should it work? fgeek@kludge:~/scm/GooDork$ python GooDork.py foobar 200 Traceback (most recent call last): |
Are you working behind a proxy perhaps? On 4/2/12, Henri Salo
|
Nah It's not that, I'll check this out when I get home, sorry about On 4/2/12, Keith Makan k3170makan@gmail.com wrote:
|
Sorry for a bad bug-report. I previously did not have time to properly test this, but now I did I found out that the problem only occurs with Python 2.7, but not with 2.7.2. |
No no its appreciated dude. Please let me know if you need anything else! I just dropped new commit here https://github.com/k3170makan/GooDork |
Did you test your code at all? This is from your examples:
fgeek@kludge:~/scm/GooDork$ python GooDork.py site:.gov -bMissile
Searching >>site:.gov<<
200
OKContent-Type: text/html; charset=ISO-8859-1
Date: Mon, 02 Apr 2012 11:48:24 GMT
Expires: -1
Cache-Control: private, max-age=0
Set-Cookie: PREF=ID=efa8410ddb6f0998:FF=0:TM=1333367304:LM=1333367304:S=TkSWw9kHWwzULIcL; expires=Wed, 02-Apr-2014 11:48:24 GMT; path=/; domain=.google.com
Set-Cookie: NID=58=NE7SdpZlyBUW0Iq-oexFslhJaKfCnoIz4Po9RNdnHWWBWNhS9KhNWNnioNxuw3J7cbSavyUrtWGLjZSbTeBE0f4ZDgW4-aPbUiUCIhEb5IpyVyVJo63nG-bVkfT2-hWX; expires=Tue, 02-Oct-2012 11:48:24 GMT; path=/; domain=.google.com; HttpOnly
P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Traceback (most recent call last):
File "GooDork.py", line 78, in
dork.run()
File "GooDork.py", line 16, in run
links = self.operator.goosearch(sys.argv[1])
File "/home/fgeek/scm/GooDork/Operator.py", line 41, in goosearch
links = self.stripper.strip(page[1])
File "/home/fgeek/scm/GooDork/URLStripper.py", line 13, in strip
if len(results_wrapper) < 1:
TypeError: object of type 'NoneType' has no len()
The text was updated successfully, but these errors were encountered: