tradel / appd-download-bot Goto Github PK
View Code? Open in Web Editor NEWAutomates downloading of new releases from AppDynamics download site.
Automates downloading of new releases from AppDynamics download site.
Hey Todd,
Having some trouble getting this to work:
[root@localhost orig]# download-appdynamics -u [email protected] -p XXXXXXXX -b64 java-agent
Checking available product versions . . ./usr/lib/python2.6/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
To get rid of this warning, change this:
BeautifulSoup([your markup])
to this:
BeautifulSoup([your markup], "html.parser")
markup_type=markup_type))
Traceback (most recent call last):
File "/usr/bin/download-appdynamics", line 10, in <module>
main()
File "/usr/lib/python2.6/site-packages/appd/download/download.py", line 159, in main
username=args.username, password=args.password, debug=args.debug)
File "/usr/lib/python2.6/site-packages/appd/download/zone.py", line 68, in __init__
self.version = version
File "/usr/lib/python2.6/site-packages/appd/download/zone.py", line 131, in version
avail_versions = self.get_versions()
File "/usr/lib/python2.6/site-packages/appd/download/zone.py", line 167, in get_versions
dropdown = soup.find('table', id='version_disp').find('select')
AttributeError: 'NoneType' object has no attribute 'find'
Saving cookies to /root/.cookiejar . . .
Edited the code to fix the beautifulsoup error, but it still seems to be having issue parsing the dropdown
element.
Any ideas/thoughts?
Awesome tool! I got it working but had some trouble - I had to comment out the args.quiet checks in the callbacks because they kept telling me args wasn't defined... what did I do wrong?
nicks-mbp:scripts hellameta$ ./download-appdynamics -q -u [email protected] -p password java-agent
Traceback (most recent call last):
File "./download-appdynamics", line 10, in <module>
main()
File "/Library/Python/2.7/site-packages/appd/download/download.py", line 119, in main
username=args.username, password=args.password, debug=args.debug)
File "/Library/Python/2.7/site-packages/appd/download/zone.py", line 68, in __init__
self.version = version
File "/Library/Python/2.7/site-packages/appd/download/zone.py", line 131, in version
avail_versions = self.get_versions()
File "/Library/Python/2.7/site-packages/appd/download/zone.py", line 162, in get_versions
Zone.status(self, 'Checking available product versions')
File "/Library/Python/2.7/site-packages/appd/download/events.py", line 44, in fire
handler(*args, **kargs)
File "/Library/Python/2.7/site-packages/appd/download/download.py", line 10, in status_callback
if not args.quiet:
NameError: global name 'args' is not defined```
It's a security concern that a user's username and password be recorded in plaintext in their shell history.
To avoid leaking my AppD username and password in my shell history when using AppDynamicsDownloader, I would like the downloader to interactively prompt me for my username and password.
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.