hagabaka / hib-dlagent Goto Github PK
View Code? Open in Web Editor NEWTool to download Humble Indie Bundle binaries by file name
License: MIT License
Tool to download Humble Indie Bundle binaries by file name
License: MIT License
Tool to download Humble Indie Bundle binaries by file name Author: Eric Anderson <[email protected]> Contributor: Thomas Riccardi <[email protected]> Contributor: Devin J. Pohly <[email protected]> Contributor: Yaohan Chen <[email protected]> Description =========== Primarily for use as a DLAGENT in makepkg.conf in Arch Linux, but generally useful when needing to download a particular Humble Bundle file via a script. It also manages a storage directory where already downloaded file can be found. Installation and Usage ====================== This utility currently requires humblebundle-python to query HumbleBundle's API. It uses curl to download the file, or can simply provide the URL needed to download the file so a different HTTP downloader such a Wget can be used. To run hib-dlagent without installating it, add parameters '-S.', which tells it to look for helper script(s) in the current directory. By default hib-dlagent assumes the helper script is installed in /usr/share/hib-dlagent. The provided Makefile will install files into this location. If they are installed elsewhere, it is necessary to either run hib-dlagent with the corresponding -S parameters, or edit the variables SCRIPT_PATH and CONFIG_PATH in hib-dlagent. To use as a DLAGENT for the 'hib' scheme, you can modify makepkg.conf: DLAGENTS=(... 'hib::/usr/bin/hib-dlagent -u [email protected] -o %o %u' ...) Run with the -h argument for more information.
I get this:
Searching for cogs-installer-build4
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/humblebundle/handlers.py", line 21, in parse_data
return response.json()
File "/usr/lib/python3.6/site-packages/requests/models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 342, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 5 (char 4)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/hib-dlagent/discover-url.py", line 13, in <module>
client.login(username, password)
File "/usr/lib/python3.6/site-packages/humblebundle/decorators.py", line 20, in wrap
result = func(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/humblebundle/client.py", line 115, in login
return handlers.login_handler(self, response)
File "/usr/lib/python3.6/site-packages/humblebundle/handlers.py", line 62, in login_handler
data = parse_data(response)
File "/usr/lib/python3.6/site-packages/humblebundle/handlers.py", line 23, in parse_data
raise HumbleParseException("Invalid JSON: %s", str(e), request=response.request, response=response)
humblebundle.exceptions.HumbleParseException: [Errno Invalid JSON: %s] Extra data: line 1 column 5 (char 4)
Traceback (most recent call last):
File "/usr/share/hib-dlagent/discover-url.py", line 12, in
client.login(username, password)
File "/usr/lib/python3.4/site-packages/humblebundle/decorators.py", line 20, in wrap
result = func(_args, *_kwargs)
File "/usr/lib/python3.4/site-packages/humblebundle/client.py", line 115, in login
return handlers.login_handler(self, response)
File "/usr/lib/python3.4/site-packages/humblebundle/handlers.py", line 76, in login_handler
captcha_required=captcha_required, authy_required=authy_required)
humblebundle.exceptions.HumbleCaptchaException: Please answer the CAPTCHA
Here is what i obtain when looking for any file in hib.
There is no window openning for any captcha.
[glow@GlowArch ~]$ /usr/bin/hib-dlagent -l -p pwd -u [email protected] -s Dustforce-Linux-2014-12-22.sh
Fri Feb 20 2015 08:58:55 GMT+0100 (CET) Opening listing page...
Fri Feb 20 2015 08:58:57 GMT+0100 (CET) Opened listing page: success
Fri Feb 20 2015 08:58:57 GMT+0100 (CET) Entering login information...
Fri Feb 20 2015 08:58:57 GMT+0100 (CET) Submitting login information and/or captcha response...
Fri Feb 20 2015 08:58:58 GMT+0100 (CET) Entering login information...
Fri Feb 20 2015 08:58:58 GMT+0100 (CET) Submitting login information and/or captcha response...
Fri Feb 20 2015 08:58:59 GMT+0100 (CET) Entering login information...
Fri Feb 20 2015 08:58:59 GMT+0100 (CET) Submitting login information and/or captcha response...
Fri Feb 20 2015 08:58:59 GMT+0100 (CET) Entering login information...
Fri Feb 20 2015 08:58:59 GMT+0100 (CET) Submitting login information and/or captcha response...
Fri Feb 20 2015 08:59:00 GMT+0100 (CET) Entering login information...
Fri Feb 20 2015 08:59:00 GMT+0100 (CET) Submitting login information and/or captcha response...
Fri Feb 20 2015 08:59:01 GMT+0100 (CET) Entering login information...
Fri Feb 20 2015 08:59:01 GMT+0100 (CET) Submitting login information and/or captcha response...
Thanks for making this!
I've noticed that there isn't any license associated with this project. Would you be open to possibly licensing under something that would enable distribution and modification, such as the GPL?
Hi
hib-dlagent -u <user> -p <password> bla
It doesn't do anything : 0% cpu use, no network trafic, no stdout output. Any idea ?
phantomjs-config.json:
{
"webSecurityEnabled": false,
"ignoreSslErrors": true,
"diskCacheEnabled": true,
}
According to the python executable hib-dlagent
version is 0.6:
grep '^VERSION' hib-dlagent
:
VERSION=0.6
hib-dlagent | head -n1
:
hib-dlagent 0.6
According to git tags version is 0.7.1:
git describe --tags
:
0.7.1
This is a discrepancy. What is the correct versioning of the latest git checkout? Please make it consistent.
Regards!
I'm getting this problem when I try download bridgeconstructorPlayground_Linux_v14_1411180371.zip:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: TypeError
The key/account is set, and others file downloaded fine.
The script doesn't ask for a password on stdin if you don't give it the -p or the -P option.
I don't like either solutions of password handling and rather provide my password on the stdin every time. Version 0.5 did this. Why doesn't the new version does this?
Cheers,
Faerbit
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.