btorresgil / content_downloader Goto Github PK
View Code? Open in Web Editor NEWDownload the latest Palo Alto Networks content update
Download the latest Palo Alto Networks content update
Seems like there may be a functional change, not sure if you see the same?
I can manually login and download content, and configured the user/pass, and company ID in the .conf file, but the script (if I am reading it right) is falling through at 187, where it verifies the match = re.search returns a non-None value.
Hi,
would it be possible to add a feature for wf-500 content as well?
/kristian
Hi, i tried your code:
$ python content_downloader.py -v -p antivirus
Checking for new content updates: antivirus
Not logged in.
Logging in
Checking for new content updates (2nd attempt)
Traceback (most recent call last):
File "content_downloader.py", line 287, in <module>
main()
File "content_downloader.py", line 257, in main
token, updates = content_downloader.check()
File "content_downloader.py", line 172, in check
updates = json.loads(match.group(1))
AttributeError: 'NoneType' object has no attribute 'group'
Effect is about the same without -p parameter.
After little investigation I found out, that the last requested page does not contain the pattern with data json:
"data":({"Data":.*?"Total":\d+,"AggregateResults":null})
or anyhing like it. However the response contain this:
<div class="alert alert-error">
An unexpected error has occurred. Please contact <a href="https://www.paloaltonetworks.com/company/contact-support" target="_blank">support</a>.
</div>
I belive something is wrong on my end, but I don't know what... The credentials are ok, and it seems it logged in successfuly. I have noticed that You just few days age updated this script so it should work fine. Can You confirm that you can still use this script without problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.