chorsley / python-Wappalyzer

Python driver for Wappalyzer, a web application detection utility.
GNU General Public License v3.0
309 stars 122 forks source link

Updating to a new technologies.json file from the node Wappalyzer, fails with 'list' object has no attribute 'split' #54

Closed StoneField88 closed 3 years ago

StoneField88 commented 3 years ago

I am trying to use the maintained JSON from the Wappalyzer library, but the python code fails with 'list' object has no attribute 'split'. Any known way to solve this?

tristanlatr commented 3 years ago

This is a duplicate of #53

It's an issue that requires a change in the code, it should not be too complicated...

I might have time to look at it.

For now, please avoid using the update argument. (I knew that it might cause problems, that why I didn't published python-Wappalyzer version 0.4 on pypi yet)

B4gi0 commented 3 years ago

I got the same problem, I didn't use the update=True but I changed it manually (overwriting the file Wappalyzer/data/technologies.json) [I'm using the version of the package by github ]

The complete stack trace is this:

Traceback (most recent call last): File "C:\Users\Fabio\PycharmProjects\try\main.py", line 17, in wappalyzer = Wappalyzer.latest() File "C:\Users\Fabio\PycharmProjects\try\venv\lib\site-packages\Wappalyzer\Wappalyzer.py", line 269, in latest return cls(categories=obj['categories'], technologies=obj['technologies']) File "C:\Users\Fabio\PycharmProjects\try\venv\lib\site-packages\Wappalyzer\Wappalyzer.py", line 205, in init self._prepare_technology(technology) File "C:\Users\Fabio\PycharmProjects\try\venv\lib\site-packages\Wappalyzer\Wappalyzer.py", line 347, in _prepare_technology obj[name] = self._prepare_pattern(obj[name]) File "C:\Users\Fabio\PycharmProjects\try\venv\lib\site-packages\Wappalyzer\Wappalyzer.py", line 355, in _prepare_pattern patterns = pattern.split('\;') AttributeError: 'list' object has no attribute 'split'

Process finished with exit code 1

There is any way to solve it?

StoneField88 commented 3 years ago

Hey guys, any update on the fix?

tristanlatr commented 3 years ago

@StoneField88 and friends,

The issues should now be fixed, please try it out.

I'll publish the package on pypi soon.

brandonscholet commented 1 year ago

@tristanlatr are you able to update this?